Re: [PATCH] tests/functional/test_aarch64_sbsaref_freebsd: Fix the URL of the ISO image

2025-07-03 Thread Warner Losh
oot_freebsd14(self, cpu=None): > fetch_firmware(self) > > - img_path = self.ASSET_FREEBSD_ISO.fetch() > +img_path = self.uncompress(self.ASSET_FREEBSD_ISO) > > self.vm.set_console() > self.vm.add_args( Reviewed-by: Warner Losh Though maybe updating to 14.3 would be better. Warner

Re: FreeBSD 14.1 aarch64 iso URL is down

2025-06-25 Thread Warner Losh
On Tue, Jun 24, 2025 at 3:25 PM Stefan Hajnoczi wrote: > > On Tue, Jun 24, 2025 at 1:41 PM Warner Losh wrote: > > > > On Tue, Jun 24, 2025 at 11:16 AM Stefan Hajnoczi wrote: > > > > > > On Tue, Jun 24, 2025 at 12:28 PM Warner Losh wrote: > > > >

Re: FreeBSD 14.1 aarch64 iso URL is down

2025-06-24 Thread Warner Losh
On Tue, Jun 24, 2025 at 11:16 AM Stefan Hajnoczi wrote: > > On Tue, Jun 24, 2025 at 12:28 PM Warner Losh wrote: > > > > On Tue, Jun 24, 2025 at 10:02 AM Thomas Huth wrote: > > > > > > On 22/06/2025 03.46, Warner Losh wrote: > > > > > > >

Re: FreeBSD 14.1 aarch64 iso URL is down

2025-06-24 Thread Warner Losh
On Tue, Jun 24, 2025 at 10:02 AM Thomas Huth wrote: > > On 22/06/2025 03.46, Warner Losh wrote: > > > > > > On Sat, Jun 21, 2025, 6:01 PM Stefan Hajnoczi > <mailto:stefa...@gmail.com>> wrote: > > > > On Sat, Jun 21, 2025 at 7:59 PM Stefan Ha

Re: FreeBSD 14.1 aarch64 iso URL is down

2025-06-21 Thread Warner Losh
On Sat, Jun 21, 2025, 6:01 PM Stefan Hajnoczi wrote: > On Sat, Jun 21, 2025 at 7:59 PM Stefan Hajnoczi > wrote: > > (I forgot to CC qemu-devel) > > > > > Hi, > > This might only be temporary, but the CI is getting HTTP 404 Not Found > > for the following URL: > > > https://download.freebsd.org/r

Re: Is anybody still using the "highbank" or "midway" QEMU machines?

2025-06-02 Thread Warner Losh
On Fri, May 30, 2025 at 8:24 AM Thomas Huth wrote: > I was trying to create a functional test for the "highbank" and "midway" arm > machines of QEMU, and only succeeded after lots of trial and error to boot > something on the "highbank" machine. Peter mentioned on IRC that he also > does not test

Re: [PATCH] bsd-user: add option to enable plugins

2025-05-05 Thread Warner Losh
I'm also ignorant of plugins, but (a) if not enabling plugins is a nop and (b) plugins either work or fail completely, then I think we can enable them. If they cause problems when not enabled by the user, though, we'll likely have to revert. I don't know enough about them, though, to review. Warn

Re: [PATCH v3 2/3] bsd-user: Propagate alignment argument to mmap_find_vma()

2025-03-09 Thread Warner Losh
-by: Philippe Mathieu-Daudé > --- > bsd-user/bsd-mem.h | 2 +- > bsd-user/qemu.h| 2 +- > bsd-user/mmap.c| 10 ++ > 3 files changed, 4 insertions(+), 10 deletions(-) > Reviewed-by: Warner Losh

Re: [PATCH v3 1/3] bsd-user: Always use mmap_find_vma_aligned() in target_mmap()

2025-03-09 Thread Warner Losh
d, 6 insertions(+), 5 deletions(-) > Reviewed-by: Warner Losh

Re: [PATCH v4 1/3] bsd-user: Always use mmap_find_vma_aligned() in target_mmap()

2025-03-08 Thread Warner Losh
9 - > 1 file changed, 4 insertions(+), 5 deletions(-) > Reviewed-by: Warner Losh Here I get why you have a new variable since it's a little easier to read. Warner > diff --git a/bsd-user/mmap.c b/bsd-user/mmap.c > index 346f2cefd32..dfa6e728ab5 100644 > ---

Re: [PATCH v4 2/3] bsd-user: Propagate alignment argument to mmap_find_vma()

2025-03-08 Thread Warner Losh
t; > Signed-off-by: Philippe Mathieu-Daudé > --- > bsd-user/bsd-mem.h | 4 +++- > bsd-user/qemu.h| 2 +- > bsd-user/mmap.c| 10 ++ > 3 files changed, 6 insertions(+), 10 deletions(-) > Reviewed-by: Warner Losh > diff --git a/bsd-user/bsd-mem.h b/bsd-user/

Re: [PATCH v2 01/10] bsd-user: drop not longer used target_reset_cpu()

2025-03-01 Thread Warner Losh
On Fri, Feb 7, 2025 at 9:21 AM Igor Mammedov wrote: > target_reset_cpu() static inlines have no user, > remove them. > > Signed-off-by: Igor Mammedov > --- > CC: Warner Losh > CC: Kyle Evans > --- > bsd-user/aarch64/target_arch_cpu.h | 5 - > bsd-user

Re: [PATCH 21/25] plugins/api: split out binary path/start/end/entry code

2025-02-26 Thread Warner Losh
g > tests working for the BSDs. > > Signed-off-by: Alex Bennée > Message-Id: <20250225110844.3296991-8-alex.ben...@linaro.org> > Reviewed-by: Warner Losh I'd love to see the check-tcg working well for bsd, but I'm swamped with other commitments. Warner > --- > v2

Re: [PATCH] user: Extract common MMAP API to 'user/mmap.h'

2025-01-18 Thread Warner Losh
; --- > bsd-user/qemu.h| 12 +--- > include/user/mmap.h| 33 + > linux-user/user-mmap.h | 19 ++- > 3 files changed, 36 insertions(+), 28 deletions(-) > create mode 100644 include/user/mmap.h > Reviewed-by: Warn

Re: Ideas to Improve GDB Stub in Qemu for i8086

2024-12-19 Thread Warner Losh
On Wed, Dec 18, 2024 at 6:36 PM Davidson Francis wrote: > Hi, > Some time ago, I wrote a Gist [1] outlining what I believe to be the > ideal environment for debugging 16-bit code in real mode on Qemu. Based > on the feedback I've received, I decided to share it here to gather more > opinions. > >

Re: [PATCH 4/8] user: Introduce host_interrupt_signal

2024-11-05 Thread Warner Losh
On Tue, Nov 5, 2024 at 3:49 PM Ilya Leoshkevich wrote: > On Tue, 2024-11-05 at 22:30 +, Richard Henderson wrote: > > On 11/5/24 15:50, Ilya Leoshkevich wrote: > > > On Tue, 2024-11-05 at 08:39 -0700, Warner Losh wrote: > > > > On Thu, Oct 24, 20

Re: [PATCH 1/8] gdbstub: Allow the %d placeholder in the socket path

2024-11-05 Thread Warner Losh
> > > > +pid_placeholder = strstr(path, "%d"); > > +if (pid_placeholder != NULL) { > > +g_string_append_len(buf, path, pid_placeholder - path); > > +g_string_append_printf(buf, "%d", getpid()); > > qemu_get_thread_id(). > > Otherwise, > Reviewed-by: Richard Henderson > Same. Reviewed-by: Warner Losh

Re: [PATCH 5/8] osdep: Introduce qemu_kill_thread()

2024-11-05 Thread Warner Losh
ed-off-by: Ilya Leoshkevich > --- > include/qemu/osdep.h | 9 + > util/oslib-posix.c | 15 +++ > 2 files changed, 24 insertions(+) > Reviewed-by: Warner Losh > diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h > index fe7c3c5f673..2350477787a 100644

Re: [PATCH 4/8] user: Introduce host_interrupt_signal

2024-11-05 Thread Warner Losh
nds tests) I'd likely use SIGRTMAX + 1, though, since it avoids any edge-cases from sig == NSIG that might be in the code unnoticed. Now, having said that, I don't think that there's too many (any?) programs we need to run as bsd-user that have real-time signals, much less o

Re: [PATCH 3/8] user: Introduce user/signal.h

2024-11-05 Thread Warner Losh
/user/signal.h | 23 +++ > linux-user/signal-common.h | 1 - > linux-user/signal.c| 1 + > linux-user/syscall.c | 1 + > 6 files changed, 26 insertions(+), 2 deletions(-) > create mode 100644 include/user/signal.h > Reviewed-by: War

[PULL 1/3] bsd-user/x86_64/target_arch_thread.h: Align stack

2024-11-04 Thread Warner Losh
ggestion ]] Signed-off-by: Ilya Leoshkevich Reviewed-by: Richard Henderson Reviewed-by: Warner Losh Signed-off-by: Warner Losh --- bsd-user/x86_64/target_arch_thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsd-user/x86_64/target_arch_thread.h b/bsd-user/x86_64/target_arch_

[PULL 3/3] bsd-user: Set TaskState ts_tid for initial threads

2024-11-04 Thread Warner Losh
From: Jessica Clarke Currently we only set it on fork. Note: Upstream (blitz) commit also did new threads, but that code isn't in qemu project repo yet. Signed-off-by: Jessica Clarke Pull-Request: https://github.com/qemu-bsd-user/qemu-bsd-user/pull/52 Reviewed-by: Warner Losh Signed-o

[PULL 0/3] Bsd user 2024q4 patches

2024-11-04 Thread Warner Losh
The following changes since commit daaf51001a13da007d7dde72e1ed3b06bc490791: Merge tag 'seabios-hppa-v17-pull-request' of https://github.com/hdeller/qemu-hppa into staging (2024-11-04 16:01:23 +) are available in the Git repository at: g...@gitlab.com:bsdimp/qemu.git tags/bsd-user-2024q

[PULL 2/3] bsd-user/main: Allow setting tb-size

2024-11-04 Thread Warner Losh
Mathieu-Daudé Reviewed-by: Warner Losh Signed-off-by: Warner Losh --- bsd-user/main.c | 9 + 1 file changed, 9 insertions(+) diff --git a/bsd-user/main.c b/bsd-user/main.c index cc980e6f401..7c230b0c7a5 100644 --- a/bsd-user/main.c +++ b/bsd-user/main.c @@ -60,6 +60,7 @@ uintptr_t

Re: Rust BoF and maintainer minutes and planning the roadmap to Rust

2024-10-14 Thread Warner Losh
[[ sorry for the lag $LIFE has been over-full lately ]] On Thu, Oct 3, 2024 at 3:56 AM Alex Bennée wrote: > Warner Losh writes: > > > On Thu, Oct 3, 2024 at 2:53 AM Warner Losh wrote: > > > > On Thu, Sep 26, 2024 at 8:24 AM Alex Bennée > wrote: > > >

Re: Rust BoF and maintainer minutes and planning the roadmap to Rust

2024-10-03 Thread Warner Losh
On Thu, Oct 3, 2024 at 2:53 AM Warner Losh wrote: > > > On Thu, Sep 26, 2024 at 8:24 AM Alex Bennée > wrote: > >> One output from this discussion should be a clear statement that we are >> going forward with this work and the road map. A rough roadmap might

Re: Rust BoF and maintainer minutes and planning the roadmap to Rust

2024-10-03 Thread Warner Losh
On Thu, Sep 26, 2024 at 8:24 AM Alex Bennée wrote: > One output from this discussion should be a clear statement that we are > going forward with this work and the road map. A rough roadmap might > look like: > > - 9.2 --enable-rust is available and developers can build with it. > r

Re: Rust BoF and maintainer minutes and planning the roadmap to Rust

2024-10-03 Thread Warner Losh
On Thu, Oct 3, 2024, 3:53 AM Daniel P. Berrangé wrote: > On Thu, Oct 03, 2024 at 02:53:08AM -0600, Warner Losh wrote: > > On Thu, Sep 26, 2024 at 8:24 AM Alex Bennée > wrote: > > > > > One output from this discussion should be a clear statement that we are > > &

Re: [PATCH v2 0/2] *-user: Handle short reads in mmap_h_gt_g

2024-08-23 Thread Warner Losh
viewed-by: Philippe Mathieu-Daudé > Series: Reviewed-by: Warner Losh

Re: [PATCH 10/18] bsd-user: Add RISC-V thread setup and initialization support

2024-08-02 Thread Warner Losh
On Fri, Aug 2, 2024 at 7:30 AM Richard Henderson < richard.hender...@linaro.org> wrote: > On 8/2/24 18:34, Ajeet Singh wrote: > > From: Mark Corbin > > > > Implemented functions for setting up and initializing threads in the > > RISC-V architecture. > > The 'target_thread_set_upcall' function set

Re: [PATCH 15/18] bsd-user: Implement RISC-V signal trampoline setup functions

2024-08-02 Thread Warner Losh
t; 'setup_sigframe_arch()': Initializes the signal frame with the current > > machine context.This function copies the context from the CPU state to > > the signal frame, preparing it for the signal handler. > > > > Signed-off-by: Mark Corbin > > Signed-off

[PATCH 16/17] bsd-user: Define validate_prot_to_pageflags and use in mprotect

2024-08-02 Thread Warner Losh
nux-user's. Signed-off-by: Warner Losh --- bsd-user/mmap.c | 28 +++- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/bsd-user/mmap.c b/bsd-user/mmap.c index ffecf52a72a..3c48a188e88 100644 --- a/bsd-user/mmap.c +++ b/bsd-user/mmap.c @@ -60,12 +60,26 @@ voi

[PATCH 14/17] bsd-user: target_mmap*: change prot to target_prot

2024-08-02 Thread Warner Losh
Adopt the linux-user convention of using target_prot for passed in protections. no functional change. Signed-off-by: Warner Losh --- bsd-user/mmap.c | 47 --- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/bsd-user/mmap.c b/bsd-user

[PATCH 15/17] bsd-user: target_mprotect: use helper host_page_size local

2024-08-02 Thread Warner Losh
Use helper variable for host_page_size. Linux-user uses a similar helper to make the code smaller after the multi-page-size migration. Signed-off-by: Warner Losh --- bsd-user/mmap.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/bsd-user/mmap.c b/bsd-user

[PATCH 10/17] bsd-user: Pass image name down the stack

2024-08-02 Thread Warner Losh
Pass the image name down the stack so that we can give better error messages. Inspired by similar work in linux-user, and more likely to come. Signed-off-by: Warner Losh --- bsd-user/elfload.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/bsd-user

[PATCH 00/17] For 9.2: A bunch of cleanups and work towards variable pagesize support

2024-08-02 Thread Warner Losh
dynamically allocate arrays rather than have them be hard-coded in a Stacey Son (1): bsd-user: Implement cpu_copy() Warner Losh (16): bsd-user: Delete TaskState next member bsd-user: Make init_task_state global bsd-user: Make cpu_model and cpu_type file scope bsd-user: Eliminate unused regs arg

[PATCH 09/17] bsd-user: target_msync unused, remove it

2024-08-02 Thread Warner Losh
Nothing calls target_msync in the upstream or blitz fork, so remove it. It will save us having to modernize it. Signed-off-by: Warner Losh --- bsd-user/mmap.c | 17 - bsd-user/qemu.h | 1 - 2 files changed, 18 deletions(-) diff --git a/bsd-user/mmap.c b/bsd-user/mmap.c index

[PATCH 11/17] bsd-user: Replace set_brk and padzero with zerobss from linux-user

2024-08-02 Thread Warner Losh
rting code that linux-user uses to give better error messages on failure. Signed-off-by: Warner Losh --- bsd-user/elfload.c | 110 +++-- 1 file changed, 57 insertions(+), 53 deletions(-) diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c index dba03f

[PATCH 07/17] bsd-user: Remove deprecated -p argument

2024-08-02 Thread Warner Losh
FreeBSD never really used the -p argument, so it's safe to remove entirely. Signed-off-by: Warner Losh --- bsd-user/main.c | 8 1 file changed, 8 deletions(-) diff --git a/bsd-user/main.c b/bsd-user/main.c index 9ad31bd1efe..709ab10ddc1 100644 --- a/bsd-user/main.c +++ b/bsd

[PATCH 17/17] bsd-user: copy linux-user target_mprotect impl

2024-08-02 Thread Warner Losh
#x27;t so large, and doing it incrementally further has become too much work for too little gain. Signed-off-by: Warner Losh --- bsd-user/mmap.c | 138 +++- 1 file changed, 90 insertions(+), 48 deletions(-) diff --git a/bsd-user/mmap.c b/bsd-us

[PATCH 06/17] bsd-user: Remove load_flt_binary prototype

2024-08-02 Thread Warner Losh
bsd-user doesn't have support for loading FLT binaries. Signed-off-by: Warner Losh --- bsd-user/qemu.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h index f18a54cc933..b97a902a4c2 100644 --- a/bsd-user/qemu.h +++ b/bsd-user/qemu.h @@ -164,8 +164,6 @

[PATCH 12/17] bsd-user: Use guest_range_valid_untagged to validate range

2024-08-02 Thread Warner Losh
This is the generic validation function, so remove some hand-rolled ones. Signed-off-by: Warner Losh --- bsd-user/mmap.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bsd-user/mmap.c b/bsd-user/mmap.c index fc69cb43ebd..ed8d31a9048 100644 --- a/bsd-user/mmap.c

[PATCH 08/17] bsd-user: Eliminate unused qemu_uname_release

2024-08-02 Thread Warner Losh
variable. Signed-off-by: Warner Losh --- bsd-user/main.c | 3 --- bsd-user/qemu.h | 1 - 2 files changed, 4 deletions(-) diff --git a/bsd-user/main.c b/bsd-user/main.c index 709ab10ddc1..8c52fb43ff1 100644 --- a/bsd-user/main.c +++ b/bsd-user/main.c @@ -92,7 +92,6 @@ static const char *cpu_type

[PATCH 04/17] bsd-user: Implement cpu_copy()

2024-08-02 Thread Warner Losh
From: Stacey Son Catch up with 30ba0ee52d15 and implement cpu_copy(). It's needed for threading. Stacey's original code, with bug fixes from Jessica, Justin and myself. Signed-off-by: Stacey Son Signed-off-by: Jessica Clarke Signed-off-by: Justin Hibbits Signed-off-by: Warner Losh

[PATCH 05/17] bsd-user: Eliminate unused regs arg in load_elf_binary

2024-08-02 Thread Warner Losh
Signed-off-by: Warner Losh --- bsd-user/bsdload.c | 2 +- bsd-user/elfload.c | 3 +-- bsd-user/qemu.h| 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/bsd-user/bsdload.c b/bsd-user/bsdload.c index 5b3c061a452..dcf3ca14fcc 100644 --- a/bsd-user/bsdload.c +++ b/bsd-user

[PATCH 03/17] bsd-user: Make cpu_model and cpu_type file scope

2024-08-02 Thread Warner Losh
linux-user already does this since 2278b93941d4. That same commit just added them with main() scope to bsd-user. We need the cpu_type, like linux-user does, to create new CPUs outside of main to support threading. Move both cpu_model and cpu_type to mirror linux-user/main.c. Signed-off-by: Warner

[PATCH 13/17] bsd-user: target_mprotect: rename prot to target_prot

2024-08-02 Thread Warner Losh
Linux-user's target_mprotect uses this convention, so move to it. Signed-off-by: Warner Losh --- bsd-user/mmap.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/bsd-user/mmap.c b/bsd-user/mmap.c index ed8d31a9048..d34075c5c64 100644 --- a/bsd-user/m

[PATCH 01/17] bsd-user: Delete TaskState next member

2024-08-02 Thread Warner Losh
The next struct member of TaskState is unused. Remove it. Signed-off-by: Warner Losh --- bsd-user/qemu.h | 1 - 1 file changed, 1 deletion(-) diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h index 3736c417860..4ccbee265a1 100644 --- a/bsd-user/qemu.h +++ b/bsd-user/qemu.h @@ -83,7 +83,6

[PATCH 02/17] bsd-user: Make init_task_state global

2024-08-02 Thread Warner Losh
Restore init_task_state to its global status. It's needed for threading support outside of main. Signed-off-by: Warner Losh --- bsd-user/main.c | 2 +- bsd-user/qemu.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bsd-user/main.c b/bsd-user/main.c index cc980e

Re: [PATCH] bsd-user/main: Allow setting tb-size

2024-08-01 Thread Warner Losh
On Thu, Aug 1, 2024 at 2:25 AM Ilya Leoshkevich wrote: > On Wed, 2024-07-31 at 15:21 -0600, Warner Losh wrote: > > On Wed, Jul 31, 2024 at 8: 45 AM Ilya Leoshkevich > wrote: While qemu-system can set tb-size using -accel tcg,tb-size=n, there > is no similar knob for qemu-bsd-use

Re: [PATCH] bsd-user/x86_64/target_arch_thread.h: Align stack

2024-07-31 Thread Warner Losh
On Wed, Jul 31, 2024 at 5:03 PM Warner Losh wrote: > Hmmm... All platforms likely need this > Oh, they all have it except x86, both 32 and 64-bit but i386 is > already properly aligned (at least in the > FreeBSD kernel), so maybe that's not needed. > > > On We

Re: [PATCH] bsd-user/main: Allow setting tb-size

2024-07-31 Thread Warner Losh
On Wed, Jul 31, 2024 at 3:42 PM Philippe Mathieu-Daudé wrote: > On 31/7/24 23:21, Warner Losh wrote: > > On Wed, Jul 31, 2024 at 8:45 AM Ilya Leoshkevich > <mailto:i...@linux.ibm.com>> wrote: > > > > While qemu-system can set tb-size using -accel tcg,tb-si

Re: [PATCH] bsd-user/x86_64/target_arch_thread.h: Align stack

2024-07-31 Thread Warner Losh
h_thread.h > > +++ b/bsd-user/x86_64/target_arch_thread.h > > @@ -31,7 +31,7 @@ static inline void target_thread_init(struct > target_pt_regs *regs, > > struct image_info *infop) > > { > > regs->rax = 0; > > -regs->rsp = infop->start_s

Re: [PATCH] bsd-user/main: Allow setting tb-size

2024-07-31 Thread Warner Losh
2,6 +459,8 @@ int main(int argc, char **argv) > accel_init_interfaces(ac); > object_property_set_bool(OBJECT(accel), "one-insn-per-tb", > opt_one_insn_per_tb, &error_abort); > +object_property_set_int(OBJECT(accel), "tb-size", > +opt_tb_size, &error_abort); > ac->init_machine(NULL); > } > Reviewed-by: Warner Losh I'll queue this to my bsd-user-2024-q3-2 branch. I hope to land it, just after 9.1.0 release. Warner

[PULL 15/15] bsd-user: Add target.h for aarch64.

2024-07-24 Thread Warner Losh
For aarch64, it's a 64-bit API, so there's no pairing of registers for 64-bit values. Signed-off-by: Warner Losh --- bsd-user/aarch64/target.h | 20 1 file changed, 20 insertions(+) create mode 100644 bsd-user/aarch64/target.h diff --git a/bsd-user/aarch64/targ

[PULL 04/15] bsd-user:Add ARM AArch64 signal handling support

2024-07-24 Thread Warner Losh
Signed-off-by: Ajeet Singh Signed-off-by: Warner Losh Co-authored-by: Warner Losh Reviewed-by: Richard Henderson Message-Id: <20240707191128.10509-5-itac...@freebsd.org> Signed-off-by: Warner Losh --- bsd-user/aarch64/signal.c | 53 bsd-user/a

[PULL 02/15] bsd-user:Add AArch64 register handling and related functions

2024-07-24 Thread Warner Losh
igned-off-by: Ajeet Singh Co-authored-by: Jessica Clarke Co-authored-by: Sean Bruno Co-authored-by: Warner Losh Reviewed-by: Richard Henderson Message-Id: <20240707191128.10509-3-itac...@freebsd.org> Signed-off-by: Warner Losh --- bsd-user/aarch64/target_arch.h | 28 ++

[PULL 03/15] bsd-user:Add ARM AArch64 support and capabilities

2024-07-24 Thread Warner Losh
hardware capabilities using the `GET_FEATURE_ID` macro. Added function to retrieve extended ARM AArch64 hardware capability flags. Signed-off-by: Stacey Son Signed-off-by: Ajeet Singh Signed-off-by: Warner Losh Co-authored-by: Kyle Evans Reviewed-by: Richard Henderson Message-Id

[PULL 13/15] bsd-user: Make compile for non-linux user-mode stuff

2024-07-24 Thread Warner Losh
We include the files that define PR_MTE_TCF_SHIFT only on Linux, but use them unconditionally. Restrict its use to Linux-only. "It's ugly, but it's not actually wrong." Signed-off-by: Warner Losh Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- ta

[PULL 00/15] Bsd user for 9.1 patches

2024-07-24 Thread Warner Losh
h64 bsd-user:Add AArch64 improvements and signal handling functions Warner Losh (7): bsd-user:Add ARM AArch64 support and capabilities bsd-user:Add setup_sigframe_arch function for ARM AArch64 bsd-user: Hard wire aarch64 to be 4k pages only bsd-user: Define TARGET_SIGSTACK_ALIGN and use it to

[PULL 12/15] bsd-user: Define TARGET_SIGSTACK_ALIGN and use it to round stack

2024-07-24 Thread Warner Losh
Most (all?) targets require stacks to be properly aligned. Rather than a series of ifdefs in bsd-user/signal.h, instead use a manditory #define for all architectures. Signed-off-by: Warner Losh Reviewed-by: Richard Henderson --- bsd-user/aarch64/target_arch_signal.h | 2 ++ bsd-user/arm

[PULL 10/15] bsd-user: Hard wire aarch64 to be 4k pages only

2024-07-24 Thread Warner Losh
Only support 4k pages for aarch64 binaries. The variable page size stuff isn't working just yet, so put in this lessor-of-evils kludge until that is complete. Signed-off-by: Warner Losh Reviewed-by: Richard Henderson --- target/arm/cpu-param.h | 4 1 file changed, 4 insertions(+)

[PULL 08/15] bsd-user:Add AArch64 improvements and signal handling functions

2024-07-24 Thread Warner Losh
. Changed FP data structures to use Int128 instead of __uint128_t, leveraging QEMU's generic mechanism for referencing this type. Signed-off-by: Stacey Son Signed-off-by: Ajeet Singh Signed-off-by: Warner Losh Reviewed-by: Richard Henderson Message-Id: <20240707191128.10509-9-itac...@fre

[PULL 01/15] bsd-user:Add CPU initialization and management functions

2024-07-24 Thread Warner Losh
: Warner Losh Reviewed-by: Richard Henderson Message-Id: <20240707191128.10509-2-itac...@freebsd.org> Signed-off-by: Warner Losh --- bsd-user/aarch64/target_arch_cpu.c | 31 + bsd-user/aarch64/target_arch_cpu.h | 192 + bsd-user/aarch64/target_syscall.h

[PULL 05/15] bsd-user:Add get_mcontext function for ARM AArch64

2024-07-24 Thread Warner Losh
: <20240707191128.10509-6-itac...@freebsd.org> Signed-off-by: Warner Losh --- bsd-user/aarch64/signal.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/bsd-user/aarch64/signal.c b/bsd-user/aarch64/signal.c index 98861f9ab3b..ab3bf8558ab 100644 --- a/bsd-user/aarch64/si

[PULL 07/15] bsd-user:Add set_mcontext function for ARM AArch64

2024-07-24 Thread Warner Losh
Message-Id: <20240707191128.10509-8-itac...@freebsd.org> Signed-off-by: Warner Losh --- bsd-user/aarch64/signal.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/bsd-user/aarch64/signal.c b/bsd-user/aarch64/signal.c index 43c886e6036..13faac8ce60 100644 --- a/bs

[PULL 06/15] bsd-user:Add setup_sigframe_arch function for ARM AArch64

2024-07-24 Thread Warner Losh
The function utilizes the `get_mcontext` function to retrieve the machine context for the current CPUARMState Signed-off-by: Warner Losh Signed-off-by: Ajeet Singh Reviewed-by: Richard Henderson Message-Id: <20240707191128.10509-7-itac...@freebsd.org> Signed-off-by: Warner Losh --- bs

[PULL 14/15] bsd-user: Add aarch64 build to tree

2024-07-24 Thread Warner Losh
Add the aarch64 bsd-user fragments needed to build the new aarch64 code. Signed-off-by: Warner Losh Reviewed-by: Richard Henderson --- configs/targets/aarch64-bsd-user.mak | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 configs/targets/aarch64-bsd-user.mak diff --git a/configs

[PULL 11/15] bsd-user: Sync fork_start/fork_end with linux-user

2024-07-24 Thread Warner Losh
/qemu-bsd-user/pull/52 Reviewed-by: Warner Losh Signed-off-by: Warner Losh Reviewed-by: Richard Henderson --- bsd-user/main.c | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/bsd-user/main.c b/bsd-user/main.c index 82e94a03160..cc980e6f401 100644

[PULL 09/15] bsd-user: Simplify the implementation of execve

2024-07-24 Thread Warner Losh
ned-off-by: Doug Rabson Reviewed-by: Warner Losh Signed-off-by: Warner Losh Acked-by: Richard Henderson --- bsd-user/freebsd/os-proc.c | 118 + bsd-user/main.c| 18 -- 2 files changed, 3 insertions(+), 133 deletions(-) diff --git a/bsd-user/

Re: [PULL 00/14] Bsd user for 9.1 patches

2024-07-24 Thread Warner Losh
On Wed, Jul 24, 2024 at 2:55 AM Richard Henderson < richard.hender...@linaro.org> wrote: > On 7/24/24 04:07, Warner Losh wrote: > > The following changes since commit > 3cce8bd4d737f2ca688bbdcb92cd5cc683245bbd: > > > >Merge tag 'ui-pull-request' ofhtt

[PULL 09/14] bsd-user: Simplify the implementation of execve

2024-07-23 Thread Warner Losh
ned-off-by: Doug Rabson Reviewed-by: Warner Losh Signed-off-by: Warner Losh Acked-by: Richard Henderson --- bsd-user/freebsd/os-proc.c | 118 + bsd-user/main.c| 18 -- 2 files changed, 3 insertions(+), 133 deletions(-) diff --git a/bsd-user/

[PULL 01/14] bsd-user:Add CPU initialization and management functions

2024-07-23 Thread Warner Losh
: Warner Losh Reviewed-by: Richard Henderson Message-Id: <20240707191128.10509-2-itac...@freebsd.org> Signed-off-by: Warner Losh --- bsd-user/aarch64/target_arch_cpu.c | 31 + bsd-user/aarch64/target_arch_cpu.h | 192 + bsd-user/aarch64/target_syscall.h

[PULL 11/14] bsd-user: Sync fork_start/fork_end with linux-user

2024-07-23 Thread Warner Losh
/qemu-bsd-user/pull/52 Reviewed-by: Warner Losh Signed-off-by: Warner Losh Reviewed-by: Richard Henderson --- bsd-user/main.c | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/bsd-user/main.c b/bsd-user/main.c index 82e94a03160..cc980e6f401 100644

[PULL 12/14] bsd-user: Define TARGET_SIGSTACK_ALIGN and use it to round stack

2024-07-23 Thread Warner Losh
Most (all?) targets require stacks to be properly aligned. Rather than a series of ifdefs in bsd-user/signal.h, instead use a manditory #define for all architectures. Signed-off-by: Warner Losh Reviewed-by: Richard Henderson --- bsd-user/aarch64/target_arch_signal.h | 2 ++ bsd-user/arm

[PULL 07/14] bsd-user:Add set_mcontext function for ARM AArch64

2024-07-23 Thread Warner Losh
Message-Id: <20240707191128.10509-8-itac...@freebsd.org> Signed-off-by: Warner Losh --- bsd-user/aarch64/signal.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/bsd-user/aarch64/signal.c b/bsd-user/aarch64/signal.c index 43c886e6036..13faac8ce60 100644 --- a/bs

[PULL 02/14] bsd-user:Add AArch64 register handling and related functions

2024-07-23 Thread Warner Losh
igned-off-by: Ajeet Singh Co-authored-by: Jessica Clarke Co-authored-by: Sean Bruno Co-authored-by: Warner Losh Reviewed-by: Richard Henderson Message-Id: <20240707191128.10509-3-itac...@freebsd.org> Signed-off-by: Warner Losh --- bsd-user/aarch64/target_arch.h | 28 ++

[PULL 10/14] bsd-user: Hard wire aarch64 to be 4k pages only

2024-07-23 Thread Warner Losh
Only support 4k pages for aarch64 binaries. The variable page size stuff isn't working just yet, so put in this lessor-of-evils kludge until that is complete. Signed-off-by: Warner Losh Reviewed-by: Richard Henderson --- target/arm/cpu-param.h | 4 1 file changed, 4 insertions(+)

[PULL 03/14] bsd-user:Add ARM AArch64 support and capabilities

2024-07-23 Thread Warner Losh
hardware capabilities using the `GET_FEATURE_ID` macro. Added function to retrieve extended ARM AArch64 hardware capability flags. Signed-off-by: Stacey Son Signed-off-by: Ajeet Singh Signed-off-by: Warner Losh Co-authored-by: Kyle Evans Reviewed-by: Richard Henderson Message-Id

[PULL 05/14] bsd-user:Add get_mcontext function for ARM AArch64

2024-07-23 Thread Warner Losh
: <20240707191128.10509-6-itac...@freebsd.org> Signed-off-by: Warner Losh --- bsd-user/aarch64/signal.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/bsd-user/aarch64/signal.c b/bsd-user/aarch64/signal.c index 98861f9ab3b..ab3bf8558ab 100644 --- a/bsd-user/aarch64/si

[PULL 08/14] bsd-user:Add AArch64 improvements and signal handling functions

2024-07-23 Thread Warner Losh
. Changed FP data structures to use Int128 instead of __uint128_t, leveraging QEMU's generic mechanism for referencing this type. Signed-off-by: Stacey Son Signed-off-by: Ajeet Singh Signed-off-by: Warner Losh Reviewed-by: Richard Henderson Message-Id: <20240707191128.10509-9-itac...@fre

[PULL 14/14] bsd-user: Add aarch64 build to tree

2024-07-23 Thread Warner Losh
Add the aarch64 bsd-user fragments needed to build the new aarch64 code. Signed-off-by: Warner Losh Reviewed-by: Richard Henderson --- configs/targets/aarch64-bsd-user.mak | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 configs/targets/aarch64-bsd-user.mak diff --git a/configs

[PULL 04/14] bsd-user:Add ARM AArch64 signal handling support

2024-07-23 Thread Warner Losh
Signed-off-by: Ajeet Singh Signed-off-by: Warner Losh Co-authored-by: Warner Losh Reviewed-by: Richard Henderson Message-Id: <20240707191128.10509-5-itac...@freebsd.org> Signed-off-by: Warner Losh --- bsd-user/aarch64/signal.c | 53 bsd-user/a

[PULL 13/14] bsd-user: Make compile for non-linux user-mode stuff

2024-07-23 Thread Warner Losh
We include the files that define PR_MTE_TCF_SHIFT only on Linux, but use them unconditionally. Restrict its use to Linux-only. "It's ugly, but it's not actually wrong." Signed-off-by: Warner Losh Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- ta

[PULL 06/14] bsd-user:Add setup_sigframe_arch function for ARM AArch64

2024-07-23 Thread Warner Losh
The function utilizes the `get_mcontext` function to retrieve the machine context for the current CPUARMState Signed-off-by: Warner Losh Signed-off-by: Ajeet Singh Reviewed-by: Richard Henderson Message-Id: <20240707191128.10509-7-itac...@freebsd.org> Signed-off-by: Warner Losh --- bs

[PULL 00/14] Bsd user for 9.1 patches

2024-07-23 Thread Warner Losh
ialization and management functions bsd-user:Add AArch64 register handling and related functions bsd-user:Add ARM AArch64 signal handling support bsd-user:Add get_mcontext function for ARM AArch64 bsd-user:Add set_mcontext function for ARM AArch64 bsd-user:Add AArch64 improvements and

Re: [PATCH 14/14] bsd-user: Add aarch64 build to tree

2024-07-23 Thread Warner Losh
On Tue, Jul 23, 2024 at 12:38 AM Philippe Mathieu-Daudé wrote: > On 23/7/24 03:17, Richard Henderson wrote: > > On 7/23/24 08:11, Philippe Mathieu-Daudé wrote: > >> On 23/7/24 00:06, Warner Losh wrote: > >>> > >>> > >>> On Mon, Jul 22, 2

Re: [PATCH 13/14] bsd-user: Make compile for non-linux user-mode stuff

2024-07-22 Thread Warner Losh
On Mon, Jul 22, 2024 at 4:01 PM Philippe Mathieu-Daudé wrote: > Hi Warner, > > On 22/7/24 23:43, Warner Losh wrote: > > We include the files that define PR_MTE_TCF_SHIFT only on Linux, but use > > them unconditionally. Restrict its use to Linux-only. > > We shou

Re: [PATCH 14/14] bsd-user: Add aarch64 build to tree

2024-07-22 Thread Warner Losh
Oh, also, can I get a reviewed-by? Warner On Mon, Jul 22, 2024 at 11:08 PM Warner Losh wrote: > > > On Mon, Jul 22, 2024 at 7:17 PM Richard Henderson < > richard.hender...@linaro.org> wrote: > >> On 7/23/24 08:11, Philippe Mathieu-Daudé wrote: >> >

Re: [PATCH 14/14] bsd-user: Add aarch64 build to tree

2024-07-22 Thread Warner Losh
On Mon, Jul 22, 2024 at 7:17 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 7/23/24 08:11, Philippe Mathieu-Daudé wrote: > > On 23/7/24 00:06, Warner Losh wrote: > >> > >> > >> On Mon, Jul 22, 2024 at 3:54 PM Philippe Mathieu-Da

Re: [PATCH 10/14] bsd-user: Hard wire aarch64 to be 4k pages only

2024-07-22 Thread Warner Losh
On Mon, Jul 22, 2024 at 7:10 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 7/23/24 07:43, Warner Losh wrote: > > Only support 4k pages for aarch64 binaries. The variable page size stuff > > isn't working just yet, so put in this lessor-of-evils kludge

Re: [PATCH 14/14] bsd-user: Add aarch64 build to tree

2024-07-22 Thread Warner Losh
On Mon, Jul 22, 2024 at 3:54 PM Philippe Mathieu-Daudé wrote: > Hi Warner, > > On 22/7/24 23:43, Warner Losh wrote: > > Add the aarch64 bsd-user fragments needed to build the new aarch64 code. > > > > Signed-off-by: Warner Losh > > --- > > configs/targe

[PATCH 13/14] bsd-user: Make compile for non-linux user-mode stuff

2024-07-22 Thread Warner Losh
We include the files that define PR_MTE_TCF_SHIFT only on Linux, but use them unconditionally. Restrict its use to Linux-only. Signed-off-by: Warner Losh --- target/arm/gdbstub64.c | 4 1 file changed, 4 insertions(+) diff --git a/target/arm/gdbstub64.c b/target/arm/gdbstub64.c index

[PATCH 11/14] bsd-user: Sync fork_start/fork_end with linux-user

2024-07-22 Thread Warner Losh
/qemu-bsd-user/pull/52 Reviewed-by: Warner Losh Signed-off-by: Warner Losh --- bsd-user/main.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/bsd-user/main.c b/bsd-user/main.c index 82e94a03160..6d81452e51a 100644 --- a/bsd-user/main.c +++ b/bsd

[PATCH 09/14] bsd-user: Simplify the implementation of execve

2024-07-22 Thread Warner Losh
ned-off-by: Doug Rabson Reviewed-by: Warner Losh Signed-off-by: Warner Losh --- bsd-user/freebsd/os-proc.c | 118 + bsd-user/main.c| 18 -- 2 files changed, 3 insertions(+), 133 deletions(-) diff --git a/bsd-user/freebsd/os-proc.c b/bsd-user/

[PATCH 05/14] bsd-user:Add get_mcontext function for ARM AArch64

2024-07-22 Thread Warner Losh
: <20240707191128.10509-6-itac...@freebsd.org> Signed-off-by: Warner Losh --- bsd-user/aarch64/signal.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/bsd-user/aarch64/signal.c b/bsd-user/aarch64/signal.c index 98861f9ab3b..ab3bf8558ab 100644 --- a/bsd-user/aarch64/si

[PATCH 14/14] bsd-user: Add aarch64 build to tree

2024-07-22 Thread Warner Losh
Add the aarch64 bsd-user fragments needed to build the new aarch64 code. Signed-off-by: Warner Losh --- configs/targets/aarch64-bsd-user.mak | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 configs/targets/aarch64-bsd-user.mak diff --git a/configs/targets/aarch64-bsd-user.mak b

[PATCH 10/14] bsd-user: Hard wire aarch64 to be 4k pages only

2024-07-22 Thread Warner Losh
Only support 4k pages for aarch64 binaries. The variable page size stuff isn't working just yet, so put in this lessor-of-evils kludge until that is complete. Signed-off-by: Warner Losh --- target/arm/cpu-param.h | 4 1 file changed, 4 insertions(+) diff --git a/target/arm/cpu-para

[PATCH 02/14] bsd-user:Add AArch64 register handling and related functions

2024-07-22 Thread Warner Losh
igned-off-by: Ajeet Singh Co-authored-by: Jessica Clarke Co-authored-by: Sean Bruno Co-authored-by: Warner Losh Reviewed-by: Richard Henderson Message-Id: <20240707191128.10509-3-itac...@freebsd.org> Signed-off-by: Warner Losh --- bsd-user/aarch64/target_arch.h | 28 ++

[PATCH 12/14] bsd-user: Define TARGET_SIGSTACK_ALIGN and use it to round stack

2024-07-22 Thread Warner Losh
Most (all?) targets require stacks to be properly aligned. Rather than a series of ifdefs in bsd-user/signal.h, instead use a manditory #define for all architectures. Signed-off-by: Warner Losh --- bsd-user/aarch64/target_arch_signal.h | 2 ++ bsd-user/arm/target_arch_signal.h | 2 ++ bsd

  1   2   3   4   5   6   7   8   9   10   >