Re: [PATCH v8 5/7] config: add check to block layer

2022-08-28 Thread Sam Li
Sam Li 于2022年8月27日周六 00:21写道: > > Putting zoned/non-zoned BlockDrivers on top of each other is not > allowed. > > Signed-off-by: Sam Li > Reviewed-by: Stefan Hajnoczi > --- > block.c | 14 ++ > block/file-posix.c | 13 + > block/raw

[PATCH 0/8] linux-user: Futex improvements

2022-08-28 Thread Richard Henderson
Fixes a bug in FUTEX_FD, and implements a bunch of other ops. Also, some assorted strace fixes. r~ Richard Henderson (8): linux-user: Combine do_futex and do_futex_time64 linux-user: Sink call to do_safe_futex linux-user: Implement FUTEX_WAKE_BITSET linux-user: Convert signal number for F

[PATCH 3/8] linux-user: Implement FUTEX_WAKE_BITSET

2022-08-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 8fbd5a9556..8bf4b79a9e 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -7774,6 +7774,7 @@ static int do_futex(CPUState *c

[PATCH 2/8] linux-user: Sink call to do_safe_futex

2022-08-28 Thread Richard Henderson
Leave only the argument adjustments within the shift, and sink the actual syscall to the end. Sink the timespec conversion as well, as there will be more users. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 60 +++- 1 file changed, 31 insert

[PATCH 4/8] linux-user: Convert signal number for FUTEX_FD

2022-08-28 Thread Richard Henderson
The val argument to FUTEX_FD is a signal number. Convert to match the host, as it will be converted back when the signal is delivered. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

[PATCH 5/8] linux-user: Implement PI futexes

2022-08-28 Thread Richard Henderson
Define the missing FUTEX_* constants in syscall_defs.h Signed-off-by: Richard Henderson --- linux-user/syscall_defs.h | 3 +++ linux-user/syscall.c | 10 ++ 2 files changed, 13 insertions(+) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 85b0f33e91..9a6d7

[PATCH 1/8] linux-user: Combine do_futex and do_futex_time64

2022-08-28 Thread Richard Henderson
Pass a boolean to select between time32 and time64. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 67 1 file changed, 11 insertions(+), 56 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index f409121202..a7e66d8d2

[PATCH 6/8] linux-user: Update print_futex_op

2022-08-28 Thread Richard Henderson
Use a table for the names; print unknown values in hex, since the value contains flags. Signed-off-by: Richard Henderson --- linux-user/strace.c | 65 - 1 file changed, 29 insertions(+), 36 deletions(-) diff --git a/linux-user/strace.c b/linux-user/st

[PATCH 7/8] linux-user: Lock log around strace

2022-08-28 Thread Richard Henderson
Do not allow syscall arguments to be interleaved between threads. Signed-off-by: Richard Henderson --- linux-user/strace.c | 65 - 1 file changed, 46 insertions(+), 19 deletions(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index 8eadbed39

[PATCH 8/8] linux-user: Log tid for strace

2022-08-28 Thread Richard Henderson
Printing the same pid for all threads isn't helpful. Signed-off-by: Richard Henderson --- linux-user/strace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index c47d91bb3d..ca9d44fa7c 100644 --- a/linux-user/strace.c +++ b/linux-us

[PATCH] target/sh4: Fix TB_FLAG_UNALIGN

2022-08-28 Thread Richard Henderson
The value previously chosen overlaps GUSA_MASK. Cc: qemu-sta...@nongnu.org Fixes: 4da06fb3062 ("target/sh4: Implement prctl_unalign_sigbus") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/856 Signed-off-by: Richard Henderson --- target/sh4/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH] target/sh4: Fix TB_FLAG_UNALIGN

2022-08-28 Thread Richard Henderson
On 8/28/22 19:13, Richard Henderson wrote: The value previously chosen overlaps GUSA_MASK. ... which meant that we didn't translate the gusa sequence into an atomic operation, which meant the multi-threaded tests fail. Cc: qemu-sta...@nongnu.org Fixes: 4da06fb3062 ("target/sh4: Implement prc

Re: [PATCH for-7.2 v4 10/21] hw/ppc: set machine->fdt in spapr machine

2022-08-28 Thread David Gibson
On Fri, Aug 26, 2022 at 11:11:39AM -0300, Daniel Henrique Barboza wrote: > The pSeries machine never bothered with the common machine->fdt > attribute. We do all the FDT related work using spapr->fdt_blob. > > We're going to introduce HMP commands to read and save the FDT, which > will rely on set

Re: [PATCH for-7.2 v4 15/21] qmp/hmp, device_tree.c: introduce 'info fdt' command

2022-08-28 Thread David Gibson
On Fri, Aug 26, 2022 at 11:11:44AM -0300, Daniel Henrique Barboza wrote: > Reading the FDT requires that the user saves the fdt_blob and then use > 'dtc' to read the contents. Saving the file and using 'dtc' is a strong > use case when we need to compare two FDTs, but it's a lot of steps if > you w

Re: [PATCH v2 2/7] multifd: modifying 'migrate' qmp command to add multifd socket on particular src and dest pair

2022-08-28 Thread Het Gala
On 08/08/22 11:41 am, Het Gala wrote: On 02/08/22 1:23 pm, Markus Armbruster wrote: Het Gala writes: On 26/07/22 4:43 pm, Daniel P. Berrangé wrote: On Thu, Jul 21, 2022 at 07:56:15PM +, Het Gala wrote: i) Modified the format of the qemu monitor command : 'migrate' by adding a list,

Re: [PATCH 11/13] linux-user: Show timespec on strace for futex()

2022-08-28 Thread Richard Henderson
On 8/26/22 07:18, Helge Deller wrote: Signed-off-by: Helge Deller --- linux-user/strace.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index bac47748bc..a90e719681 100644 --- a/linux-user/strace.c +++ b/linux-user/stra

Re: [PATCH 01/13] linux-user: Add missing signals in strace output

2022-08-28 Thread Richard Henderson
On 8/26/22 07:18, Helge Deller wrote: Some of the guest signal numbers are currently not converted to their representative names in the strace output, e.g. SIGVTALRM. This patch introduces a smart way to generate and keep in sync the host-to-guest and guest-to-host signal conversion tables for u

[PATCH] target/m68k: Implement atomic test-and-set

2022-08-28 Thread Richard Henderson
This is slightly more complicated than cas, because tas is allowed on data registers. Signed-off-by: Richard Henderson --- target/m68k/translate.c | 40 ++-- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/target/m68k/translate.c b/target/m68k/