Re: [PULL 0/3] Dirty page rate and dirty page limit 20230828 patches

2023-08-28 Thread Stefan Hajnoczi
On Mon, 28 Aug 2023 at 10:36, Hyman Huang wrote: > > From: Hyman > > The following changes since commit 50e7a40af372ee5931c99ef7390f5d3d6fbf6ec4: > > Merge tag 'pull-target-arm-20230824' of > https://git.linaro.org/people/pmaydell/qemu-arm into staging (2023-08-24 > 10:08:33 -0400) > > are av

Re: [PULL 0/3] Dirty page rate and dirty page limit 20230828 patches

2023-08-28 Thread Stefan Hajnoczi
I see you sent a second pull request that includes the emails. Please send a v3 with a signed tag. Thanks! Stefan

[PATCH 00/32] bsd-user: Implement freebsd process related system calls.

2023-08-28 Thread Karim Taha
Karim Taha (1): bsd-user: Add freebsd/os-proc.c to meson.build Kyle Evans (2): bsd-user: define TARGET_RFSPAWN for rfork to use vfork(2) semantics. bsd-user: Get number of cpus. Stacey Son (28): bsd-user: Implement procctl(2) system call. bsd-user: Implement host_to_target_siginfo.

[PATCH 13/32] bsd-user: Implement umask(2), setlogin(2) and getlogin(2)

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-proc.h | 39 +++ bsd-user/freebsd/os-syscall.c | 12 +++ 2 files changed, 51 insertions(+) diff --git a/bsd-user/bsd-proc.h b/bsd-user/bsd-proc.h index ecd6a

[PATCH 07/32] bsd-user: Implement target_to_host_resource conversion function

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-proc.c | 83 + 1 file changed, 83 insertions(+) create mode 100644 bsd-user/bsd-proc.c diff --git a/bsd-user/bsd-proc.c b/bsd-user/bsd-proc.c new file mode 100644

[PATCH 10/32] bsd-user: Implement host_to_target_waitstatus conversion.

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-proc.c | 17 + 1 file changed, 17 insertions(+) diff --git a/bsd-user/bsd-proc.c b/bsd-user/bsd-proc.c index 8e6dd5e427..49c0fb67d0 100644 --- a/bsd-user/bsd-proc.c +++ b/bsd-user/bsd-proc.c

[PATCH 04/32] bsd-user: Add freebsd_exec_common and do_freebsd_procctl to qemu.h.

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/main.c | 2 +- bsd-user/qemu.h | 7 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bsd-user/main.c b/bsd-user/main.c index 381bb18df8..b94b2d34b6 100644 --- a/bsd-user/main.c +++ b/bsd-user

[PATCH 06/32] bsd-user: Add bsd-proc.c to meson.build

2023-08-28 Thread Karim Taha
From: Warner Losh Signed-off-by: Warner Losh Signed-off-by: Karim Taha --- bsd-user/bsd-proc.h | 4 bsd-user/meson.build | 6 ++ 2 files changed, 10 insertions(+) diff --git a/bsd-user/bsd-proc.h b/bsd-user/bsd-proc.h index a1061bffb8..048773a75d 100644 --- a/bsd-user/bsd-proc.h +++

[PATCH 03/32] bsd-user: Implement host_to_target_siginfo.

2023-08-28 Thread Karim Taha
From: Stacey Son Used in wait6 system call Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/signal-common.h | 1 + bsd-user/signal.c| 6 ++ 2 files changed, 7 insertions(+) diff --git a/bsd-user/signal-common.h b/bsd-user/signal-common.h index 6f90345bb2..e37e1c3f

[PATCH 12/32] bsd-user: Implement getgroups(2) and setgroups(2) system calls.

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-proc.h | 44 +++ bsd-user/freebsd/os-syscall.c | 9 +++ 2 files changed, 53 insertions(+) diff --git a/bsd-user/bsd-proc.h b/bsd-user/bsd-proc.h index b6225e520

[PATCH 01/32] bsd-user: define TARGET_RFSPAWN for rfork to use vfork(2) semantics.

2023-08-28 Thread Karim Taha
From: Kyle Evans Signed-off-by: Kyle Evans Signed-off-by: Karim Taha --- bsd-user/syscall_defs.h | 4 1 file changed, 4 insertions(+) diff --git a/bsd-user/syscall_defs.h b/bsd-user/syscall_defs.h index e4825f2662..daf7f5637e 100644 --- a/bsd-user/syscall_defs.h +++ b/bsd-user/syscall_de

[PATCH 17/32] bsd-user: Implement get/set[resuid/resgid/sid] and issetugid.

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-proc.h | 76 +++ bsd-user/freebsd/os-syscall.c | 28 + 2 files changed, 104 insertions(+) diff --git a/bsd-user/bsd-proc.h b/bsd-user/bsd-proc.h index 98

[PATCH 14/32] bsd-user: Implement getrusage(2).

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-proc.h | 13 + bsd-user/freebsd/os-syscall.c | 4 2 files changed, 17 insertions(+) diff --git a/bsd-user/bsd-proc.h b/bsd-user/bsd-proc.h index 5228b4be78..ddb5a4d452 100644 ---

[PATCH 11/32] bsd-user: Get number of cpus.

2023-08-28 Thread Karim Taha
From: Kyle Evans Signed-off-by: Kyle Evans Signed-off-by: Karim Taha --- bsd-user/bsd-proc.c | 39 +++ bsd-user/bsd-proc.h | 2 ++ 2 files changed, 41 insertions(+) diff --git a/bsd-user/bsd-proc.c b/bsd-user/bsd-proc.c index 49c0fb67d0..dd6bad6de3 100644

[PATCH 09/32] bsd-user: Implement host_to_target_rusage and host_to_target_wrusage.

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-proc.c | 54 + 1 file changed, 54 insertions(+) diff --git a/bsd-user/bsd-proc.c b/bsd-user/bsd-proc.c index 12e43cfeca..8e6dd5e427 100644 --- a/bsd-user/bsd-proc.

[PATCH 05/32] bsd-user: add extern declarations for bsd-proc.c conversion functions

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/qemu-bsd.h | 38 ++ 1 file changed, 38 insertions(+) create mode 100644 bsd-user/qemu-bsd.h diff --git a/bsd-user/qemu-bsd.h b/bsd-user/qemu-bsd.h new file mode 100644 index

[PATCH 16/32] bsd-user: Implement several get/set system calls:

2023-08-28 Thread Karim Taha
From: Stacey Son getpid(2), getppid(2), getpgrp(2) setreuid(2), setregid(2) getuid(2), geteuid(2), getgid(2), getegid(2), getpgid(2) setuid(2), seteuid(2), setgid(2), setegid(2), setpgid(2) Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-proc.h | 90

[PATCH 23/32] bsd-user: Implement t2h procctl control request commands and h2t reaper status struct conversion.

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/freebsd/os-proc.c | 52 ++ 1 file changed, 52 insertions(+) diff --git a/bsd-user/freebsd/os-proc.c b/bsd-user/freebsd/os-proc.c index 396f258a64..f069472156 100644 --- a/bsd-

[PATCH 20/32] bsd-user: Add freebsd/os-proc.c to meson.build

2023-08-28 Thread Karim Taha
Signed-off-by: Karim Taha --- bsd-user/freebsd/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/bsd-user/freebsd/meson.build b/bsd-user/freebsd/meson.build index f87c788e84..d169e31235 100644 --- a/bsd-user/freebsd/meson.build +++ b/bsd-user/freebsd/meson.build @@ -1,4 +1,5 @@ bsd

[PATCH 15/32] bsd-user: Implement getrlimit(2) and setrlimit(2)

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-proc.h | 59 +++ bsd-user/freebsd/os-syscall.c | 8 + 2 files changed, 67 insertions(+) diff --git a/bsd-user/bsd-proc.h b/bsd-user/bsd-proc.h index ddb5a4d452.

[PATCH 21/32] bsd-user: Implement get_filename_from_fd.

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/freebsd/os-proc.c | 74 ++ 1 file changed, 74 insertions(+) create mode 100644 bsd-user/freebsd/os-proc.c diff --git a/bsd-user/freebsd/os-proc.c b/bsd-user/freebsd/os-proc.c

[PATCH 26/32] bsd-user: Implement execve(2) and fexecve(2) system calls.

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/freebsd/os-proc.h| 49 +++ bsd-user/freebsd/os-syscall.c | 10 +++ 2 files changed, 59 insertions(+) create mode 100644 bsd-user/freebsd/os-proc.h diff --git a/bsd-user/f

[PATCH 08/32] bsd-user: Implement target_to_host_rlim and host_to_target_rlim conversion.

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-proc.c | 33 + 1 file changed, 33 insertions(+) diff --git a/bsd-user/bsd-proc.c b/bsd-user/bsd-proc.c index ae2e636bb3..12e43cfeca 100644 --- a/bsd-user/bsd-proc.c +++ b/bsd-

[PATCH 31/32] bsd-user: Implement rfork(2) system call.

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/freebsd/os-proc.h| 38 +++ bsd-user/freebsd/os-syscall.c | 4 2 files changed, 42 insertions(+) diff --git a/bsd-user/freebsd/os-proc.h b/bsd-user/freebsd/os-proc.h inde

[PATCH 29/32] bsd-user: Implement pdgetpid(2) and the undocumented setugid.

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/freebsd/os-proc.h| 23 +++ bsd-user/freebsd/os-syscall.c | 8 2 files changed, 31 insertions(+) diff --git a/bsd-user/freebsd/os-proc.h b/bsd-user/freebsd/os-proc.h index 7d26d0

[PATCH 30/32] bsd-user: Implement fork(2) and vfork(2) system calls.

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/freebsd/os-proc.h| 34 ++ bsd-user/freebsd/os-syscall.c | 8 2 files changed, 42 insertions(+) diff --git a/bsd-user/freebsd/os-proc.h b/bsd-user/freebsd/os-proc.h i

[PATCH 25/32] bsd-user: Implement procctl(2) system call.

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/freebsd/os-proc.c| 114 ++ bsd-user/freebsd/os-syscall.c | 3 + 2 files changed, 117 insertions(+) diff --git a/bsd-user/freebsd/os-proc.c b/bsd-user/freebsd/os-proc.c index

[PATCH 24/32] bsd-user: Implement h2t reaper_pidinfo and h2t/t2h reaper_kill structs conversion functions.

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/freebsd/os-proc.c | 50 ++ 1 file changed, 50 insertions(+) diff --git a/bsd-user/freebsd/os-proc.c b/bsd-user/freebsd/os-proc.c index f069472156..a413109bc2 100644 --- a/bsd-

[PATCH 02/32] bsd-user: Implement procctl(2) system call.

2023-08-28 Thread Karim Taha
From: Stacey Son Implement procctl flags and related structs: struct target_procctl_reaper_status struct target_procctl_reaper_pidinfo struct target_procctl_reaper_pids struct target_procctl_reaper_kill Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/syscall_defs.h | 42 +

[PATCH 19/32] bsd-user: Implement getpriority(2) and setpriority(2).

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-proc.h | 27 +++ bsd-user/freebsd/os-syscall.c | 8 2 files changed, 35 insertions(+) diff --git a/bsd-user/bsd-proc.h b/bsd-user/bsd-proc.h index c9b5a4cbb6..c776

[PATCH 18/32] bsd-user: Add stubs for profil(2), ktrace(2), utrace(2) and ptrace(2).

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/bsd-proc.h | 28 bsd-user/freebsd/os-syscall.c | 16 2 files changed, 44 insertions(+) diff --git a/bsd-user/bsd-proc.h b/bsd-user/bsd-proc.h index 5c072d7

[PATCH 28/32] bsd-user: Implement setloginclass(2) and getloginclass(2) system calls.

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/freebsd/os-proc.h| 32 bsd-user/freebsd/os-syscall.c | 8 2 files changed, 40 insertions(+) diff --git a/bsd-user/freebsd/os-proc.h b/bsd-user/freebsd/os-proc.h ind

[PATCH 27/32] bsd-user: Implement wait4(2) and wait6(2) system calls.

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/freebsd/os-proc.h| 75 +++ bsd-user/freebsd/os-syscall.c | 14 +++ 2 files changed, 89 insertions(+) diff --git a/bsd-user/freebsd/os-proc.h b/bsd-user/freebsd/os-proc.h i

[PATCH 22/32] bsd-user: Implement freebsd_exec_common, used in implementing execve/fexecve.

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/freebsd/os-proc.c | 177 + 1 file changed, 177 insertions(+) diff --git a/bsd-user/freebsd/os-proc.c b/bsd-user/freebsd/os-proc.c index 5cd800e607..396f258a64 100644 --- a/bsd

[PATCH 32/32] bsd-user: Implement pdfork(2) system call.

2023-08-28 Thread Karim Taha
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha --- bsd-user/freebsd/os-proc.h| 32 bsd-user/freebsd/os-syscall.c | 4 2 files changed, 36 insertions(+) diff --git a/bsd-user/freebsd/os-proc.h b/bsd-user/freebsd/os-proc.h index 9

Re: [PATCH v5 04/17] nbd: Prepare for 64-bit request effect lengths

2023-08-28 Thread Eric Blake
On Thu, Aug 10, 2023 at 12:36:51PM -0500, Eric Blake wrote: > Widen the length field of NBDRequest to 64-bits, although we can > assert that all current uses are still under 32 bits: either because > of NBD_MAX_BUFFER_SIZE which is even smaller (and where size_t can > still be appropriate, even on

Re: [PATCH v1 0/7] Introduce model for IBM's FSP

2023-08-28 Thread Ninad Palsule
Hi Joel, On 8/28/23 23:25, Joel Stanley wrote: Hi Ninad, On Fri, 25 Aug 2023 at 20:51, Ninad Palsule wrote: Hello, Please review the patch-set. This is a first step towards introducing model for IBM's Flexible Service Interface. The full functionality will be implemented over the time. You

Re: [PULL 0/5] Devel hppa priv cleanup2 patches

2023-08-28 Thread Stefan Hajnoczi
Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/8.2 for any user-visible changes. signature.asc Description: PGP signature

Re: [PULL 00/14] Python, i386 changes for 2023-08-28

2023-08-28 Thread Stefan Hajnoczi
Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/8.2 for any user-visible changes. signature.asc Description: PGP signature

Re: [PATCH v2 00/48] tcg patch queue

2023-08-28 Thread Stefan Hajnoczi
Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/8.2 for any user-visible changes. signature.asc Description: PGP signature

Re: [PATCH 02/10] accel/tcg: Split out io_prepare and io_failed

2023-08-28 Thread Philippe Mathieu-Daudé
On 28/8/23 20:55, Richard Henderson wrote: These are common code from io_readx and io_writex. Signed-off-by: Richard Henderson --- accel/tcg/cputlb.c | 77 +++--- 1 file changed, 45 insertions(+), 32 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 05/10] accel/tcg: Merge cpu_transaction_failed into io_failed

2023-08-28 Thread Philippe Mathieu-Daudé
On 28/8/23 20:55, Richard Henderson wrote: Push computation down into the if statements to the point the data is used. Signed-off-by: Richard Henderson --- accel/tcg/cputlb.c | 33 + 1 file changed, 13 insertions(+), 20 deletions(-) Reviewed-by: Philippe Mat

Re: [PATCH] tcg: Remove vecop_list check from tcg_gen_not_vec

2023-08-28 Thread Philippe Mathieu-Daudé
On 28/8/23 21:39, Richard Henderson wrote: The not pattern is always available via generic expansion. See commit 11978f6f58 ("tcg: Fix expansion of INDEX_op_not_vec") and the debug block in tcg_can_emit_vecop_list. Signed-off-by: Richard Henderson --- tcg/tcg-op-vec.c | 7 +++ 1 fil

Re: [PATCH 7/8] target/helper: Remove unnecessary 'qemu/main-loop.h' header

2023-08-28 Thread Philippe Mathieu-Daudé
On 28/8/23 20:40, Richard Henderson wrote: On 8/28/23 07:55, Philippe Mathieu-Daudé wrote: "qemu/main-loop.h" declares functions related to QEMU's main loop mutex, which these files don't access. Remove the unused "qemu/main-loop.h" header. Signed-off-by: Philippe Mathieu-Daudé ---   target/ri

Re: [PATCH 7/8] target/helper: Remove unnecessary 'qemu/main-loop.h' header

2023-08-28 Thread Philippe Mathieu-Daudé
On 28/8/23 23:45, Philippe Mathieu-Daudé wrote: On 28/8/23 20:40, Richard Henderson wrote: On 8/28/23 07:55, Philippe Mathieu-Daudé wrote: "qemu/main-loop.h" declares functions related to QEMU's main loop mutex, which these files don't access. Remove the unused "qemu/main-loop.h" header. Signe

[PATCH v2 03/11] target/translate: Include missing 'exec/cpu_ldst.h' header

2023-08-28 Thread Philippe Mathieu-Daudé
All these files access the CPU LD/ST API declared in "exec/cpu_ldst.h". Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- target/avr/helper.c | 1 + target/i386/tcg/fpu_helper.c | 1 + target/i386/tcg/sysemu/excp_helper.c | 1 + target/loongarch/c

[PATCH v2 04/11] target/translate: Remove unnecessary 'exec/cpu_ldst.h' header

2023-08-28 Thread Philippe Mathieu-Daudé
All these files only access the translator_ld/st API declared in "exec/translator.h". The CPU ld/st API from declared in "exec/cpu_ldst.h" is not used, remove it. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- target/alpha/translate.c | 1 - target/hexagon/transla

[PATCH v2 05/11] target/translate: Restrict 'exec/cpu_ldst.h' to user emulation

2023-08-28 Thread Philippe Mathieu-Daudé
Only handle_sigsegv_accerr_write(), declared with user emulation, requires "exec/cpu_ldst.h" (for the abi_ptr typedef). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- include/exec/exec-all.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ex

[PATCH v2 07/11] target/helper: Remove unnecessary 'qemu/main-loop.h' header

2023-08-28 Thread Philippe Mathieu-Daudé
"qemu/main-loop.h" declares functions related to QEMU's main loop mutex, which these files don't access. Remove the unused "qemu/main-loop.h" header. Signed-off-by: Philippe Mathieu-Daudé --- target/riscv/pmu.h | 1 - target/arm/ptw.c | 1 - target/loongarch

[PATCH v2 01/11] target/ppc/pmu: Include missing 'qemu/timer.h' header

2023-08-28 Thread Philippe Mathieu-Daudé
Since commit c2eff582a3 ("target/ppc: PMU basic cycle count for pseries TCG") pmu_update_cycles() uses QEMU_CLOCK_VIRTUAL and calls qemu_clock_get_ns(), both defined in "qemu/timer.h". Signed-off-by: Philippe Mathieu-Daudé --- target/ppc/power8-pmu.c | 1 + 1 file changed, 1 insertion(+) diff -

[PATCH v2 10/11] qemu/processor: Remove unused 'qemu/atomic.h' header

2023-08-28 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- include/qemu/processor.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/qemu/processor.h b/include/qemu/processor.h index 8e16c9277d..9f0dcdf28f 100644 --- a/include/qemu/processor.h +++ b/include/qemu/processor.h @@ -7,8 +7,6 @@ #ifndef QE

[PATCH v2 08/11] target/mips: Remove unused headers in lcsr_helper.c

2023-08-28 Thread Philippe Mathieu-Daudé
This files only access the address_space_ld/st API, declared in "exec/cpu-all.h", already included by "cpu.h". Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- target/mips/tcg/sysemu/lcsr_helper.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/target/mips/tcg/syse

[PATCH v2 02/11] target/riscv/pmu: Restrict 'qemu/log.h' include to source

2023-08-28 Thread Philippe Mathieu-Daudé
Declarations from "riscv/pmu.h" don't need anything from "qemu/log.h", reduce it's inclusion to the source. Signed-off-by: Philippe Mathieu-Daudé --- target/riscv/pmu.h | 1 - target/riscv/pmu.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/target/riscv/pmu.h b/target/riscv

[PATCH v2 06/11] target/helpers: Remove unnecessary 'exec/cpu_ldst.h' header

2023-08-28 Thread Philippe Mathieu-Daudé
These files don't use the CPU ld/st API, remove the unnecessary "exec/cpu_ldst.h" header. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- target/riscv/pmu.h | 1 - target/cris/op_helper.c | 1 - target/mips/tcg/fpu_helper.c | 1 -

[PATCH v2 11/11] exec/translation-block: Clean up includes

2023-08-28 Thread Philippe Mathieu-Daudé
'qemu/atomic.h' and 'exec/target_page.h' are not used. 'qemu/interval-tree.h' is only required for user emulation. Signed-off-by: Philippe Mathieu-Daudé --- include/exec/translation-block.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/exec/translation-block.h

[PATCH v2 00/11] target/translate: Remove unused "exec/cpu_ldst.h" / "qemu/main-loop.h"

2023-08-28 Thread Philippe Mathieu-Daudé
Yet another boring 'header cleanups' series :/ Since v1: - Addressed Richard review comment - Added Richard R-b tag - 3 more patches around 'qemu/qatomic.h' Philippe Mathieu-Daudé (11): target/ppc/pmu: Include missing 'qemu/timer.h' header target/riscv/pmu: Restrict 'qemu/log.h' include to so

[PATCH v2 09/11] target/xtensa: Include missing 'qemu/atomic.h' header

2023-08-28 Thread Philippe Mathieu-Daudé
Since commit fa92bd4af7 ("target/xtensa: fix access to the INTERRUPT SR") these files use QEMU atomic API. Explicit the header inclusion instead of relying on implicit and indirect inclusion. Signed-off-by: Philippe Mathieu-Daudé --- hw/xtensa/pic_cpu.c| 1 + target/xtensa/exc_helper.c |

Re: [PATCH v2 04/16] kvm: Return number of free memslots

2023-08-28 Thread Philippe Mathieu-Daudé
On 25/8/23 15:21, David Hildenbrand wrote: Let's return the number of free slots instead of only checking if there is a free slot. While at it, check all address spaces, which will also consider SMM under x86 correctly. Make the stub return UINT_MAX, such that we can call the function unconditio

Re: [PATCH v2 15/16] memory,vhost: Allow for marking memory device memory regions unmergeable

2023-08-28 Thread Philippe Mathieu-Daudé
On 25/8/23 15:21, David Hildenbrand wrote: Let's allow for marking memory regions unmergeable, to teach flatview code and vhost to not merge adjacent aliases to the same memory region into a larger memory section; instead, we want separate aliases to stay separate such that we can atomically map/

Re: [PATCH v2 16/16] virtio-mem: Mark memslot alias memory regions unmergeable

2023-08-28 Thread Philippe Mathieu-Daudé
On 25/8/23 15:21, David Hildenbrand wrote: Let's mark the memslot alias memory regions as unmergable, such that flatview and vhost won't merge adjacent memory region aliases and we can atomically map/unmap individual aliases without affecting adjacent alias memory regions. This handles vhost and

Re: [PATCH 3/7] vhost-user: factor out "vhost_user_write_msg"

2023-08-28 Thread Philippe Mathieu-Daudé
On 27/8/23 20:29, Laszlo Ersek wrote: The tails of the "vhost_user_set_vring_addr" and "vhost_user_set_u64" functions are now byte-for-byte identical. Factor the common tail out to a new function called "vhost_user_write_msg". This is purely refactoring -- no observable change. Cc: "Michael S.

Re: [PATCH 4/7] vhost-user: flatten "enforce_reply" into "vhost_user_write_msg"

2023-08-28 Thread Philippe Mathieu-Daudé
On 27/8/23 20:29, Laszlo Ersek wrote: At this point, only "vhost_user_write_msg" calls "enforce_reply"; embed the latter into the former. This is purely refactoring -- no observable change. Cc: "Michael S. Tsirkin" (supporter:vhost) Cc: Eugenio Perez Martin Cc: German Maglione Cc: Liu Jiang

Re: [PATCH 6/7] vhost-user: allow "vhost_set_vring" to wait for a reply

2023-08-28 Thread Philippe Mathieu-Daudé
On 27/8/23 20:29, Laszlo Ersek wrote: The "vhost_set_vring" function already centralizes the common parts of "vhost_user_set_vring_num", "vhost_user_set_vring_base" and "vhost_user_set_vring_enable". We'll want to allow some of those callers to wait for a reply. Therefore, rebase "vhost_set_vrin

Re: [PATCH v2 00/48] tcg patch queue

2023-08-28 Thread Stefan Hajnoczi
On Thu, 24 Aug 2023 at 14:29, Richard Henderson wrote: > > The following changes since commit 50e7a40af372ee5931c99ef7390f5d3d6fbf6ec4: > > Merge tag 'pull-target-arm-20230824' of > https://git.linaro.org/people/pmaydell/qemu-arm into staging (2023-08-24 > 10:08:33 -0400) > > are available in

Re: [PATCH v1 1/7] hw/fsi: Introduce IBM's Local bus

2023-08-28 Thread Ninad Palsule
Hi Joel, On 8/28/23 23:34, Joel Stanley wrote: On Fri, 25 Aug 2023 at 20:31, Ninad Palsule wrote: This is a part of patchset where IBM's Flexible Service Interface is introduced. The LBUS is modelled to maintain the qdev bus hierarchy and to take advantage of the object model to automatically

Re: [PATCH v1 7/7] hw/arm: Hook up FSI module in AST2600

2023-08-28 Thread Ninad Palsule
Hi Joel, On 8/28/23 23:48, Joel Stanley wrote: On Fri, 25 Aug 2023 at 20:35, Ninad Palsule wrote: This patchset introduces IBM's Flexible Service Interface(FSI). Time for some fun with inter-processor buses. FSI allows a service processor access to the internal buses of a host POWER processor

Re: [PATCH v1 6/7] hw/fsi: Aspeed APB2OPB interface

2023-08-28 Thread Ninad Palsule
Hi Joel, On 8/28/23 23:55, Joel Stanley wrote: On Fri, 25 Aug 2023 at 20:31, Ninad Palsule wrote: This is a part of patchset where IBM's Flexible Service Interface is introduced. An APB-to-OPB bridge enabling access to the OPB from the ARM core in the AST2600. Hardware limitations prevent the

Re: [PATCH v1 4/7] hw/fsi: Introduce IBM's FSI

2023-08-28 Thread Ninad Palsule
Thanks for the review, Joel. On 8/28/23 23:57, Joel Stanley wrote: On Fri, 25 Aug 2023 at 20:44, Ninad Palsule wrote: This is a part of patchset where IBM's Flexible Service Interface is introduced. This commit models the FSI bus. CFAM is hanging out of FSI bus. The bus is model such a way th

[PATCH v2 5/7] hw/fsi: IBM's On-chip Peripheral Bus

2023-08-28 Thread Ninad Palsule
This is a part of patchset where IBM's Flexible Service Interface is introduced. The On-Chip Peripheral Bus (OPB): A low-speed bus typically found in POWER processors. This now makes an appearance in the ASPEED SoC due to tight integration of the FSI master IP with the OPB, mainly the existence of

[PATCH v2 0/7] Introduce model for IBM's FSI

2023-08-28 Thread Ninad Palsule
Hello, Please review the patch-set version 2. I have incorporated review comments from Joel. Ninad Palsule (7): hw/fsi: Introduce IBM's Local bus hw/fsi: Introduce IBM's scratchpad hw/fsi: Introduce IBM's cfam,fsi-slave hw/fsi: Introduce IBM's FSI hw/fsi: IBM's On-chip Peripheral Bus

[PATCH v2 6/7] hw/fsi: Aspeed APB2OPB interface

2023-08-28 Thread Ninad Palsule
This is a part of patchset where IBM's Flexible Service Interface is introduced. An APB-to-OPB bridge enabling access to the OPB from the ARM core in the AST2600. Hardware limitations prevent the OPB from being directly mapped into APB, so all accesses are indirect through the bridge. Signed-off-

[PATCH v2 4/7] hw/fsi: Introduce IBM's FSI

2023-08-28 Thread Ninad Palsule
This is a part of patchset where IBM's Flexible Service Interface is introduced. This commit models the FSI bus. CFAM is hanging out of FSI bus. The bus is model such a way that it is embeded inside the FSI master which is a bus controller. The FSI master: A controller in the platform service pro

Re: [PATCH v1 5/7] hw/fsi: IBM's On-chip Peripheral Bus

2023-08-28 Thread Ninad Palsule
Thanks for the review Joel. On 8/28/23 23:59, Joel Stanley wrote: On Fri, 25 Aug 2023 at 20:35, Ninad Palsule wrote: This is a part of patchset where IBM's Flexible Service Interface is introduced. The On-Chip Peripheral Bus (OPB): A low-speed bus typically found in POWER processors. This now

[PATCH v2 1/7] hw/fsi: Introduce IBM's Local bus

2023-08-28 Thread Ninad Palsule
This is a part of patchset where IBM's Flexible Service Interface is introduced. The LBUS is modelled to maintain the qdev bus hierarchy and to take advantage of the object model to automatically generate the CFAM configuration block. The configuration block presents engines in the order they are

[PATCH v2 2/7] hw/fsi: Introduce IBM's scratchpad

2023-08-28 Thread Ninad Palsule
This is a part of patchset where IBM's Flexible Service Interface is introduced. The LBUS device is embeded inside the scratchpad. The scratchpad provides a non-functional registers. There is a 1-1 relation between scratchpad and LBUS devices. Each LBUS device has 1K memory mapped in the LBUS. Si

[PATCH v2 7/7] hw/arm: Hook up FSI module in AST2600

2023-08-28 Thread Ninad Palsule
This patchset introduces IBM's Flexible Service Interface(FSI). Time for some fun with inter-processor buses. FSI allows a service processor access to the internal buses of a host POWER processor to perform configuration or debugging. FSI has long existed in POWER processes and so comes with some

[PATCH v2 3/7] hw/fsi: Introduce IBM's cfam,fsi-slave

2023-08-28 Thread Ninad Palsule
This is a part of patchset where IBM's Flexible Service Interface is introduced. The Common FRU Access Macro (CFAM), an address space containing various "engines" that drive accesses on busses internal and external to the POWER chip. Examples include the SBEFIFO and I2C masters. The engines hang o

[PULL 22/36] bsd-user: Implement statfs related syscalls

2023-08-28 Thread Warner Losh
From: Stacey Son Implement the following syscalls: statfs(2) fstatfs(2) getfsstat(2) Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Signed-off-by: Warner Losh --- bsd-user/freebsd/os-stat.h | 69 ++ 1 file changed, 69 i

[PULL 02/36] bsd-user: Remove image_info.mmap

2023-08-28 Thread Warner Losh
From: Richard Henderson This value is unused. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20230818175736.144194-3-richard.hender...@linaro.org> Reviewed-by: Warner Losh Signed-off-by: Warner Losh --- bsd-user/elfload.c | 1 - bsd-user/qemu.h| 1 - 2

[PULL 24/36] bsd-user: Implement stat related syscalls

2023-08-28 Thread Warner Losh
From: Stacey Son Implement the following syscalls: fcntl(2) Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Signed-off-by: Warner Losh --- bsd-user/freebsd/os-stat.h | 74 ++ 1 file changed, 74 insertions(+) diff --git

[PULL 00/36] 2023q3 bsd user patches

2023-08-28 Thread Warner Losh
The following changes since commit 50e7a40af372ee5931c99ef7390f5d3d6fbf6ec4: Merge tag 'pull-target-arm-20230824' of https://git.linaro.org/people/pmaydell/qemu-arm into staging (2023-08-24 10:08:33 -0400) are available in the Git repository at: g...@gitlab.com:bsdimp/qemu.git tags/2023q3-

[PULL 21/36] bsd-user: Implement statfh related syscalls

2023-08-28 Thread Warner Losh
From: Stacey Son Implement the following syscalls: getfh(2) lgetfh(2) fhopen(2) fhstat(2) fhstatfs(2) Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Signed-off-by: Warner Losh --- bsd-user/freebsd/os-stat.h | 83 ++ 1 f

[PULL 15/36] bsd-user: Implement h2t_freebsd11_stat h2t_freebsd_nstat

2023-08-28 Thread Warner Losh
From: Stacey Son Implement the stat conversion functions: h2t_freebsd11_stat h2t_freebsd_nstat Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Signed-off-by: Warner Losh --- bsd-user/freebsd/os-stat.c | 94 ++ 1 file cha

[PULL 19/36] bsd-uesr: Implement h2t_freebsd_stat and h2t_freebsd_statfs functions

2023-08-28 Thread Warner Losh
From: Michal Meloun They are the 64-bit variants of h2t_freebsd11_stat and h2t_freebsd11_statfs, respectively Signed-off-by: Michal Meloun Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Signed-off-by: Warner Losh --- bsd-user/freebsd/os-stat.c | 82

[PULL 01/36] bsd-user: Remove ELF_START_MMAP and image_info.start_mmap

2023-08-28 Thread Warner Losh
From: Richard Henderson The start_mmap value is write-only. Remove the field and the defines that populated it. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20230818175736.144194-2-richard.hender...@linaro.org> Reviewed-by: Warner Losh Signed-off-by: Warne

[PULL 25/36] bsd-user: Implement freebsd11 stat related syscalls

2023-08-28 Thread Warner Losh
From: Michal Meloun Rename the following syscalls to the freebsd11 variant: do_freebsd_lstat -> do_freebsd11_lstat do_freebsd_stat -> do_freebsd11_stat Co-authored-by: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Michal Meloun Signed-off-by: Karim Taha Reviewed-by: Richard Henderson

[PULL 20/36] bsd-user: Implement stat related syscalls

2023-08-28 Thread Warner Losh
From: Stacey Son Implement the following syscalls: stat(2) lstat(2) fstat(2) fstatat(2) nstat nfstat nlstat Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Signed-off-by: Warner Losh --- bsd-user/freebsd/os-stat.h | 130

[PULL 17/36] bsd-user: Implement h2t_freebds11_statfs

2023-08-28 Thread Warner Losh
From: Stacey Son Implement the stat conversion functions: h2t_freebds11_statfs Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Signed-off-by: Warner Losh --- bsd-user/freebsd/os-stat.c | 41 ++ 1 file changed, 41 inserti

[PULL 10/36] bsd-user: Add structs target_freebsd11_{nstat,statfs}

2023-08-28 Thread Warner Losh
From: Stacey Son Add structs target_freebsd11_nstat and target_freebsd11_statfs to bsd-user/syscall_defs.h Signed-off-by: Stacey Son Signed-off-by: Karim Taha Acked-by: Richard Henderson --- bsd-user/syscall_defs.h | 64 + 1 file changed, 64 insertions

[PULL 26/36] bsd-user: Implement freebsd11 fstat and fhstat related syscalls

2023-08-28 Thread Warner Losh
From: Michal Meloun Implement the freebsd11 variant of the following syscalls: fstat(2) fstatat(2) fhstat(2) fhstatfs(2) Co-authored-by: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Michal Meloun Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Signed-off-by: Warner Losh ---

[PULL 04/36] bsd-user: Move _WANT_FREEBSD macros to include/qemu/osdep.h

2023-08-28 Thread Warner Losh
move _WANT_FREEBSD macros from bsd-user/freebsd/os-syscall.c to include/qemu/osdep.h in order to pull some struct defintions needed later in the build. Signed-off-by: Warner Losh Signed-off-by: Karim Taha Acked-by: Richard Henderson --- bsd-user/freebsd/os-syscall.c | 11 --- include/q

[PULL 11/36] bsd-user: Add struct target_statfs

2023-08-28 Thread Warner Losh
From: Michal Meloun Add struct target_statfs to bsd-user/syscall_defs.h Signed-off-by: Michal Meloun Signed-off-by: Karim Taha Acked-by: Richard Henderson Signed-off-by: Warner Losh --- bsd-user/syscall_defs.h | 25 + 1 file changed, 25 insertions(+) diff --git a/bs

[PULL 05/36] bsd-user: Disable clang warnings

2023-08-28 Thread Warner Losh
From: Kyle Evans Implement PRAGMA_DISABLE_PACKED_WARNING and PRAGMA_REENABLE_PACKED_WARNING macros in include/qemu/compiler.h. Signed-off-by: Kyle Evans Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Signed-off-by: Warner Losh --- include/qemu/compiler.h | 30 +

[PULL 31/36] bsd-user: Add os-stat.c to the build

2023-08-28 Thread Warner Losh
From: Karim Taha Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Signed-off-by: Warner Losh --- bsd-user/freebsd/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/bsd-user/freebsd/meson.build b/bsd-user/freebsd/meson.build index f87c788e846..f2f047cca31 100644 --- a/bsd

[PULL 03/36] bsd-user: Remove image_info.start_brk

2023-08-28 Thread Warner Losh
From: Richard Henderson This has the same value is image_info.brk, which is also logged, and is otherwise unused. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20230818175736.144194-4-richard.hender...@linaro.org> Reviewed-by: Warner Losh Signed-off-by: War

[PULL 08/36] bsd-user: Add struct target_freebsd11_stat to bsd-user/syscall_defs

2023-08-28 Thread Warner Losh
From: Stacey Son Signed-off-by: Stacey Son Signed-off-by: Karim Taha Acked-by: Richard Henderson Singed-off-by: Warner Losh --- bsd-user/syscall_defs.h | 33 + 1 file changed, 33 insertions(+) diff --git a/bsd-user/syscall_defs.h b/bsd-user/syscall_defs.h ind

[PULL 16/36] bsd-user: Implement h2t_freebsd_fhandle t2h_freebsd_fhandle

2023-08-28 Thread Warner Losh
From: Stacey Son Implement the stat conversion functions: h2t_freebsd_fhandle t2h_freebsd_fhandle Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Signed-off-by: Warner Losh --- bsd-user/freebsd/os-stat.c | 37 + 1 file c

[PULL 13/36] bsd-user: Define safe_fcntl macro in bsd-user/syscall_defs.h

2023-08-28 Thread Warner Losh
From: Kyle Evans Signed-off-by: Kyle Evans Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Signed-off-by: Warner Losh --- bsd-user/syscall_defs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bsd-user/syscall_defs.h b/bsd-user/syscall_defs.h index 96ae90b0631..c6699c9943e 10

[PULL 09/36] bsd-user: Add struct target_stat to bsd-user/syscall_defs.h

2023-08-28 Thread Warner Losh
From: Michal Meloun Signed-off-by: Michal Meloun Signed-off-by: Karim Taha Acked-by: Richard Henderson Signed-off-by: Warner Losh --- bsd-user/syscall_defs.h | 38 ++ 1 file changed, 38 insertions(+) diff --git a/bsd-user/syscall_defs.h b/bsd-user/syscal

[PULL 23/36] bsd-user: Implement getdents related syscalls

2023-08-28 Thread Warner Losh
From: Stacey Son Implement the following syscalls: getdents(2) getdirecentries(2) Signed-off-by: Stacey Son Signed-off-by: Karim Taha Reviewed-by: Richard Henderson Signed-off-by: Warner Losh --- bsd-user/freebsd/os-stat.h | 72 ++ 1 file changed, 72 inse

<    1   2   3   4   >