Re: [PATCH v2 00/10] mirror: allow switching from background to active mode

2024-03-07 Thread Vladimir Sementsov-Ogievskiy
On 04.03.24 14:09, Peter Krempa wrote: On Mon, Mar 04, 2024 at 11:48:54 +0100, Kevin Wolf wrote: Am 28.02.2024 um 19:07 hat Vladimir Sementsov-Ogievskiy geschrieben: On 03.11.23 18:56, Markus Armbruster wrote: Kevin Wolf writes: [...] Is the job abstraction a failure? We have

Re: [RFC PATCH 4/5] hw/i386/q35: Wire virtual SMI# lines to ICH9 chipset

2024-03-07 Thread Thomas Huth
On 28/02/2024 17.43, Zhao Liu wrote: Hi Philippe, +/* + * Real ICH9 contains a single SMI output line and doesn't broadcast CPUs. + * Virtualized ICH9 allows broadcasting upon negatiation with guest, see + * commit 5ce45c7a2b. + */ +enum { +ICH9_VIRT_SMI_BROADCAST, +

Re: [PATCH v2 2/5] linux-user: Move tswap_siginfo out of target code

2024-03-07 Thread Richard Henderson
On 3/7/24 08:26, Gustavo Romero wrote: Move tswap_siginfo from target code to handle_pending_signal. This will allow some cleanups and having the siginfo ready to be used in gdbstub. Signed-off-by: Gustavo Romero Suggested-by: Richard Henderson --- linux-user/aarch64/signal.c | 2 +-

Re: [PATCH 2/5] target/sparc/cpu: Avoid spaces by default in the CPU names

2024-03-07 Thread Richard Henderson
On 3/7/24 07:43, Thomas Huth wrote: The output of "-cpu help" is currently rather confusing to the users: It is not clear which part of the output defines the CPU names since the CPU names contain white spaces (which we later have to convert into dashes internally) For example: Sparc TI

[PATCH 4/5] include/exec: annotate all the MemoryRegion fields

2024-03-07 Thread Alex Bennée
Signed-off-by: Alex Bennée --- include/exec/memory.h | 47 +++ 1 file changed, 43 insertions(+), 4 deletions(-) diff --git a/include/exec/memory.h b/include/exec/memory.h index 17b741bc4f5..312ed564dbe 100644 --- a/include/exec/memory.h +++

Re: [PATCH] target/riscv: Implement dynamic establishment of custom decoder

2024-03-07 Thread Richard Henderson
On 3/7/24 09:55, Daniel Henrique Barboza wrote: (--- adding Richard ---) On 3/6/24 06:33, Huang Tao wrote: In this patch, we modify the decoder to be a freely composable data structure instead of a hardcoded one. It can be dynamically builded up according to the extensions. This approach has

Re: [PATCH v2 1/5] gdbstub: Rename back gdb_handlesig

2024-03-07 Thread Richard Henderson
On 3/7/24 08:26, Gustavo Romero wrote: Rename gdb_handlesig_reason back to gdb_handlesig. There is no need to add a wrapper for gdb_handlesig and rename it when a new parameter is added. Signed-off-by: Gustavo Romero --- gdbstub/user.c | 8 include/gdbstub/user.h | 15

Re: [PATCH v2 4/5] gdbstub: Add Xfer:siginfo:read stub

2024-03-07 Thread Richard Henderson
On 3/7/24 08:26, Gustavo Romero wrote: +void gdb_handle_query_xfer_siginfo(GArray *params, void *user_ctx) +{ +unsigned long offset, len; +uint8_t *siginfo_offset; + +offset = get_param(params, 0)->val_ul; +len = get_param(params, 1)->val_ul; + +if (offset + len >

Re: [PATCH 1/5] target/sparc/cpu: Rename the CPU models with a "+" in their names

2024-03-07 Thread Richard Henderson
On 3/7/24 07:43, Thomas Huth wrote: +/* Fix up legacy names with '+' in it */ +if (g_str_equal(typename, SPARC_CPU_TYPE_NAME("Sun-UltraSparc-IV+"))) { +g_free(typename); +typename = g_strdup(SPARC_CPU_TYPE_NAME("Sun-UltraSparc-IVp")); +} else if (g_str_equal(typename,

Re: [PATCH] virt: set the CPU type in BOOTINFO

2024-03-07 Thread Mark Cave-Ayland
On 23/02/2024 15:57, Laurent Vivier wrote: BI_CPUTYPE/BI_MMUTYPE/BI_FPUTYPE were statically assigned to the 68040 information. This patch changes the code to set in bootinfo the information provided by the command line '-cpu' parameter. Bug: https://gitlab.com/qemu-project/qemu/-/issues/2091

Re: [PATCH v5 06/13] hw/mem/cxl_type3: Add host backend and address space handling for DC regions

2024-03-07 Thread fan
On Thu, Mar 07, 2024 at 12:16:05PM +, Jonathan Cameron wrote: > > > > @@ -868,16 +974,24 @@ static int > > > > cxl_type3_hpa_to_as_and_dpa(CXLType3Dev *ct3d, > > > > AddressSpace **as, > > > > uint64_t

[PATCH v2 2/5] linux-user: Move tswap_siginfo out of target code

2024-03-07 Thread Gustavo Romero
Move tswap_siginfo from target code to handle_pending_signal. This will allow some cleanups and having the siginfo ready to be used in gdbstub. Signed-off-by: Gustavo Romero Suggested-by: Richard Henderson --- linux-user/aarch64/signal.c | 2 +- linux-user/alpha/signal.c | 2 +-

Re: [RISC-V][tech-server-soc] [RFC 2/2] target/riscv: Add server platform reference cpu

2024-03-07 Thread Daniel Henrique Barboza
On 3/7/24 04:36, Wu, Fei wrote: On 3/6/2024 9:26 PM, Wu, Fei wrote: On 3/5/2024 1:58 PM, Wu, Fei wrote: On 3/5/2024 3:43 AM, Daniel Henrique Barboza wrote: On 3/4/24 07:25, Fei Wu wrote: The harts requirements of RISC-V server platform [1] require RVA23 ISA profile support, plus Sv48,

Re: [PATCH 4/5] include/exec: annotate all the MemoryRegion fields

2024-03-07 Thread Richard Henderson
On 3/7/24 08:11, Alex Bennée wrote: Signed-off-by: Alex Bennée --- include/exec/memory.h | 47 +++ 1 file changed, 43 insertions(+), 4 deletions(-) diff --git a/include/exec/memory.h b/include/exec/memory.h index 17b741bc4f5..312ed564dbe 100644 ---

Re: [PATCH 3/5] target/sparc/cpu: Improve the CPU help text

2024-03-07 Thread Richard Henderson
On 3/7/24 07:43, Thomas Huth wrote: Remove the unnecessary "Sparc" at the beginning of the line and put the chip information into parentheses so that it is clearer which part of the line have to be passed to "-cpu" to specify a different CPU.

Re: [PATCH] target/riscv: Implement dynamic establishment of custom decoder

2024-03-07 Thread Daniel Henrique Barboza
On 3/7/24 17:11, Richard Henderson wrote: On 3/7/24 09:55, Daniel Henrique Barboza wrote: (--- adding Richard ---) On 3/6/24 06:33, Huang Tao wrote: In this patch, we modify the decoder to be a freely composable data structure instead of a hardcoded one. It can be dynamically builded up

Re: [RFC 0/2] Add RISC-V Server Platform Reference Board

2024-03-07 Thread Marcin Juszkiewicz
W dniu 4.03.2024 o 11:25, Fei Wu pisze: The RISC-V Server Platform specification[1] defines a standardized set of hardware and software capabilities, that portable system software, such as OS and hypervisors can rely on being present in a RISC-V server platform. This patchset provides a RISC-V

Re: [PATCH 4/5] include/exec: annotate all the MemoryRegion fields

2024-03-07 Thread Alex Bennée
Richard Henderson writes: > On 3/7/24 08:11, Alex Bennée wrote: >> Signed-off-by: Alex Bennée >> --- >> include/exec/memory.h | 47 +++ >> 1 file changed, 43 insertions(+), 4 deletions(-) >> diff --git a/include/exec/memory.h b/include/exec/memory.h >>

Re: [PATCH 1/3] ui/gtk: skip drawing guest scanout when associated VC is invisible

2024-03-07 Thread Daniel P . Berrangé
On Thu, Mar 07, 2024 at 05:53:24PM +, Kim, Dongwon wrote: > Hi Daniel, > > > -Original Message- > > From: Daniel P. Berrangé > > Sent: Thursday, March 7, 2024 1:46 AM > > To: Kim, Dongwon > > Cc: Marc-André Lureau ; qemu- > > de...@nongnu.org > > Subject: Re: [PATCH 1/3] ui/gtk:

[PATCH v2 5/5] tests/tcg: Add multiarch test for Xfer:siginfo:read stub

2024-03-07 Thread Gustavo Romero
Add multiarch test for testing if Xfer:siginfo:read query is properly handled by gdbstub. Signed-off-by: Gustavo Romero --- tests/tcg/multiarch/Makefile.target | 10 ++- .../gdbstub/test-qxfer-siginfo-read.py| 26 +++ tests/tcg/multiarch/segfault.c

[PATCH v2 1/5] gdbstub: Rename back gdb_handlesig

2024-03-07 Thread Gustavo Romero
Rename gdb_handlesig_reason back to gdb_handlesig. There is no need to add a wrapper for gdb_handlesig and rename it when a new parameter is added. Signed-off-by: Gustavo Romero --- gdbstub/user.c | 8 include/gdbstub/user.h | 15 ++- linux-user/main.c | 2 +-

[PATCH v2 3/5] gdbstub: Save target's siginfo

2024-03-07 Thread Gustavo Romero
Save target's siginfo into gdbserver_state so it can be used later, for example, in any stub that requires the target's si_signo and si_code. This change affects only linux-user mode. Signed-off-by: Gustavo Romero Suggested-by: Richard Henderson --- gdbstub/internals.h| 3 +++

[PATCH v2 4/5] gdbstub: Add Xfer:siginfo:read stub

2024-03-07 Thread Gustavo Romero
Add stub to handle Xfer:siginfo:read packet query that requests the machine's siginfo data. This is used when GDB user executes 'print $_siginfo' and when the machine stops due to a signal, for instance, on SIGSEGV. The information in siginfo allows GDB to determiner further details on the

Re: [PATCH v2 2/5] linux-user: Move tswap_siginfo out of target code

2024-03-07 Thread Alex Bennée
Gustavo Romero writes: > Move tswap_siginfo from target code to handle_pending_signal. This will > allow some cleanups and having the siginfo ready to be used in gdbstub. > > Signed-off-by: Gustavo Romero > Suggested-by: Richard Henderson > --- > linux-user/aarch64/signal.c | 2 +- >

RE: [PATCH 1/3] ui/gtk: skip drawing guest scanout when associated VC is invisible

2024-03-07 Thread Kim, Dongwon
Hi Daniel, > -Original Message- > From: Daniel P. Berrangé > Sent: Thursday, March 7, 2024 10:01 AM > To: Kim, Dongwon > Cc: Marc-André Lureau ; qemu- > de...@nongnu.org > Subject: Re: [PATCH 1/3] ui/gtk: skip drawing guest scanout when associated > VC is invisible > > On Thu, Mar 07,

Re: [PATCH] target/riscv: Implement dynamic establishment of custom decoder

2024-03-07 Thread Richard Henderson
-    for (size_t i = 0; i < ARRAY_SIZE(decoders); ++i) { -    if (decoders[i].guard_func(ctx->cfg_ptr) && -    decoders[i].decode_func(ctx, opcode32)) { +    for (size_t i = 0; i < decoder_table_size; ++i) { +    if (ctx->decoder[i](ctx, opcode32)) {    

Re: [PATCH v2 2/5] linux-user: Move tswap_siginfo out of target code

2024-03-07 Thread Richard Henderson
On 3/7/24 09:21, Alex Bennée wrote: +/* + * Writes out siginfo values byteswapped, accordingly to the target. It also + * cleans the si_type from si_code making it correct for the target. + */ +tswap_siginfo(>info, >info); + I'm not sure I like this, you have the same

Re: [PATCH v2 5/5] tests/tcg: Add multiarch test for Xfer:siginfo:read stub

2024-03-07 Thread Richard Henderson
On 3/7/24 08:26, Gustavo Romero wrote: Add multiarch test for testing if Xfer:siginfo:read query is properly handled by gdbstub. Signed-off-by: Gustavo Romero --- tests/tcg/multiarch/Makefile.target | 10 ++- .../gdbstub/test-qxfer-siginfo-read.py| 26

[PATCH v2] hmp: Add option to info qtree to omit details

2024-03-07 Thread BALATON Zoltan
The output of info qtree monitor command is very long. Add an option to print a brief overview omitting all the details. Signed-off-by: BALATON Zoltan Reviewed-by: Dr. David Alan Gilbert --- v2: - Change the variable name to deails too - Add braces to if (checkpatch did not warn for this so

Re: [PATCH v2 3/5] gdbstub: Save target's siginfo

2024-03-07 Thread Richard Henderson
On 3/7/24 08:26, Gustavo Romero wrote: Save target's siginfo into gdbserver_state so it can be used later, for example, in any stub that requires the target's si_signo and si_code. This change affects only linux-user mode. Signed-off-by: Gustavo Romero Suggested-by: Richard Henderson ---

[PATCH 3/5] include/exec: remove warning_printed from MemoryRegion

2024-03-07 Thread Alex Bennée
Since d197063fcf9 (memory: move unassigned_mem_ops to memory.c) this field is unused. Signed-off-by: Alex Bennée --- include/exec/memory.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/exec/memory.h b/include/exec/memory.h index 8626a355b31..17b741bc4f5 100644 ---

[PATCH 2/5] docs: include ramblock.h in the memory API docs

2024-03-07 Thread Alex Bennée
The RAMBlock concept is fairly central to RAM-like MemoryRegions so lets update the structure documentation and include in the docs. Signed-off-by: Alex Bennée --- docs/devel/memory.rst | 1 + include/exec/ramblock.h | 76 +++-- 2 files changed, 52

[PATCH 0/5] docs: improve the memory API documentation

2024-03-07 Thread Alex Bennée
As I've been looking through the Memory API for our Xen work I thought I should take the time to clean it up. I needed to teach kdoc about our QLIST_ macros and I found at least one unused field in the structure. Looking through the definitions I do wander if the meaning of romd_mode and

[PATCH 1/5] scripts/kernel-doc: teach kdoc about QLIST_ macros

2024-03-07 Thread Alex Bennée
The kernel-doc script does some pre-processing on structure definitions before parsing for names. Teach it about QLIST and replace with simplified structures representing the base type. Signed-off-by: Alex Bennée --- scripts/kernel-doc | 9 - 1 file changed, 8 insertions(+), 1

[PATCH 5/5] docs/devel: mark out defined functions and structures

2024-03-07 Thread Alex Bennée
This allows sphinx to hyperlink the references to their kdoc definitions for easy navigation. Signed-off-by: Alex Bennée --- docs/devel/memory.rst | 48 +-- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/docs/devel/memory.rst

Re: [PATCH 05/17] hw/vfio/ap: Fix missing ERRP_GUARD() for error_prepend()

2024-03-07 Thread Thomas Huth
On 04/03/2024 16.12, Anthony Krowiak wrote: On 2/29/24 12:30 PM, Thomas Huth wrote: On 29/02/2024 15.39, Zhao Liu wrote: From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without

Re: [PATCH] target/riscv: Implement dynamic establishment of custom decoder

2024-03-07 Thread Daniel Henrique Barboza
(--- adding Richard ---) On 3/6/24 06:33, Huang Tao wrote: In this patch, we modify the decoder to be a freely composable data structure instead of a hardcoded one. It can be dynamically builded up according to the extensions. This approach has several benefits: 1. Provides support for

Re: [PATCH 0/4] hw/i386/pc: Trivial cleanups

2024-03-07 Thread Bernhard Beschow
Am 1. März 2024 18:59:32 UTC schrieb "Philippe Mathieu-Daudé" : >Trivial cleanups, mostly around the 'isapc' machine. > >Philippe Mathieu-Daudé (4): > hw/i386/pc: Remove pc_compat_1_4..1.7[] left over declarations > hw/i386/pc: Use generated NotifyVmexitOption_str() > hw/i386/pc: Remove

Re: [PATCH v1 2/5] hw/ppc: SPI controller model - registers implementation

2024-03-07 Thread Stefan Berger
On 3/7/24 13:54, Stefan Berger wrote: On 2/7/24 11:08, Chalapathi V wrote: +#define COUNTER_CONFIG_REG_SHIFT_COUNT_N1   PPC_BITMASK(0 , 7) No space before the ',' ==> PPC_BITMASK(0, 7)

Re: [RISC-V][tech-server-platform] [RISC-V][tech-server-soc] [RFC 2/2] target/riscv: Add server platform reference cpu

2024-03-07 Thread Daniel Henrique Barboza
On 3/7/24 09:17, Heinrich Schuchardt wrote: On 07.03.24 08:36, Wu, Fei2 wrote: On 3/6/2024 9:26 PM, Wu, Fei wrote: On 3/5/2024 1:58 PM, Wu, Fei wrote: On 3/5/2024 3:43 AM, Daniel Henrique Barboza wrote: On 3/4/24 07:25, Fei Wu wrote: The harts requirements of RISC-V server platform [1]

Re: [PATCH V3 1/1] target/loongarch: Fixed tlb huge page loading issue

2024-03-07 Thread Richard Henderson
On 3/6/24 21:37, Xianglai Li wrote: When we use qemu tcg simulation, the page size of bios is 4KB. When using the level 2 super large page (page size is 1G) to create the page table, it is found that the content of the corresponding address space is abnormal, resulting in the bios can not start

Re: [PATCH 3/5] include/exec: remove warning_printed from MemoryRegion

2024-03-07 Thread Philippe Mathieu-Daudé
On 7/3/24 19:11, Alex Bennée wrote: Since d197063fcf9 (memory: move unassigned_mem_ops to memory.c) this field is unused. Signed-off-by: Alex Bennée --- include/exec/memory.h | 1 - 1 file changed, 1 deletion(-) 10+ years ;) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 3/5] include/exec: remove warning_printed from MemoryRegion

2024-03-07 Thread Richard Henderson
On 3/7/24 08:11, Alex Bennée wrote: Since d197063fcf9 (memory: move unassigned_mem_ops to memory.c) this field is unused. Signed-off-by: Alex Bennée --- include/exec/memory.h | 1 - 1 file changed, 1 deletion(-) Reviewed-by: Richard Henderson r~

Re: [PATCH v2 3/5] gdbstub: Save target's siginfo

2024-03-07 Thread Alex Bennée
Richard Henderson writes: > On 3/7/24 08:26, Gustavo Romero wrote: >> Save target's siginfo into gdbserver_state so it can be used later, for >> example, in any stub that requires the target's si_signo and si_code. >> This change affects only linux-user mode. >> Signed-off-by: Gustavo Romero >>

[PATCH] pci: Add option to disable device level INTx masking

2024-03-07 Thread Alex Williamson
The PCI 2.3 spec added definitions of the INTx disable and status bits, in the command and status registers respectively. The command register bit, commonly known as DisINTx in lspci, controls whether the device can assert the INTx signal. Operating systems will often write to this bit to test

Re: [PATCH 3/5] target/sparc/cpu: Improve the CPU help text

2024-03-07 Thread Philippe Mathieu-Daudé
On 7/3/24 18:43, Thomas Huth wrote: Remove the unnecessary "Sparc" at the beginning of the line and put the chip information into parentheses so that it is clearer which part of the line have to be passed to "-cpu" to specify a different CPU. Resolves:

Re: [PATCH v1 2/5] hw/ppc: SPI controller model - registers implementation

2024-03-07 Thread Stefan Berger
On 2/7/24 11:08, Chalapathi V wrote: SPI controller device model supports a connection to a single SPI responder. This provide access to SPI seeproms, TPM, flash device and an ADC controller. All SPI function control is mapped into the SPI register space to enable full control by firmware.

Re: [PATCH v2 1/5] gdbstub: Rename back gdb_handlesig

2024-03-07 Thread Alex Bennée
Gustavo Romero writes: > Rename gdb_handlesig_reason back to gdb_handlesig. There is no need to > add a wrapper for gdb_handlesig and rename it when a new parameter is > added. > > Signed-off-by: Gustavo Romero Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

[PATCH] hw/m68k/mcf5208: add support for reset

2024-03-07 Thread Angelo Dureghello
Add reset support. Signed-off-by: Angelo Dureghello --- hw/m68k/mcf5208.c | 51 --- 1 file changed, 48 insertions(+), 3 deletions(-) diff --git a/hw/m68k/mcf5208.c b/hw/m68k/mcf5208.c index 0cfb806c20..b1ab3896d0 100644 --- a/hw/m68k/mcf5208.c +++

Re: [PATCH 2/2] tests/tcg: Add multiarch test for Xfer:siginfo:read stub

2024-03-07 Thread Richard Henderson
On 3/7/24 07:50, Gustavo Romero wrote: Hi Richard, On 3/4/24 7:51 PM, Richard Henderson wrote: On 3/4/24 10:59, Gustavo Romero wrote: Perhaps just abort for SIGABRT instead? Although this can make a simpler test, the test can't control the si_addr value easily, which I think is interesting

Re: [PATCH v2 2/2] kvm: add support for guest physical bits

2024-03-07 Thread Xiaoyao Li
On 3/5/2024 6:52 PM, Gerd Hoffmann wrote: Query kvm for supported guest physical address bits, in cpuid function 8008, eax[23:16]. Usually this is identical to host physical address bits. With NPT or EPT being used this might be restricted to 48 (max 4-level paging address space size) even

Re: [PATCH 0/4] hw/i386/pc: Trivial cleanups

2024-03-07 Thread Michael Tokarev
07.03.2024 21:57, Bernhard Beschow : Am 1. März 2024 18:59:32 UTC schrieb "Philippe Mathieu-Daudé" : Trivial cleanups, mostly around the 'isapc' machine. Philippe Mathieu-Daudé (4): hw/i386/pc: Remove pc_compat_1_4..1.7[] left over declarations hw/i386/pc: Use generated

Re: Problem with migration/rdma

2024-03-07 Thread Peter Xu
On Fri, Mar 08, 2024 at 07:27:59AM +0100, Yu Zhang wrote: > Hello Zhijian and Peter, > > Thank you so much for testing and confirming it. > I created a patch in the email format, unfortunately got an issue for > setting up the > "Application-specific Password" in Gmail. It seems that in my gmail

Re: [PATCH v2 1/4] qapi/block-core: avoid the re-use of MirrorSyncMode for backup

2024-03-07 Thread Markus Armbruster
Fiona Ebner writes: > Backup supports all modes listed in MirrorSyncMode, while mirror does > not. Introduce BackupSyncMode by copying the current MirrorSyncMode > and drop the variants mirror does not support from MirrorSyncMode as > well as the corresponding manual check in mirror_start().

Re: [PATCH 1/5] target/sparc/cpu: Rename the CPU models with a "+" in their names

2024-03-07 Thread Thomas Huth
On 07/03/2024 22.22, Richard Henderson wrote: On 3/7/24 07:43, Thomas Huth wrote: +    /* Fix up legacy names with '+' in it */ +    if (g_str_equal(typename, SPARC_CPU_TYPE_NAME("Sun-UltraSparc-IV+"))) { +    g_free(typename); +    typename =

Re: [PATCH v4 07/25] migration: Always report an error in block_save_setup()

2024-03-07 Thread Peter Xu
On Wed, Mar 06, 2024 at 02:34:22PM +0100, Cédric Le Goater wrote: > @@ -404,6 +403,10 @@ static int init_blk_migration(QEMUFile *f) > sectors = bdrv_nb_sectors(bs); > if (sectors <= 0) { Not directly relevant to this patch, but just to mention that this looks suspicious (even if

Re: [PATCH v3 00/20] Use Intel DSA accelerator to offload zero page checking in multifd live migration.

2024-03-07 Thread liulongfang via
On 2024/1/4 8:44, Hao Xiang wrote: > v3 > * Rebase on top of 7425b6277f12e82952cede1f531bfc689bf77fb1. > * Fix error/warning from checkpatch.pl > * Fix use-after-free bug when multifd-dsa-accel option is not set. > * Handle error from dsa_init and correctly propogate the error. > * Remove

Enabling internal errors for VH CXL devices: [was: Re: Questions about CXL RAS injection test in qemu]

2024-03-07 Thread Yuquan Wang
On 2024-03-07 20:10, jonathan.cameron wrote: > Hack is fine the relevant device with lspci -tv and then use > setpci -s 0d:00.0 0x208.l=0 > to clear all the mask bits for uncorrectable errors. Thanks! The suggestions from you and Terry did work! BTW, is my understanding below about CXL RAS

Re: [PATCH 2/2] linux-user/riscv: Sync hwprobe keys with Linux

2024-03-07 Thread Alistair Francis
On Wed, Feb 7, 2024 at 10:00 PM Christoph Müllner wrote: > > Upstream Linux recently added many additional keys to the hwprobe API. > This patch adds support for all of them with the exception of Ztso, > which is currently not supported in QEMU. > > Signed-off-by: Christoph Müllner > --- >

[PATCH v2] docs/acpi/bits: add some clarity and details while also improving formating

2024-03-07 Thread Ani Sinha
Update bios-bits docs to add more details on why a pre-OS environment for testing bioses is useful. Add author's FOSDEM talk link. Also improve the formating of the document while at it. CC: qemu-triv...@nongnu.org Signed-off-by: Ani Sinha --- docs/devel/acpi-bits.rst | 55

Re: [PATCH v2 14/20] smbios: extend smbios-entry-point-type with 'auto' value

2024-03-07 Thread Markus Armbruster
Igor Mammedov writes: > later patches will use it to pick SMBIOS version at runtime > depending on configuration. > > Signed-off-by: Igor Mammedov > Acked-by: Markus Armbruster > Reviewed-by: Ani Sinha > Tested-by: Fiona Ebner > --- > qapi/machine.json | 5 - > 1 file changed, 4

Re: [PATCH v2 0/4] physmem: Fix MemoryRegion for second access to cached MMIO Address Space

2024-03-07 Thread Peter Xu
On Thu, Mar 07, 2024 at 03:37:06PM +, Jonathan Cameron wrote: > v2: (Thanks to Peter Xu for reviewing!) > - New patch 1 to rename addr1 to mr_addr in the interests of meaningful > naming. > - Take advantage of a cached address space only allow for a single MR to > simplify > the new code.

Re: [PATCH v4 20/25] vfio: Add Error** argument to .vfio_save_config() handler

2024-03-07 Thread Eric Auger
On 3/7/24 14:55, Cédric Le Goater wrote: > On 3/7/24 10:13, Eric Auger wrote: >> >> >> On 3/6/24 14:34, Cédric Le Goater wrote: >>> Use vmstate_save_state_with_err() to improve error reporting in the >>> callers and store a reported error under the migration stream. Add >>> documentation while

Re: [PATCH 1/5] scripts/kernel-doc: teach kdoc about QLIST_ macros

2024-03-07 Thread Peter Xu
On Thu, Mar 07, 2024 at 06:11:01PM +, Alex Bennée wrote: > The kernel-doc script does some pre-processing on structure > definitions before parsing for names. Teach it about QLIST and replace > with simplified structures representing the base type. > > Signed-off-by: Alex Bennée > --- >

Re: [PULL 0/4] machine development tool

2024-03-07 Thread Peter Xu
On Thu, Mar 07, 2024 at 12:06:59PM +0300, Maksim Davydov wrote: > > On 3/6/24 04:57, Peter Xu wrote: > > On Tue, Mar 05, 2024 at 03:43:41PM +0100, Markus Armbruster wrote: > > > Peter Maydell writes: > > > > > > > On Mon, 4 Mar 2024 at 13:52, Maksim Davydov > > > > wrote: > > > > > The

Re: [PATCH 0/3] cxl: Fix issues with g_steal_pointer()

2024-03-07 Thread Michael Tokarev
04.03.2024 13:44, Thomas Huth wrote: When setting GLIB_VERSION_MAX_ALLOWED to GLIB_VERSION_2_58 or higher (which we'll certainly do in the not too distant future), glib adds type safety checks to the g_steal_pointer() macro. This triggers errors in the cxl code since the pointer types do not

Re: [PATCH v9 0/5] eBPF RSS through QMP support.

2024-03-07 Thread Jason Wang
On Mon, Feb 26, 2024 at 6:23 PM Andrew Melnichenko wrote: > > Hi all, > Jason, can you please review the patch set, thank you. Queued. Thanks

Re: Problem with migration/rdma

2024-03-07 Thread Zhijian Li (Fujitsu)
On 08/03/2024 14:55, Peter Xu wrote: > On Fri, Mar 08, 2024 at 07:27:59AM +0100, Yu Zhang wrote: >> Hello Zhijian and Peter, >> >> Thank you so much for testing and confirming it. >> I created a patch in the email format, unfortunately got an issue for >> setting up the >> "Application-specific

Re: [PATCH v4 16/25] vfio: Add Error** argument to .set_dirty_page_tracking() handler

2024-03-07 Thread Eric Auger
On 3/7/24 13:06, Cédric Le Goater wrote: > On 3/7/24 09:09, Eric Auger wrote: >> Hi Cédric, >> >> On 3/6/24 14:34, Cédric Le Goater wrote: >>> We will use the Error object to improve error reporting in the >>> .log_global*() handlers of VFIO. Add documentation while at it. >>> >>> Reviewed-by:

Re: [PATCH v4 24/25] vfio: Also trace event failures in vfio_save_complete_precopy()

2024-03-07 Thread Eric Auger
On 3/7/24 14:36, Cédric Le Goater wrote: > On 3/7/24 10:28, Eric Auger wrote: >> >> >> On 3/6/24 14:34, Cédric Le Goater wrote: >>> vfio_save_complete_precopy() currently returns before doing the trace >>> event. Change that. >>> >>> Signed-off-by: Cédric Le Goater >>> --- >>>  

Re: [PATCH v2 2/4] mirror: allow specifying working bitmap

2024-03-07 Thread Markus Armbruster
Fiona Ebner writes: > From: John Snow > > for the mirror job. The bitmap's granularity is used as the job's > granularity. > > The new @bitmap parameter is marked unstable in the QAPI and can > currently only be used for @sync=full mode. > > Clusters initially dirty in the bitmap as well as new

Re: [PATCH] input-linux: Add option to not grab a device upon guest startup

2024-03-07 Thread Justinien Bouron
> This last two lines doesn't make sense to me. Isn't the grab > toggling entirely in control of the QEMU process, regardless > of what state the guest is at ? Actually, you're right, they do not make sense. This issue of having the guest taking a while to start and the toggle keys not working,

[PATCH] configure: Fix error message when C compiler is not working

2024-03-07 Thread Thomas Huth
If you try to run the configure script on a system without a working C compiler, you get a very misleading error message: ERROR: Unrecognized host OS (uname -s reports 'Linux') We should rather tell the user that we were not able to use the C compiler instead, otherwise they will have a hard

Re: [PATCH v2] docs/acpi/bits: add some clarity and details while also improving formating

2024-03-07 Thread Michael Tokarev
08.03.2024 07:22, Ani Sinha : Update bios-bits docs to add more details on why a pre-OS environment for testing bioses is useful. Add author's FOSDEM talk link. Also improve the formating of the document while at it. CC: qemu-triv...@nongnu.org Signed-off-by: Ani Sinha Reviewed-by: Michael

RE: [PATCH 0/3] ui/gtk: introducing vc->visible

2024-03-07 Thread Kim, Dongwon
Hi Marc-André, > -Original Message- > From: Marc-André Lureau > Sent: Tuesday, March 5, 2024 4:18 AM > To: Kim, Dongwon ; P. Berrange, Daniel > > Cc: qemu-devel@nongnu.org > Subject: Re: [PATCH 0/3] ui/gtk: introducing vc->visible > > Hi Kim > > I am uncomfortable with the series in

Re: [PATCH v7 3/9] target/riscv: remove 'over' brconds from vector trans

2024-03-07 Thread LIU Zhiwei
Hi Daniel and Alistair, Hope it is not too late. I think there are two bugs in this patch. 1) The first is for instruction vfmv.s.f.  vfmv.s.f doesn't use helper function. If we remove the over check, it will set the first element of destination vector register, which is against the

Re: [PATCH v4 11/25] migration: Add Error** argument to .save_setup() handler

2024-03-07 Thread Peter Xu
On Thu, Mar 07, 2024 at 02:39:31PM +0300, Vladimir Sementsov-Ogievskiy wrote: > > I would be glad to have most of this series merged in QEMU 9.0. So, > > unless there is something major, I will keep that for followups. Unfortunately I found this series won't apply to master.. starting from

Re: [PATCH 0/3] ui/gtk: introducing vc->visible

2024-03-07 Thread Marc-André Lureau
Hi On Fri, Mar 8, 2024 at 4:59 AM Kim, Dongwon wrote: > > Hi Marc-André, > > > -Original Message- > > From: Marc-André Lureau > > Sent: Tuesday, March 5, 2024 4:18 AM > > To: Kim, Dongwon ; P. Berrange, Daniel > > > > Cc: qemu-devel@nongnu.org > > Subject: Re: [PATCH 0/3] ui/gtk:

Re: [PATCH] disas/riscv: Further correction to LUI disassembly

2024-03-07 Thread Richard Bagley
NACK We have established that the change is a workaround for a bug in the assembler. I withdraw the merge request. Thank you for this careful review. On Fri, Aug 11, 2023 at 4:55 AM Andrew Jones wrote: > On Fri, Aug 11, 2023 at 10:25:52AM +0200, Andrew Jones wrote: > > On Thu, Aug 10, 2023 at

RE: [PATCH v8 7/9] hw/i386/q35: Set virtio-iommu aw-bits default value to 39

2024-03-07 Thread Duan, Zhenzhong
>-Original Message- >From: Eric Auger >Subject: [PATCH v8 7/9] hw/i386/q35: Set virtio-iommu aw-bits default >value to 39 > >Currently the default input range can extend to 64 bits. On x86, >when the virtio-iommu protects vfio devices, the physical iommu >may support only 39 bits. Let's

Re: Problem with migration/rdma

2024-03-07 Thread Yu Zhang
Hello Zhijian and Peter, Thank you so much for testing and confirming it. I created a patch in the email format, unfortunately got an issue for setting up the "Application-specific Password" in Gmail. It seems that in my gmail account there is no option at all for selecting "mail" before creating

Re: Problem with migration/rdma

2024-03-07 Thread Peter Xu
On Fri, Mar 08, 2024 at 07:03:56AM +, Zhijian Li (Fujitsu) wrote: > > > On 08/03/2024 14:55, Peter Xu wrote: > > On Fri, Mar 08, 2024 at 07:27:59AM +0100, Yu Zhang wrote: > >> Hello Zhijian and Peter, > >> > >> Thank you so much for testing and confirming it. > >> I created a patch in the

Re: [PATCH v4 19/25] vfio: Use new Error** argument in vfio_save_setup()

2024-03-07 Thread Cédric Le Goater
On 3/7/24 10:04, Eric Auger wrote: Hi Cédric, On 3/6/24 14:34, Cédric Le Goater wrote: Add an Error** argument to vfio_migration_set_state() and adjust callers, including vfio_save_setup(). The error will be propagated up to qemu_savevm_state_setup() where the save_setup() handler is executed.

Re: [PATCH v4 24/25] vfio: Also trace event failures in vfio_save_complete_precopy()

2024-03-07 Thread Cédric Le Goater
On 3/7/24 10:28, Eric Auger wrote: On 3/6/24 14:34, Cédric Le Goater wrote: vfio_save_complete_precopy() currently returns before doing the trace event. Change that. Signed-off-by: Cédric Le Goater --- hw/vfio/migration.c | 3 --- 1 file changed, 3 deletions(-) diff --git

[PATCH v8 1/9] qdev: Add a granule_mode property

2024-03-07 Thread Eric Auger
Introduce a new enum type property allowing to set an IOMMU granule. Values are 4k, 8k, 16k, 64k and host. This latter indicates the vIOMMU granule will match the host page size. A subsequent patch will add such a property to the virtio-iommu device. Signed-off-by: Eric Auger Signed-off-by:

[PATCH v8 6/9] virtio-iommu: Add an option to define the input range width

2024-03-07 Thread Eric Auger
aw-bits is a new option that allows to set the bit width of the input address range. This value will be used as a default for the device config input_range.end. By default it is set to 64 bits which is the current value. Signed-off-by: Eric Auger Reviewed-by: Zhenzhong Duan Reviewed-by: Cédric

[PATCH v8 2/9] virtio-iommu: Add a granule property

2024-03-07 Thread Eric Auger
This allows to choose which granule will be used by default by the virtio-iommu. Current page size mask default is qemu_target_page_mask so this translates into a 4k granule on ARM and x86_64 where virtio-iommu is supported. Signed-off-by: Eric Auger Reviewed-by: Philippe Mathieu-Daudé

[PATCH v8 0/9] VIRTIO-IOMMU: Introduce aw-bits and granule options

2024-03-07 Thread Eric Auger
This is a respin of [1] [PATCH v5 0/4] VIRTIO-IOMMU: Introduce an aw-bits option (https://lore.kernel.org/all/20240215084315.863897-1-eric.au...@redhat.com/) which now also integrates [PATCH v6 0/3] VIRTIO-IOMMU: Set default granule to host page size

[PATCH v8 7/9] hw/i386/q35: Set virtio-iommu aw-bits default value to 39

2024-03-07 Thread Eric Auger
Currently the default input range can extend to 64 bits. On x86, when the virtio-iommu protects vfio devices, the physical iommu may support only 39 bits. Let's set the default to 39, as done for the intel-iommu. We use hw_compat_8_2 to handle the compatibility for machines before 9.0 which used

[PATCH v8 4/9] qemu-options.hx: Document the virtio-iommu-pci granule option

2024-03-07 Thread Eric Auger
We are missing an entry for the virtio-iommu-pci device. Add the information on which machine it is currently supported and document the new granule option. Signed-off-by: Eric Auger --- v7 -> v8 - precise x86_64 and ARM --- qemu-options.hx | 8 1 file changed, 8 insertions(+) diff

[PATCH v8 8/9] hw/arm/virt: Set virtio-iommu aw-bits default value to 48

2024-03-07 Thread Eric Auger
On ARM we set 48b as a default (matching SMMUv3 SMMU_IDR5.VAX == 0). hw_compat_8_2 is used to handle the compatibility for machine types before 9.0 (default was 64 bits). Signed-off-by: Eric Auger Reviewed-by: Zhenzhong Duan --- v6 -> v7 turn arm_virt_compat and arm_virt_compat_len static

[PATCH v8 3/9] virtio-iommu: Change the default granule to the host page size

2024-03-07 Thread Eric Auger
We used to set the default granule to 4KB but with VFIO assignment it makes more sense to use the actual host page size. Indeed when hotplugging a VFIO device protected by a virtio-iommu on a 64kB/64kB host/guest config, we current get a qemu crash: "vfio: DMA mapping failed, unable to continue"

[PATCH v2 2/4] mirror: allow specifying working bitmap

2024-03-07 Thread Fiona Ebner
From: John Snow for the mirror job. The bitmap's granularity is used as the job's granularity. The new @bitmap parameter is marked unstable in the QAPI and can currently only be used for @sync=full mode. Clusters initially dirty in the bitmap as well as new writes are copied to the target.

[PATCH v8 5/9] virtio-iommu: Trace domain range limits as unsigned int

2024-03-07 Thread Eric Auger
Use %u format to trace domain_range limits. Signed-off-by: Eric Auger Reviewed-by: Zhenzhong Duan Reviewed-by: Cédric Le Goater --- hw/virtio/trace-events | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/virtio/trace-events b/hw/virtio/trace-events index

[PATCH v2 0/4] mirror: allow specifying working bitmap

2024-03-07 Thread Fiona Ebner
Changes from RFC/v1 (discussion here [0]): * Add patch to split BackupSyncMode and MirrorSyncMode. * Drop bitmap-mode parameter and use passed-in bitmap as the working bitmap instead. Users can get the desired behaviors by using the block-dirty-bitmap-clear and block-dirty-bitmap-merge calls

[PATCH v8 9/9] qemu-options.hx: Document the virtio-iommu-pci aw-bits option

2024-03-07 Thread Eric Auger
Document the new aw-bits option. Signed-off-by: Eric Auger --- v7 -> v8: - remove "it defaults" - removed Cedric's R-b v4 -> v5 - tweek the aw-bits option description according to Cédric's suggestion --- qemu-options.hx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qemu-options.hx

Re: [PATCH v2 3/6] qdev-monitor: add option to report GenericError from find_device_state

2024-03-07 Thread Vladimir Sementsov-Ogievskiy
On 07.03.24 12:46, Markus Armbruster wrote: Vladimir Sementsov-Ogievskiy writes: Signed-off-by: Vladimir Sementsov-Ogievskiy --- system/qdev-monitor.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/system/qdev-monitor.c b/system/qdev-monitor.c index

Re: [PATCH v5 08/13] hw/cxl/cxl-mailbox-utils: Add mailbox commands to support add/release dynamic capacity response

2024-03-07 Thread Jonathan Cameron via
On Wed, 6 Mar 2024 13:39:50 -0800 fan wrote: > > > +} > > > +if (len2) { > > > +cxl_insert_extent_to_extent_list(extent_list, > > > dpa + len, > > > + len2, NULL, 0); > > >

Re: [PATCH v4 08/25] migration: Always report an error in ram_save_setup()

2024-03-07 Thread Fabiano Rosas
Cédric Le Goater writes: > This will prepare ground for future changes adding an Error** argument > to the save_setup() handler. We need to make sure that on failure, > ram_save_setup() sets a new error. > > Signed-off-by: Cédric Le Goater Reviewed-by: Fabiano Rosas

Re: [PATCH v5 09/13] hw/cxl/events: Add qmp interfaces to add/release dynamic capacity extents

2024-03-07 Thread Jonathan Cameron via
... > > > +list = records; > > > +extents = g_new0(CXLDCExtentRaw, num_extents); > > > +while (list) { > > > +CXLDCExtent *ent; > > > +bool skip_extent = false; > > > + > > > +offset = list->value->offset; > > > +len = list->value->len; > > > + > > > +

  1   2   3   4   >