[PATCH v4] hw/sensor: Add lsm303dlhc magnetometer device

2022-01-30 Thread Kevin Townsend
This commit adds emulation of the magnetometer on the LSM303DLHC. It allows the magnetometer's X, Y and Z outputs to be set via the mag-x, mag-y and mag-z properties, as well as the 12-bit temperature output via the temperature property. Sensor can be enabled with 'CONFIG_LSM303DLHC_MAG=y'. Signed

Re: [PULL 00/36] Migration 20220128 patches

2022-01-30 Thread Peter Maydell
On Fri, 28 Jan 2022 at 18:31, Juan Quintela wrote: > > The following changes since commit b367db48126d4ee14579af6cf5cdbffeb9496627: > > Merge remote-tracking branch 'remotes/aperard/tags/pull-xen-20220127' into > staging (2022-01-28 11:05:29 +) > > are available in the Git repository at: >

Re: [Qemu-devel] [PULL 10/10] hw/arm: versal: Add a virtual Xilinx Versal board

2022-01-30 Thread Edgar E. Iglesias
On Thu, Jan 27, 2022 at 2:10 PM Peter Maydell wrote: > On Fri, 2 Nov 2018 at 17:24, Peter Maydell > wrote: > > > > From: "Edgar E. Iglesias" > > > > Add a virtual Xilinx Versal board. > > > > This board is based on the Xilinx Versal SoC. The exact > > details of what peripherals are attached to

[PATCH v1 1/1] hw/arm: versal-virt: Always call arm_load_kernel()

2022-01-30 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Always call arm_load_kernel() regardless of kernel_filename being set. This is needed because arm_load_kernel() sets up reset for the CPUs. Fixes: 6f16da53ff (hw/arm: versal: Add a virtual Xilinx Versal board) Reported-by: Peter Maydell Signed-off-by: Edgar E. Iglesias

[PATCH v1 0/1] hw/arm: versal-virt: Always call arm_load_kernel()

2022-01-30 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" This should be applied on top of Peter Maydell's "arm: Fix handling of unrecognized functions in PSCI emulation" patch series. This fixes an issue reported by Peter Maydell. We should always call arm_load_kernel() regardless of kernel_filename being set. This is needed

[PATCH v2] target/i386: Add kvm_get_one_msr helper

2022-01-30 Thread Yang Weijiang
When try to get one msr from KVM, I found there's no such kind of existing interface while kvm_put_one_msr() is there. So here comes the patch. It'll remove redundant preparation code before finally call KVM_GET_MSRS IOCTL. No functional change intended. v2: Per Paolo's suggestion, move the help

Re: [PATCH 00/16] arm: Fix handling of unrecognized functions in PSCI emulation

2022-01-30 Thread Edgar E. Iglesias
On Thu, Jan 27, 2022 at 4:46 PM Peter Maydell wrote: > This series fixes our handling of PSCI calls where the function ID is > not recognized. These are supposed to return an error value, but > currently we instead emulate the SMC or HVC instruction to trap to the > guest at EL3 or EL2. Particula

Re: [PULL 0/4] NBD patches for 2022-01-28

2022-01-30 Thread Peter Maydell
On Fri, 28 Jan 2022 at 23:04, Eric Blake wrote: > > The following changes since commit 7a1043cef91739ff4b59812d30f1ed2850d3d34e: > > Merge remote-tracking branch 'remotes/bonzini-gitlab/tags/for-upstream' > into staging (2022-01-28 14:04:01 +) > > are available in the Git repository at: > >

[PATCH v2] target/ppc: Remove support for the PowerPC 602 CPU

2022-01-30 Thread Cédric Le Goater
The 602 was derived from the PowerPC 603, for the gaming market it seems. It was hardly used and no firmware supporting the CPU could be found. Drop support. Cc: Fabiano Rosas Cc: Víctor Colombo Signed-off-by: Cédric Le Goater --- v2: - Fixed PPC_602_SPEC compile issue (Victor) - Dropped

Re: [PATCH v2 0/8] target/ppc: powerpc_excp improvements [74xx] (5/n)

2022-01-30 Thread Cédric Le Goater
On 1/27/22 21:11, Fabiano Rosas wrote: Changes from v1: - Restored the 'sc 1' support to avoid breaking the pegasos2 machine. I tested this version in the G4 with the following OSes: - Linux 5.15 (5.16 seems to be broken, even with master) Have you tried pmac32 defconfig plus these configs

Re: build-oss-fuzz CI job often times out

2022-01-30 Thread Philippe Mathieu-Daudé via
Cc'ing Alex/Darren. On 29/1/22 14:34, Peter Maydell wrote: Hi; the build-oss-fuzz gitlab CI job seems to intermittently but quite commonly hit the 1 hour timeout mark and get killed. Examples from the last couple of days: https://gitlab.com/qemu-project/qemu/-/jobs/2030815488 https://gitlab.com

Re: [PATCH] qapi/block: Cosmetic change in BlockExportType schema

2022-01-30 Thread Philippe Mathieu-Daudé via
On 28/1/22 21:54, Eric Blake wrote: On Wed, Jan 19, 2022 at 01:14:39PM +0100, Philippe Mathieu-Daudé wrote: From: Philippe Mathieu-Daude From: Philippe Mathieu-Daudé The doubled From: looks odd here. I'll double-check that git doesn't mess up the actual commit once I apply the patch. I p

Re: should we have a Kconfig "device group" for I2C devices?

2022-01-30 Thread Philippe Mathieu-Daudé via
+Alex On 28/1/22 15:30, Paolo Bonzini wrote: On 1/28/22 15:17, Peter Maydell wrote: Hi; I've been looking into what is the right way to handle in Kconfig an i2c device which is intended for the user to specify on the command line with a -device option. (It's the lsm303dlhc magnetometer, current

Re: [PATCH] hw/ppc/vof: Add missing includes

2022-01-30 Thread Philippe Mathieu-Daudé via
Cc'ing qemu-trivial@ On 22/1/22 01:31, Philippe Mathieu-Daudé wrote: vof.h requires "qom/object.h" for DECLARE_CLASS_CHECKERS(), "exec/memory.h" for address_space_read/write(), "exec/address-spaces.h" for address_space_memory and more importantly "cpu.h" for target_ulong. vof.c doesn't need "ex

Re: [PATCH v3 1/7] target/riscv: refactor (anonymous struct) RISCVCPU.cfg into 'struct RISCVCPUConfig'

2022-01-30 Thread Richard Henderson
On 1/29/22 01:56, Philipp Tomsich wrote: +struct RISCVCPUConfig cfg; Coding style says use a typedef for the struct. Otherwise, Reviewed-by: Richard Henderson r~

Re: [PATCH v3 2/7] target/riscv: riscv_tr_init_disas_context: copy pointer-to-cfg into cfg_ptr

2022-01-30 Thread Richard Henderson
On 1/29/22 01:56, Philipp Tomsich wrote: As the number of extensions is growing, copying them individiually into the DisasContext will scale less and less... instead we populate a pointer to the RISCVCPUConfig structure in the DisasContext. This adds an extra indirection when checking for the av

Re: [PATCH v3 3/7] target/riscv: access configuration through cfg_ptr in DisasContext

2022-01-30 Thread Richard Henderson
On 1/29/22 01:56, Philipp Tomsich wrote: The implementation in trans_{rvi,rvv,rvzfh}.c.inc accesses the shallow copies (in DisasContext) of some of the elements available in the RISCVCPUConfig structure. This commit redirects accesses to use the cfg_ptr copied into DisasContext and removes the s

Re: [PATCH v3 4/7] target/riscv: access cfg structure through DisasContext

2022-01-30 Thread Richard Henderson
On 1/29/22 01:56, Philipp Tomsich wrote: The Zb[abcs] support code still uses the RISCV_CPU macros to access the configuration information (i.e., check whether an extension is available/enabled). Now that we provide this information directly from DisasContext, we can access this directly via the

Re: [PATCH v3 5/7] target/riscv: iterate over a table of decoders

2022-01-30 Thread Richard Henderson
On 1/29/22 01:56, Philipp Tomsich wrote: -if (!decode_insn16(ctx, opcode)) { -gen_exception_illegal(ctx); -} +if (decode_insn16(ctx, opcode)) +return; ... -if (!decode_insn32(ctx, opcode32)) { -gen_exception

Re: [PATCH v3 6/7] target/riscv: Add XVentanaCondOps custom extension

2022-01-30 Thread Richard Henderson
On 1/29/22 01:56, Philipp Tomsich wrote: This adds the decoder and translation for the XVentanaCondOps custom extension (vendor-defined by Ventana Micro Systems), which is documented athttps://github.com/ventanamicro/ventana-custom-extensions/releases/download/v1.0.0/ventana-custom-extensions-v1

Re: [PATCH v3 7/7] target/riscv: add a MAINTAINERS entry for XVentanaCondOps

2022-01-30 Thread Richard Henderson
On 1/29/22 01:56, Philipp Tomsich wrote: The XVentanaCondOps extension is supported by VRULL on behalf of the Ventana Micro. Add myself as a point-of-contact. Signed-off-by: Philipp Tomsich --- Reviewed-by: Richard Henderson r~

Re: [PATCH v3 35/40] bsd-user/signal.c: implement do_sigreturn

2022-01-30 Thread Richard Henderson
On 1/29/22 10:28, Warner Losh wrote: +static int reset_signal_mask(target_ucontext_t *ucontext) +{ +int i; +sigset_t blocked; +target_sigset_t target_set; +TaskState *ts = (TaskState *)thread_cpu->opaque; + +for (i = 0; i < TARGET_NSIG_WORDS; i++) +if (__get_user(targe

Re: [PATCH v3 36/40] bsd-user/signal.c: implement do_sigaction

2022-01-30 Thread Richard Henderson
On 1/29/22 10:28, Warner Losh wrote: +if (block_signals()) { +return -TARGET_ERESTART; +} + +k = &sigact_table[sig - 1]; +if (oact) { +oact->_sa_handler = tswapal(k->_sa_handler); +oact->sa_flags = tswap32(k->sa_flags); +oact->sa_mask = k->sa_mask;

Re: [PATCH 01/16] target/arm: make psci-conduit settable after realize

2022-01-30 Thread Richard Henderson
On 1/28/22 02:46, Peter Maydell wrote: We want to allow the psci-conduit property to be set after realize, because the parts of the code which are best placed to decide if it's OK to enable QEMU's builtin PSCI emulation (the board code and the arm_load_kernel() function are distant from the code

Re: [PATCH v3 36/40] bsd-user/signal.c: implement do_sigaction

2022-01-30 Thread Warner Losh
On Sun, Jan 30, 2022 at 2:19 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 1/29/22 10:28, Warner Losh wrote: > > +if (block_signals()) { > > +return -TARGET_ERESTART; > > +} > > + > > +k = &sigact_table[sig - 1]; > > +if (oact) { > > +oact->_sa_ha

Re: [PATCH 02/16] cpu.c: Make start-powered-off settable after realize

2022-01-30 Thread Richard Henderson
On 1/28/22 02:46, Peter Maydell wrote: The CPU object's start-powered-off property is currently only settable before the CPU object is realized. For arm machines this is awkward, because we would like to decide whether the CPU should be powered-off based on how we are booting the guest code, whi

Re: [PATCH 03/16] hw/arm/boot: Support setting psci-conduit based on guest EL

2022-01-30 Thread Richard Henderson
On 1/28/22 02:46, Peter Maydell wrote: Currently we expect board code to set the psci-conduit property on CPUs and ensure that secondary CPUs are created with the start-powered-off property set to false, if the board wishes to use QEMU's builtin PSCI emulation. This worked OK for the virt board

Re: [PATCH 1/3] malta: Move PCI interrupt handling from gt64xxx to piix4

2022-01-30 Thread Philippe Mathieu-Daudé via
On 12/1/22 22:36, Bernhard Beschow wrote: Handling PCI interrupts in piix4 increases cohesion and reduces differences between piix4 and piix3. Signed-off-by: Bernhard Beschow --- hw/isa/piix4.c | 58 +++ hw/mips/gt64xxx_pci.c | 62

Re: [PATCH 05/16] hw/arm: allwinner: Don't enable PSCI conduit when booting guest in EL3

2022-01-30 Thread Niek Linnenbank
Hi Peter, On Thu, Jan 27, 2022 at 4:46 PM Peter Maydell wrote: > Change the allwinner-h3 based board to use the new boot.c > functionality to allow us to enable psci-conduit only if the guest is > being booted in EL1 or EL2, so that if the user runs guest EL3 > firmware code our PSCI emulation

Re: [PATCH 2/3] pci: Always pass own DeviceState to pci_map_irq_fn's

2022-01-30 Thread Philippe Mathieu-Daudé via
On 12/1/22 22:36, Bernhard Beschow wrote: Passing own DeviceState rather than just the IRQs allows for resolving global variables. Signed-off-by: Bernhard Beschow --- hw/isa/piix4.c | 6 +++--- hw/pci-host/sh_pci.c| 6 +++--- hw/pci-host/versatile.c | 6 +++--- hw/ppc/ppc440_p

Re: [PATCH 3/3] isa/piix4: Resolve global variables

2022-01-30 Thread Philippe Mathieu-Daudé via
On 12/1/22 22:36, Bernhard Beschow wrote: Now that piix4_set_irq's opaque parameter references own PIIX4State, piix4_dev becomes redundant and pci_irq_levels can be moved into PIIX4State. Signed-off-by: Bernhard Beschow --- hw/isa/piix4.c| 22 +- include/h

Re: [PATCH v3 2/3] memory: Make memory_region_is_mapped() succeed when mapped via an alias

2022-01-30 Thread Niek Linnenbank
Hi David, While I realize my response is quite late, I wanted to report this error I found when running the acceptance tests for the orangepi-pc machine using avocado: ARMBIAN_ARTIFACTS_CACHED=yes AVOCADO_ALLOW_LARGE_STORAGE=yes avocado --show=app,console run -t machine:orangepi-pc tests/avocado/

Re: [PATCH 3/3] isa/piix4: Resolve global variables

2022-01-30 Thread Philippe Mathieu-Daudé via
On 14/1/22 14:36, Peter Maydell wrote: On Wed, 12 Jan 2022 at 22:02, Bernhard Beschow wrote: Now that piix4_set_irq's opaque parameter references own PIIX4State, piix4_dev becomes redundant and pci_irq_levels can be moved into PIIX4State. Signed-off-by: Bernhard Beschow --- hw/isa/piix4.c

[PATCH v1 0/6] hw/arm: zynqmp: Add CRF and APU control to support PSCI

2022-01-30 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" This adds the necessary modeling to support some of our firmware tests at EL3 implementing PSCI (TBM). These are the test-cases that were previously relying on QEMU's builtin PSCI emulation. I've only tested this on top of Peter's recent PSCI emulation fixes. Cheers, E

[PATCH v1 5/6] hw/misc: Add a model of the Xilinx ZynqMP APU Control

2022-01-30 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Add a model of the Xilinx ZynqMP APU Control. Signed-off-by: Edgar E. Iglesias --- include/hw/misc/xlnx-zynqmp-apu-ctrl.h | 91 + hw/misc/xlnx-zynqmp-apu-ctrl.c | 257 + hw/misc/meson.build| 1 + 3 files c

[PATCH v1 1/6] hw/arm/xlnx-zynqmp: Add unimplemented SERDES area

2022-01-30 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Add unimplemented SERDES area. Signed-off-by: Edgar E. Iglesias --- include/hw/arm/xlnx-zynqmp.h | 2 +- hw/arm/xlnx-zynqmp.c | 4 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/hw/arm/xlnx-zynqmp.h b/include/hw/arm/xlnx-zynqmp.h in

[PATCH v1 4/6] hw/arm/xlnx-zynqmp: Connect the ZynqMP CRF

2022-01-30 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Connect the ZynqMP CRF - Clock Reset FPD device. Signed-off-by: Edgar E. Iglesias --- include/hw/arm/xlnx-zynqmp.h | 2 ++ hw/arm/xlnx-zynqmp.c | 16 2 files changed, 18 insertions(+) diff --git a/include/hw/arm/xlnx-zynqmp.h b/include/hw/ar

[PATCH v1 2/6] target/arm: Make rvbar settable after realize

2022-01-30 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Make the rvbar property settable after realize. This is done in preparation to model the ZynqMP's runtime configurable rvbar. Signed-off-by: Edgar E. Iglesias --- target/arm/cpu.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/target/arm/cp

[PATCH v1 6/6] hw/arm/xlnx-zynqmp: Connect the ZynqMP APU Control

2022-01-30 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Connect the ZynqMP APU Control device. Signed-off-by: Edgar E. Iglesias --- include/hw/arm/xlnx-zynqmp.h | 4 +++- hw/arm/xlnx-zynqmp.c | 25 +++-- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/include/hw/arm/xlnx-zynqmp.

[PATCH v1 3/6] hw/misc: Add a model of the Xilinx ZynqMP CRF

2022-01-30 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Add a model of the Xilinx ZynqMP CRF. At the moment this is mostly a stub model. Signed-off-by: Edgar E. Iglesias --- include/hw/misc/xlnx-zynqmp-crf.h | 209 +++ hw/misc/xlnx-zynqmp-crf.c | 270 ++ hw/misc/meson

Re: [PATCH v3 2/3] memory: Make memory_region_is_mapped() succeed when mapped via an alias

2022-01-30 Thread Philippe Mathieu-Daudé via
Hi Niek! (+Mark FYI) On 30/1/22 23:50, Niek Linnenbank wrote: Hi David, While I realize my response is quite late, I wanted to report this error I found when running the acceptance tests for the orangepi-pc machine using avocado: Unfortunately I only run the full SD/MMC tests when I send a

Re: [PATCH v1 3/6] hw/misc: Add a model of the Xilinx ZynqMP CRF

2022-01-30 Thread Philippe Mathieu-Daudé via
On 31/1/22 00:12, Edgar E. Iglesias wrote: From: "Edgar E. Iglesias" Add a model of the Xilinx ZynqMP CRF. At the moment this is mostly a stub model. Signed-off-by: Edgar E. Iglesias --- include/hw/misc/xlnx-zynqmp-crf.h | 209 +++ hw/misc/xlnx-zynqmp-crf.c | 27

Re: [PATCH v1 5/6] hw/misc: Add a model of the Xilinx ZynqMP APU Control

2022-01-30 Thread Philippe Mathieu-Daudé via
On 31/1/22 00:12, Edgar E. Iglesias wrote: From: "Edgar E. Iglesias" Add a model of the Xilinx ZynqMP APU Control. Signed-off-by: Edgar E. Iglesias --- include/hw/misc/xlnx-zynqmp-apu-ctrl.h | 91 + hw/misc/xlnx-zynqmp-apu-ctrl.c | 257 + hw/misc/m

Re: [PATCH v1 4/6] hw/arm/xlnx-zynqmp: Connect the ZynqMP CRF

2022-01-30 Thread Philippe Mathieu-Daudé via
On 31/1/22 00:12, Edgar E. Iglesias wrote: From: "Edgar E. Iglesias" Connect the ZynqMP CRF - Clock Reset FPD device. Signed-off-by: Edgar E. Iglesias --- include/hw/arm/xlnx-zynqmp.h | 2 ++ hw/arm/xlnx-zynqmp.c | 16 2 files changed, 18 insertions(+) Reviewed

Re: [PATCH v1 6/6] hw/arm/xlnx-zynqmp: Connect the ZynqMP APU Control

2022-01-30 Thread Philippe Mathieu-Daudé via
On 31/1/22 00:12, Edgar E. Iglesias wrote: From: "Edgar E. Iglesias" Connect the ZynqMP APU Control device. Signed-off-by: Edgar E. Iglesias --- include/hw/arm/xlnx-zynqmp.h | 4 +++- hw/arm/xlnx-zynqmp.c | 25 +++-- 2 files changed, 26 insertions(+), 3 deleti

Re: [PATCH v1 1/6] hw/arm/xlnx-zynqmp: Add unimplemented SERDES area

2022-01-30 Thread Philippe Mathieu-Daudé via
On 31/1/22 00:12, Edgar E. Iglesias wrote: From: "Edgar E. Iglesias" Add unimplemented SERDES area. Signed-off-by: Edgar E. Iglesias --- include/hw/arm/xlnx-zynqmp.h | 2 +- hw/arm/xlnx-zynqmp.c | 4 2 files changed, 5 insertions(+), 1 deletion(-) Reviewed-by: Philippe Math

[PATCH v4 0/7] target/riscv: Add XVentanaCondOps and supporting infrastructure changes

2022-01-30 Thread Philipp Tomsich
In adding our first X-extension (i.e., vendor-defined) on RISC-V with XVentanaCondOps, we need to add a few instructure improvements to make it easier to add similar vendor-defined extensions in the future: - refactor access to the cfg->ext_* fields by making a pointer to the cfg structure (as

[PATCH v4 5/7] target/riscv: iterate over a table of decoders

2022-01-30 Thread Philipp Tomsich
To split up the decoder into multiple functions (both to support vendor-specific opcodes in separate files and to simplify maintenance of orthogonal extensions), this changes decode_op to iterate over a table of decoders predicated on guard functions. This commit only adds the new structure and th

[PATCH v4 2/7] target/riscv: riscv_tr_init_disas_context: copy pointer-to-cfg into cfg_ptr

2022-01-30 Thread Philipp Tomsich
As the number of extensions is growing, copying them individiually into the DisasContext will scale less and less... instead we populate a pointer to the RISCVCPUConfig structure in the DisasContext. This adds an extra indirection when checking for the availability of an extension (compared to cop

[PATCH v4 6/7] target/riscv: Add XVentanaCondOps custom extension

2022-01-30 Thread Philipp Tomsich
This adds the decoder and translation for the XVentanaCondOps custom extension (vendor-defined by Ventana Micro Systems), which is documented at https://github.com/ventanamicro/ventana-custom-extensions/releases/download/v1.0.0/ventana-custom-extensions-v1.0.0.pdf This commit then also adds a gua

[PATCH v4 4/7] target/riscv: access cfg structure through DisasContext

2022-01-30 Thread Philipp Tomsich
The Zb[abcs] support code still uses the RISCV_CPU macros to access the configuration information (i.e., check whether an extension is available/enabled). Now that we provide this information directly from DisasContext, we can access this directly via the cfg_ptr field. Signed-off-by: Philipp Tom

[PATCH v4 1/7] target/riscv: refactor (anonymous struct) RISCVCPU.cfg into 'struct RISCVCPUConfig'

2022-01-30 Thread Philipp Tomsich
Signed-off-by: Philipp Tomsich Suggested-by: Richard Henderson --- Changes in v4: - use a typedef into 'RISCVCPUConfig' (instead of the explicit 'struct RISCVCPUConfig') to comply with the coding standard (as suggested in Richard's review of v3) Changes in v3: - (new patch) refactor 'struc

[PATCH v4 3/7] target/riscv: access configuration through cfg_ptr in DisasContext

2022-01-30 Thread Philipp Tomsich
The implementation in trans_{rvi,rvv,rvzfh}.c.inc accesses the shallow copies (in DisasContext) of some of the elements available in the RISCVCPUConfig structure. This commit redirects accesses to use the cfg_ptr copied into DisasContext and removes the shallow copies. Signed-off-by: Philipp Toms

[PATCH v4 7/7] target/riscv: add a MAINTAINERS entry for XVentanaCondOps

2022-01-30 Thread Philipp Tomsich
The XVentanaCondOps extension is supported by VRULL on behalf of the Ventana Micro. Add myself as a point-of-contact. Signed-off-by: Philipp Tomsich Reviewed-by: Richard Henderson --- (no changes since v3) Changes in v3: - add a MAINTAINERS entry for XVentanaCondOps MAINTAINERS | 7 +++

[FAQ] how to build and play vhost-user-blk with qemu code

2022-01-30 Thread Gao, Wayne
Hello dear experts. I would like to try vhost-user-blk, may I know what is the guide for this? For now I do not know how to build and run it, and how to start one vhost target emulator? https://github.com/qemu/qemu/tree/master/contrib/vhost-user-blk

Re: [PATCH 3/4] acpi: fix OEM ID/OEM Table ID padding

2022-01-30 Thread Ani Sinha
On Wed, Jan 12, 2022 at 6:33 PM Igor Mammedov wrote: > > Commit [2] broke original '\0' padding of OEM ID and OEM Table ID > fields in headers of ACPI tables. While it doesn't have impact on > default values since QEMU uses 6 and 8 characters long values > respectively, it broke usecase where IDs

Re: [RFC 1/5] target/riscv: Add the privileged spec version 1.12.0

2022-01-30 Thread Alistair Francis
On Sat, Jan 29, 2022 at 10:57 AM Atish Kumar Patra wrote: > > > > On Sun, Jan 23, 2022 at 11:59 PM Richard Henderson > wrote: >> >> On 1/21/22 7:07 AM, Atish Patra wrote: >> > Add the definition for ratified privileged specification version v1.12 >> > >> > Signed-off-by: Atish Patra >> > --- >>

Re: [PATCH 04/16] hw/arm: imx: Don't enable PSCI conduit when booting guest in EL3

2022-01-30 Thread Richard Henderson
On 1/28/22 02:46, Peter Maydell wrote: Change the iMX-SoC based boards to use the new boot.c functionality to allow us to enable psci-conduit only if the guest is being booted in EL1 or EL2, so that if the user runs guest EL3 firmware code our PSCI emulation doesn't get in its way. To do this we

Re: [PATCH 06/16] hw/arm/xlnx-zcu102: Don't enable PSCI conduit when booting guest in EL3

2022-01-30 Thread Richard Henderson
On 1/28/22 02:46, Peter Maydell wrote: Change the Xilinx ZynqMP-based board xlnx-zcu102 to use the new boot.c functionality to allow us to enable psci-conduit only if the guest is being booted in EL1 or EL2, so that if the user runs guest EL3 firmware code our PSCI emulation doesn't get in its wa

Re: [PATCH 08/16] hw/arm/virt: Let boot.c handle PSCI enablement

2022-01-30 Thread Richard Henderson
On 1/28/22 02:46, Peter Maydell wrote: Instead of setting the CPU psci-conduit and start-powered-off properties in the virt board code, set the arm_boot_info psci_conduit field so that the boot.c code can do it. This will fix a corner case where we were incorrectly enabling PSCI emulation when b

Re: [PATCH 09/16] hw/arm: highbank: For EL3 guests, don't enable PSCI, start all cores

2022-01-30 Thread Richard Henderson
On 1/28/22 02:46, Peter Maydell wrote: Change the highbank/midway boards to use the new boot.c functionality to allow us to enable psci-conduit only if the guest is being booted in EL1 or EL2, so that if the user runs guest EL3 firmware code our PSCI emulation doesn't get in its way. To do this

Re: [PATCH 07/16] hw/arm/versal: Let boot.c handle PSCI enablement

2022-01-30 Thread Richard Henderson
On 1/28/22 02:46, Peter Maydell wrote: Instead of setting the CPU psci-conduit and start-powered-off properties in the xlnx-versal-virt board code, set the arm_boot_info psci_conduit field so that the boot.c code can do it. This will fix a corner case where we were incorrectly enabling PSCI emul

Re: [PATCH v6 0/7] tests: Refresh lcitool submodule & remove libxml2

2022-01-30 Thread Alessandro Di Federico via
On Tue, 25 Jan 2022 11:59:38 +0100 Philippe Mathieu-Daudé via wrote: > I'm seeing the same issue with these domains since mid december: > > ... > - rev.ng > > ... > https://lore.kernel.org/qemu-devel/20220105185720.0d4fc159@orange/ > ... I've tried to look into this and it looks like our set u

Re: [PATCH] tests/9pfs: Use g_autofree and g_autoptr where possible

2022-01-30 Thread Greg Kurz
On Sat, 29 Jan 2022 13:33:59 +0100 Christian Schoenebeck wrote: > On Freitag, 28. Januar 2022 12:49:58 CET Christian Schoenebeck wrote: > > On Mittwoch, 26. Januar 2022 18:11:36 CET Greg Kurz wrote: > > > The template pointer in virtio_9p_create_local_test_dir() is leaked. > > > Add the g_autofre

Re: [PATCH 10/16] Revert "Revert "arm: tcg: Adhere to SMCCC 1.3 section 5.2""

2022-01-30 Thread Richard Henderson
On 1/28/22 02:46, Peter Maydell wrote: Now that we have arranged for all the affected board models to not enable the PSCI emulation if they are running guest code at EL3, we can revert commit 4825eaae4fdd56fba0f, thus reinstating commit 9fcd15b9193e819b, without bringing back the regressions that

Re: build-oss-fuzz CI job often times out

2022-01-30 Thread Thomas Huth
On 29/1/22 14:34, Peter Maydell wrote: Hi; the build-oss-fuzz gitlab CI job seems to intermittently but quite commonly hit the 1 hour timeout mark and get killed. Examples from the last couple of days: https://gitlab.com/qemu-project/qemu/-/jobs/2030815488 https://gitlab.com/qemu-project/qemu/-/

Re: [PATCH] hw/ppc/vof: Add missing includes

2022-01-30 Thread Cédric Le Goater
On 1/30/22 20:38, Philippe Mathieu-Daudé wrote: Cc'ing qemu-trivial@ It is queued in ppc-7.0. I should send a PR today or tomorrow. Thanks, C. On 22/1/22 01:31, Philippe Mathieu-Daudé wrote: vof.h requires "qom/object.h" for DECLARE_CLASS_CHECKERS(), "exec/memory.h" for address_space_read