Re: [PATCH-for-8.2?] hw/acpi/erst: Do not ignore Error* in realize handler

2023-11-21 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > erst_realizefn() calls functions which could update the 'errp' > argument, but then ignores it. To be precise: it ignores failure. Suggest to clarify the commit message like this: erst_realizefn() passes @errp to functions without checking for failure. If

Re: [PATCH] system: Use &error_abort in memory_region_init_ram_[device_]ptr()

2023-11-21 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > If an unexpected error condition happens, we have to abort > (&fatal_error is meant for expected errors). > > Suggested-by: Paolo Bonzini > Suggested-by: Markus Armbruster > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Markus Armbruster

Re: [PATCH v6 01/21] backends/iommufd: Introduce the iommufd object

2023-11-21 Thread Cédric Le Goater
Hello Zhenzhong, Below are other gaps I can think of for now: Gaps: 1. dirty page sync, WIP (Joao) 2. p2p dma not supported yet. 3. fd passing with mdev not support ram discard(vfio-pci) as no way to know it's a mdev from a fd. Call the section Caveats maybe? Got it. It looks like v7 shou

[PATCH] tests/qtest: check the return value

2023-11-21 Thread Zhu Jun
These variables "ret" are never referenced in the code, thus add check logic for the "ret" Signed-off-by: Zhu Jun --- tests/qtest/test-filter-mirror.c | 1 + tests/qtest/test-filter-redirector.c | 2 ++ tests/qtest/virtio-net-test.c| 1 + 3 files changed, 4 insertions(+) diff --git

Re: [PATCH-for-8.2?] hw/arm/fsl-imx: Do not ignore Error argument

2023-11-21 Thread Philippe Mathieu-Daudé
Hi Markus, On 21/11/23 07:40, Markus Armbruster wrote: Peter Maydell writes: On Mon, 20 Nov 2023 at 11:51, Philippe Mathieu-Daudé wrote: Both i.MX25 and i.MX6 SoC models ignore the Error argument when setting the PHY number. Pick &error_abort which is the error used by the i.MX7 SoC (see c

Re: [PATCH] tests/qtest: check the return value

2023-11-21 Thread Thomas Huth
On 21/11/2023 09.08, Zhu Jun wrote: These variables "ret" are never referenced in the code, thus add check logic for the "ret" Signed-off-by: Zhu Jun Thanks! Reviewed-by: Thomas Huth I'll queue it for my next pull request.

[PULL SUBSYSTEM qemu-pseries] pseries: Update SLOF firmware image

2023-11-21 Thread Alexey Kardashevskiy
The following changes since commit af9264da80073435fd78944bc5a46e695897d7e5: Merge tag '20231119-xtensa-1' of https://github.com/OSLL/qemu-xtensa into staging (2023-11-20 05:25:19 -0500) are available in the Git repository at: g...@github.com:aik/qemu.git tags/qemu-slof-2023112

Re: [PATCH v10 08/18] target/riscv: add rva22u64 profile definition

2023-11-21 Thread Daniel Henrique Barboza
On 11/21/23 05:13, Jerry Shih wrote: On Nov 3, 2023, at 21:46, Daniel Henrique Barboza wrote: +/* + * RVA22U64 defines some 'named features' or 'synthetic extensions' + * that are cache related: Za64rs, Zic64b, Ziccif, Ziccrse, Ziccamoa + * and Zicclsm. We do not implement caching in QEMU

RE: [PATCH v6 01/21] backends/iommufd: Introduce the iommufd object

2023-11-21 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, November 21, 2023 4:06 PM >Subject: Re: [PATCH v6 01/21] backends/iommufd: Introduce the iommufd object > >Hello Zhenzhong, > Below are other gaps I can think of for now: Gaps: 1. dirty page sync, WIP (Joao)

[PATCH v7 03/27] vfio/common: return early if space isn't empty

2023-11-21 Thread Zhenzhong Duan
This is a trivial optimization. If there is active container in space, vfio_reset_handler will never be unregistered. So revert the check of space->containers and return early. Signed-off-by: Zhenzhong Duan Reviewed-by: Cédric Le Goater Reviewed-by: Eric Auger Tested-by: Eric Auger --- hw/vfi

[PATCH v7 08/27] vfio/pci: Introduce a vfio pci hot reset interface

2023-11-21 Thread Zhenzhong Duan
Legacy vfio pci and iommufd cdev have different process to hot reset vfio device, expand current code to abstract out pci_hot_reset callback for legacy vfio, this same interface will also be used by iommufd cdev vfio device. Rename vfio_pci_hot_reset to vfio_legacy_pci_hot_reset and move it into c

[PATCH v7 09/27] vfio/iommufd: Enable pci hot reset through iommufd cdev interface

2023-11-21 Thread Zhenzhong Duan
Implement the newly introduced pci_hot_reset callback named iommufd_cdev_pci_hot_reset to do iommufd specific check and reset operation. Signed-off-by: Zhenzhong Duan Reviewed-by: Eric Auger Tested-by: Eric Auger --- hw/vfio/iommufd.c| 150 +++ hw/vf

[PATCH v7 00/27] vfio: Adopt iommufd

2023-11-21 Thread Zhenzhong Duan
Hi, Thanks all for giving guides and comments on previous series, this is the remaining part of the iommufd support. Besides suggested changes in v6, I'd like to highlight two changes for final review: 1. Instantiate can_be_deleted callback to fix race where iommufd object can be deleted befor

[PATCH v7 15/27] vfio/ap: Make vfio cdev pre-openable by passing a file handle

2023-11-21 Thread Zhenzhong Duan
This gives management tools like libvirt a chance to open the vfio cdev with privilege and pass FD to qemu. This way qemu never needs to have privilege to open a VFIO or iommu cdev node. Signed-off-by: Zhenzhong Duan Reviewed-by: Matthew Rosato Reviewed-by: Cédric Le Goater --- hw/vfio/ap.c |

[PATCH v7 10/27] vfio/pci: Allow the selection of a given iommu backend

2023-11-21 Thread Zhenzhong Duan
From: Eric Auger Now we support two types of iommu backends, let's add the capability to select one of them. This depends on whether an iommufd object has been linked with the vfio-pci device: If the user wants to use the legacy backend, it shall not link the vfio-pci device with any iommufd obj

[PATCH v7 13/27] vfio/platform: Make vfio cdev pre-openable by passing a file handle

2023-11-21 Thread Zhenzhong Duan
This gives management tools like libvirt a chance to open the vfio cdev with privilege and pass FD to qemu. This way qemu never needs to have privilege to open a VFIO or iommu cdev node. Signed-off-by: Zhenzhong Duan Reviewed-by: Cédric Le Goater --- hw/vfio/platform.c | 32

[PATCH v7 05/27] vfio/iommufd: Relax assert check for iommufd backend

2023-11-21 Thread Zhenzhong Duan
Currently iommufd doesn't support dirty page sync yet, but it will not block us doing live migration if VFIO migration is force enabled. So in this case we allow set_dirty_page_tracking to be NULL. Note we don't need same change for query_dirty_bitmap because when dirty page sync isn't supported,

[PATCH v7 07/27] vfio/pci: Extract out a helper vfio_pci_get_pci_hot_reset_info

2023-11-21 Thread Zhenzhong Duan
This helper will be used by both legacy and iommufd backends. No functional changes intended. Signed-off-by: Zhenzhong Duan Reviewed-by: Cédric Le Goater Reviewed-by: Eric Auger Tested-by: Eric Auger --- hw/vfio/pci.h | 3 +++ hw/vfio/pci.c | 54 +++--

[PATCH v7 24/27] vfio/ap: Move VFIODevice initializations in vfio_ap_instance_init

2023-11-21 Thread Zhenzhong Duan
Some of the VFIODevice initializations is in vfio_ap_realize, move all of them in vfio_ap_instance_init. No functional change intended. Suggested-by: Cédric Le Goater Signed-off-by: Zhenzhong Duan Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Eric Farman --- hw/vfio/ap.c | 26

[PATCH v7 12/27] vfio/platform: Allow the selection of a given iommu backend

2023-11-21 Thread Zhenzhong Duan
Now we support two types of iommu backends, let's add the capability to select one of them. This depends on whether an iommufd object has been linked with the vfio-platform device: If the user wants to use the legacy backend, it shall not link the vfio-platform device with any iommufd object: -d

[PATCH v7 20/27] kconfig: Activate IOMMUFD for s390x machines

2023-11-21 Thread Zhenzhong Duan
From: Cédric Le Goater Signed-off-by: Cédric Le Goater Signed-off-by: Zhenzhong Duan Reviewed-by: Matthew Rosato Reviewed-by: Eric Farman --- hw/s390x/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/s390x/Kconfig b/hw/s390x/Kconfig index 4c068d7960..26ad104485 100644 --- a/hw/

[PATCH v7 11/27] vfio/pci: Make vfio cdev pre-openable by passing a file handle

2023-11-21 Thread Zhenzhong Duan
This gives management tools like libvirt a chance to open the vfio cdev with privilege and pass FD to qemu. This way qemu never needs to have privilege to open a VFIO or iommu cdev node. Together with the earlier support of pre-opening /dev/iommu device, now we have full support of passing a vfio

[PATCH v7 19/27] hw/arm: Activate IOMMUFD for virt machines

2023-11-21 Thread Zhenzhong Duan
From: Cédric Le Goater Signed-off-by: Cédric Le Goater Signed-off-by: Zhenzhong Duan Reviewed-by: Eric Auger Tested-by: Eric Auger --- hw/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 3ada335a24..660f49db49 100644 --- a/hw/arm/Kconfig +

[PATCH v7 26/27] vfio: Introduce a helper function to initialize VFIODevice

2023-11-21 Thread Zhenzhong Duan
Introduce a helper function to replace the common code to initialize VFIODevice in pci, platform, ap and ccw VFIO device. No functional change intended. Suggested-by: Cédric Le Goater Signed-off-by: Zhenzhong Duan --- include/hw/vfio/vfio-common.h | 2 ++ hw/vfio/ap.c | 8 ++

[PATCH v7 27/27] docs/devel: Add VFIO iommufd backend documentation

2023-11-21 Thread Zhenzhong Duan
Suggested-by: Cédric Le Goater Signed-off-by: Eric Auger Signed-off-by: Yi Liu Signed-off-by: Zhenzhong Duan --- MAINTAINERS| 1 + docs/devel/index-internals.rst | 1 + docs/devel/vfio-iommufd.rst| 166 + 3 files changed, 168 insertio

[PATCH v7 21/27] hw/i386: Activate IOMMUFD for q35 machines

2023-11-21 Thread Zhenzhong Duan
From: Cédric Le Goater Signed-off-by: Cédric Le Goater Signed-off-by: Zhenzhong Duan Reviewed-by: Eric Auger --- hw/i386/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/i386/Kconfig b/hw/i386/Kconfig index 55850791df..a1846be6f7 100644 --- a/hw/i386/Kconfig +++ b/hw/i386/Kconfi

[PATCH v7 14/27] vfio/ap: Allow the selection of a given iommu backend

2023-11-21 Thread Zhenzhong Duan
Now we support two types of iommu backends, let's add the capability to select one of them. This depends on whether an iommufd object has been linked with the vfio-ap device: if the user wants to use the legacy backend, it shall not link the vfio-ap device with any iommufd object: -device vfio-a

[PATCH v7 17/27] vfio/ccw: Make vfio cdev pre-openable by passing a file handle

2023-11-21 Thread Zhenzhong Duan
This gives management tools like libvirt a chance to open the vfio cdev with privilege and pass FD to qemu. This way qemu never needs to have privilege to open a VFIO or iommu cdev node. Signed-off-by: Zhenzhong Duan Reviewed-by: Matthew Rosato Reviewed-by: Cédric Le Goater Reviewed-by: Eric Fa

[PATCH v7 04/27] vfio/iommufd: Implement the iommufd backend

2023-11-21 Thread Zhenzhong Duan
From: Yi Liu The iommufd backend is implemented based on the new /dev/iommu user API. This backend obviously depends on CONFIG_IOMMUFD. So far, the iommufd backend doesn't support dirty page sync yet. Co-authored-by: Eric Auger Signed-off-by: Yi Liu Signed-off-by: Zhenzhong Duan Reviewed-by:

[PATCH v7 16/27] vfio/ccw: Allow the selection of a given iommu backend

2023-11-21 Thread Zhenzhong Duan
Now we support two types of iommu backends, let's add the capability to select one of them. This depends on whether an iommufd object has been linked with the vfio-ccw device: If the user wants to use the legacy backend, it shall not link the vfio-ccw device with any iommufd object: -device vfio

[PATCH v7 06/27] vfio/iommufd: Add support for iova_ranges and pgsizes

2023-11-21 Thread Zhenzhong Duan
Some vIOMMU such as virtio-iommu use IOVA ranges from host side to setup reserved ranges for passthrough device, so that guest will not use an IOVA range beyond host support. Use an uAPI of IOMMUFD to get IOVA ranges of host side and pass to vIOMMU just like the legacy backend, if this fails, fall

[PATCH v7 01/27] backends/iommufd: Introduce the iommufd object

2023-11-21 Thread Zhenzhong Duan
From: Eric Auger Introduce an iommufd object which allows the interaction with the host /dev/iommu device. The /dev/iommu can have been already pre-opened outside of qemu, in which case the fd can be passed directly along with the iommufd object: This allows the iommufd object to be shared accr

[PATCH v7 25/27] vfio/ccw: Move VFIODevice initializations in vfio_ccw_instance_init

2023-11-21 Thread Zhenzhong Duan
Some of the VFIODevice initializations is in vfio_ccw_realize, move all of them in vfio_ccw_instance_init. No functional change intended. Suggested-by: Cédric Le Goater Signed-off-by: Zhenzhong Duan Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Eric Farman --- hw/vfio/ccw.c | 30 +

[PATCH v7 23/27] vfio/platform: Move VFIODevice initializations in vfio_platform_instance_init

2023-11-21 Thread Zhenzhong Duan
Some of the VFIODevice initializations is in vfio_platform_realize, move all of them in vfio_platform_instance_init. No functional change intended. Suggested-by: Cédric Le Goater Signed-off-by: Zhenzhong Duan Reviewed-by: Philippe Mathieu-Daudé --- hw/vfio/platform.c | 10 +- 1 file c

[PATCH v7 02/27] util/char_dev: Add open_cdev()

2023-11-21 Thread Zhenzhong Duan
From: Yi Liu /dev/vfio/devices/vfioX may not exist. In that case it is still possible to open /dev/char/$major:$minor instead. Add helper function to abstract the cdev open. Suggested-by: Jason Gunthorpe Signed-off-by: Yi Liu Signed-off-by: Zhenzhong Duan Reviewed-by: Cédric Le Goater Review

[PATCH v7 18/27] vfio: Make VFIOContainerBase poiner parameter const in VFIOIOMMUOps callbacks

2023-11-21 Thread Zhenzhong Duan
Some of the callbacks in VFIOIOMMUOps pass VFIOContainerBase poiner, those callbacks only need read access to the sub object of VFIOContainerBase. So make VFIOContainerBase, VFIOContainer and VFIOIOMMUFDContainer as const in these callbacks. Local functions called by those callbacks also need same

[PATCH v7 22/27] vfio/pci: Move VFIODevice initializations in vfio_instance_init

2023-11-21 Thread Zhenzhong Duan
Some of the VFIODevice initializations is in vfio_realize, move all of them in vfio_instance_init. No functional change intended. Suggested-by: Cédric Le Goater Signed-off-by: Zhenzhong Duan Reviewed-by: Philippe Mathieu-Daudé --- hw/vfio/pci.c | 10 ++ 1 file changed, 6 insertions(+)

[PULL 1/4] ppc/pnv: Fix potential overflow in I2C model

2023-11-21 Thread Cédric Le Goater
Coverity warns that "i2c_bus_busy(i2c->busses[i]) << i" might overflow because the expression is evaluated using 32-bit arithmetic and then used in a context expecting a uint64_t. While we are at it, introduce a PNV_I2C_MAX_BUSSES constant and check the number of busses at realize time. Fixes: Co

[PULL 0/4] ppc queue

2023-11-21 Thread Cédric Le Goater
The following changes since commit af9264da80073435fd78944bc5a46e695897d7e5: Merge tag '20231119-xtensa-1' of https://github.com/OSLL/qemu-xtensa into staging (2023-11-20 05:25:19 -0500) are available in the Git repository at: https://github.com/legoater/qemu/ tags/pull-ppc-202

[PULL 2/4] target/ppc: Fix bugs in VSX_CVT_FP_TO_INT and VSX_CVT_FP_TO_INT2 macros

2023-11-21 Thread Cédric Le Goater
From: John Platts The patch below fixes a bug in the VSX_CVT_FP_TO_INT and VSX_CVT_FP_TO_INT2 macros in target/ppc/fpu_helper.c where a non-NaN floating point value from the source vector is incorrectly converted to 0, 0x8000, or 0x8000 instead of the expected value if a preceding

[PULL 4/4] ppc/pnv: Fix PNV I2C invalid status after reset

2023-11-21 Thread Cédric Le Goater
From: Glenn Miles The PNV I2C Controller was clearing the status register after a reset without repopulating the "upper threshold for I2C ports", "Command Complete" and the SCL/SDA input level fields. Fixed this for resets caused by a system reset as well as from writing to the "Immediate Reset"

[PULL 3/4] ppc/pnv: PNV I2C engines assigned incorrect XSCOM addresses

2023-11-21 Thread Cédric Le Goater
From: Glenn Miles The PNV I2C engines for power9 and power10 were being assigned a base XSCOM address that was off by one I2C engine's address range such that engine 0 had engine 1's address and so on. The xscom address assignment was being based on the device tree engine numbering, which starts

Re: [PATCH 3/3] tests/avocado: Enable reverse_debugging.py tests in gitlab CI

2023-11-21 Thread Thomas Huth
On 17/11/2023 08.35, Nicholas Piggin wrote: On Fri Nov 17, 2023 at 4:11 AM AEST, Thomas Huth wrote: On 16/11/2023 12.53, Nicholas Piggin wrote: Let's try enable reverse_debugging.py in gitlab CI. Signed-off-by: Nicholas Piggin --- Maybe we could try this again at some point? The bug might hav

Re: [PATCH V7 8/8] docs/specs/acpi_hw_reduced_hotplug: Add the CPU Hotplug Event Bit

2023-11-21 Thread Shaoqin Huang
On 11/14/23 04:12, Salil Mehta via wrote: GED interface is used by many hotplug events like memory hotplug, NVDIMM hotplug and non-hotplug events like system power down event. Each of these can be selected using a bit in the 32 bit GED IO interface. A bit has been reserved for the CPU hotplug

Re: [PATCH v3 0/4] ide: implement simple legacy/native mode switching for PCI IDE controllers

2023-11-21 Thread Kevin Wolf
Am 20.11.2023 um 16:02 hat BALATON Zoltan geschrieben: > On Mon, 20 Nov 2023, Mark Cave-Ayland wrote: > > On 20/11/2023 13:42, Kevin Wolf wrote: > > > Am 20.11.2023 um 14:09 hat BALATON Zoltan geschrieben: > > > > On Mon, 20 Nov 2023, Mark Cave-Ayland wrote: > > > > > On 19/11/2023 21:43, BALATON Z

Re: [PATCH 3/3] tests/avocado: Enable reverse_debugging.py tests in gitlab CI

2023-11-21 Thread Daniel P . Berrangé
On Tue, Nov 21, 2023 at 09:56:24AM +0100, Thomas Huth wrote: > On 17/11/2023 08.35, Nicholas Piggin wrote: > > On Fri Nov 17, 2023 at 4:11 AM AEST, Thomas Huth wrote: > > > On 16/11/2023 12.53, Nicholas Piggin wrote: > > > > Let's try enable reverse_debugging.py in gitlab CI. > > > > > > > > Signe

Re: [PATCH-for-8.2?] hw/arm/fsl-imx: Do not ignore Error argument

2023-11-21 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > Both i.MX25 and i.MX6 SoC models ignore the Error argument when > setting the PHY number. Pick &error_abort which is the error > used by the i.MX7 SoC (see commit 1f7197deb0 "ability to change > the FEC PHY on i.MX7 processor"). > > Fixes: 74c1330582 ("ability to

Re: [PATCH for-8.2 2/3] ui: use "vc" chardev for dbus, gtk & spice-app

2023-11-21 Thread Thomas Huth
On 17/11/2023 15.35, marcandre.lur...@redhat.com wrote: From: Marc-André Lureau Those display have their own implementation of "vc" chardev, which doesn't use pixman. They also don't implement the width/height/cols/rows options, so qemu_display_get_vc() should return a compatible argument. Thi

Re: [PATCH for-8.2 3/3] ui/console: fix default VC when there are no display

2023-11-21 Thread Thomas Huth
On 17/11/2023 15.35, marcandre.lur...@redhat.com wrote: From: Marc-André Lureau When display is "none", we may still have remote displays (I think it would be simpler if VNC/Spice were regular display btw). Return the default VC then, and set them up to fix a regression when using remote displa

[PATCH for-8.2] ui/pixman-minimal.h: fix empty allocation

2023-11-21 Thread Manos Pitsidianakis
In the minimal pixman API stub that is used when the real pixman dependency is missing a NULL dereference happens when virtio-gpu-rutabaga allocates a pixman image with bits = NULL and rowstride_bytes = zero. A buffer of rowstride_bytes * height is allocated which is NULL. However, in that scenario

Re: [PATCH 2/3] chardev: report blocked write to chardev backend

2023-11-21 Thread Marc-André Lureau
Hi On Mon, Nov 20, 2023 at 5:36 PM Nicholas Piggin wrote: > > On Mon Nov 20, 2023 at 10:06 PM AEST, Marc-André Lureau wrote: > > Hi > > > > On Thu, Nov 16, 2023 at 3:54 PM Nicholas Piggin wrote: > > > > > > If a chardev socket is not read, it will eventually fill and QEMU > > > can block attempt

Re: [PATCH 3/3] tests/avocado: Enable reverse_debugging.py tests in gitlab CI

2023-11-21 Thread Thomas Huth
On 21/11/2023 10.14, Daniel P. Berrangé wrote: On Tue, Nov 21, 2023 at 09:56:24AM +0100, Thomas Huth wrote: On 17/11/2023 08.35, Nicholas Piggin wrote: On Fri Nov 17, 2023 at 4:11 AM AEST, Thomas Huth wrote: On 16/11/2023 12.53, Nicholas Piggin wrote: Let's try enable reverse_debugging.py in

Re: [PATCH 2/3] chardev: report blocked write to chardev backend

2023-11-21 Thread Daniel P . Berrangé
On Tue, Nov 21, 2023 at 01:39:03PM +0400, Marc-André Lureau wrote: > Hi > > On Mon, Nov 20, 2023 at 5:36 PM Nicholas Piggin wrote: > > > > On Mon Nov 20, 2023 at 10:06 PM AEST, Marc-André Lureau wrote: > > > Hi > > > > > > On Thu, Nov 16, 2023 at 3:54 PM Nicholas Piggin wrote: > > > > > > > > If

Re: [PATCH 2/3] chardev: report blocked write to chardev backend

2023-11-21 Thread Thomas Huth
On 21/11/2023 10.39, Marc-André Lureau wrote: Hi On Mon, Nov 20, 2023 at 5:36 PM Nicholas Piggin wrote: On Mon Nov 20, 2023 at 10:06 PM AEST, Marc-André Lureau wrote: Hi On Thu, Nov 16, 2023 at 3:54 PM Nicholas Piggin wrote: If a chardev socket is not read, it will eventually fill and QE

Re: [PATCH v3 0/4] ide: implement simple legacy/native mode switching for PCI IDE controllers

2023-11-21 Thread Kevin Wolf
Am 20.11.2023 um 16:11 hat BALATON Zoltan geschrieben: > On Mon, 20 Nov 2023, Kevin Wolf wrote: > > Am 20.11.2023 um 14:47 hat BALATON Zoltan geschrieben: > > > On Mon, 20 Nov 2023, Kevin Wolf wrote: > > > > Am 20.11.2023 um 14:09 hat BALATON Zoltan geschrieben: > > > > > On Mon, 20 Nov 2023, Mark

Re: [PATCH for-8.2] ui/pixman-minimal.h: fix empty allocation

2023-11-21 Thread Marc-André Lureau
Hi Manos On Tue, Nov 21, 2023 at 1:38 PM Manos Pitsidianakis wrote: > > In the minimal pixman API stub that is used when the real pixman > dependency is missing a NULL dereference happens when > virtio-gpu-rutabaga allocates a pixman image with bits = NULL and > rowstride_bytes = zero. A buffer o

Re: [PATCH v3 4/4] hw/riscv/virt: Add IOPMP support

2023-11-21 Thread Ethan Chen via
On Tue, Nov 21, 2023 at 03:22:18PM +1000, Alistair Francis wrote: > On Tue, Nov 14, 2023 at 7:48 PM Ethan Chen via wrote: > > > > - Add 'iopmp=on' option to enable a iopmp device and a dma device > > connect to the iopmp device > > - Add 'iopmp_cascade=on' option to enable iopmp cascading. > > C

[PULL 1/3] net: Provide MemReentrancyGuard * to qemu_new_nic()

2023-11-21 Thread Jason Wang
From: Akihiko Odaki Recently MemReentrancyGuard was added to DeviceState to record that the device is engaging in I/O. The network device backend needs to update it when delivering a packet to a device. In preparation for such a change, add MemReentrancyGuard * as a parameter of qemu_new_nic().

[PULL 2/3] net: Update MemReentrancyGuard for NIC

2023-11-21 Thread Jason Wang
From: Akihiko Odaki Recently MemReentrancyGuard was added to DeviceState to record that the device is engaging in I/O. The network device backend needs to update it when delivering a packet to a device. This implementation follows what bottom half does, but it does not add a tracepoint for the c

[PULL 0/3] Net patches

2023-11-21 Thread Jason Wang
The following changes since commit af9264da80073435fd78944bc5a46e695897d7e5: Merge tag '20231119-xtensa-1' of https://github.com/OSLL/qemu-xtensa into staging (2023-11-20 05:25:19 -0500) are available in the git repository at: https://github.com/jasowang/qemu.git tags/net-pull-request for

[PULL 3/3] net: do not delete nics in net_cleanup()

2023-11-21 Thread Jason Wang
From: David Woodhouse In net_cleanup() we only need to delete the netdevs, as those may have state which outlives Qemu when it exits, and thus may actually need to be cleaned up on exit. The nics, on the other hand, are owned by the device which created them. Most devices don't bother to clean u

Re: [RFC 1/2] qapi/virtio: introduce the "show-bits" argument for x-query-virtio-status

2023-11-21 Thread Yong Huang
On Tue, Nov 21, 2023 at 3:58 PM Markus Armbruster wrote: > Laurent, there's a question for you at the end. > > Yong Huang writes: > > > On Thu, Nov 16, 2023 at 10:44 PM Markus Armbruster > > wrote: > > > >> Hyman Huang writes: > >> > >> > This patch allows to display feature and status bits in

[PATCH] Revert "tests/avocado: Enable reverse_debugging.py tests in gitlab CI"

2023-11-21 Thread Thomas Huth
This reverts commit c4d74ab24a02c90b7a3240510b3dd4e1bec536dd. The reverse debugging test is sometimes still failing. See: https://gitlab.com/qemu-project/qemu/-/issues/1992 Signed-off-by: Thomas Huth --- tests/avocado/reverse_debugging.py | 8 1 file changed, 8 insertions(+) diff --g

Re: [PATCH v3 1/4] hw/core: Add config stream

2023-11-21 Thread Ethan Chen via
On Tue, Nov 21, 2023 at 03:28:13PM +1000, Alistair Francis wrote: > On Tue, Nov 21, 2023 at 3:24 PM Alistair Francis wrote: > > > > On Tue, Nov 14, 2023 at 7:49 PM Ethan Chen via > > wrote: > > > > > > Make other device can use /hw/core/stream.c by select this config. > > > > > > Signed-off-by:

Re: [PATCH for-8.2 1/3] vl: revert behaviour for -display none

2023-11-21 Thread David Woodhouse
On Mon, 2023-11-20 at 12:42 +, Peter Maydell wrote: > > This fixes the regression I was seeing with the semihosting > use case. I haven't checked the Xen setup. > > Tested-by: Peter Maydell > Reviewed-by: Peter Maydell It does also work for the Xen command line (with my other fix reverted)

Re: [PATCH for-8.2 0/3] UI: fix default VC regressions

2023-11-21 Thread Woodhouse, David
On Tue, 2023-11-21 at 11:37 +0400, Marc-André Lureau wrote: > On Fri, Nov 17, 2023 at 6:36 PM wrote: > > > > From: Marc-André Lureau > > > > Hi, > > > > There are a few annoying regressions with the default VCs introduced with > > the > > pixman series. The "vl: revert behaviour for -display

Re: [PATCH v3 0/4] ide: implement simple legacy/native mode switching for PCI IDE controllers

2023-11-21 Thread Mark Cave-Ayland
On 21/11/2023 09:12, Kevin Wolf wrote: Am 20.11.2023 um 16:02 hat BALATON Zoltan geschrieben: On Mon, 20 Nov 2023, Mark Cave-Ayland wrote: On 20/11/2023 13:42, Kevin Wolf wrote: Am 20.11.2023 um 14:09 hat BALATON Zoltan geschrieben: On Mon, 20 Nov 2023, Mark Cave-Ayland wrote: On 19/11/2023

[PULL 1/8] target/arm: enable FEAT_RNG on Neoverse-N2

2023-11-21 Thread Peter Maydell
From: Marcin Juszkiewicz I noticed that Neoverse-V1 has FEAT_RNG enabled so let enable it also on Neoverse-N2. Signed-off-by: Marcin Juszkiewicz Reviewed-by: Richard Henderson Message-id: 20231114103443.1652308-1-marcin.juszkiew...@linaro.org Reviewed-by: Peter Maydell Signed-off-by: Peter Ma

[PULL 7/8] hw/arm/stm32f100: Report error when incorrect CPU is used

2023-11-21 Thread Peter Maydell
From: Philippe Mathieu-Daudé The 'stm32vldiscovery' machine ignores the CPU type requested by the command line. This might confuse users, since the following will create a machine with a Cortex-M3 CPU: $ qemu-system-aarch64 -M stm32vldiscovery -cpu neoverse-n1 Set the MachineClass::valid_cpu_

[PULL 4/8] hw/core/machine: Constify MachineClass::valid_cpu_types[]

2023-11-21 Thread Peter Maydell
From: Gavin Shan Constify MachineClass::valid_cpu_types[i], as suggested by Richard Henderson. Suggested-by: Richard Henderson Signed-off-by: Gavin Shan Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-id: 20231117071704.35040-

[PULL 6/8] hw/arm/stm32f205: Report error when incorrect CPU is used

2023-11-21 Thread Peter Maydell
From: Philippe Mathieu-Daudé The 'netduino2' machine ignores the CPU type requested by the command line. This might confuse users, since the following will create a machine with a Cortex-M3 CPU: $ qemu-system-arm -M netduino2 -cpu cortex-a9 Set the MachineClass::valid_cpu_types field (introdu

[PULL 8/8] hw/arm/fsl-imx: Do not ignore Error argument

2023-11-21 Thread Peter Maydell
From: Philippe Mathieu-Daudé Both i.MX25 and i.MX6 SoC models ignore the Error argument when setting the PHY number. Pick &error_abort which is the error used by the i.MX7 SoC (see commit 1f7197deb0 "ability to change the FEC PHY on i.MX7 processor"). Fixes: 74c1330582 ("ability to change the FE

[PULL 2/8] hw/intc/arm_gicv3: ICC_PMR_EL1 high bits should be RAZ

2023-11-21 Thread Peter Maydell
From: Ben Dooks The ICC_PMR_ELx and ICV_PMR_ELx bit masks returned from ic{c,v}_fullprio_mask should technically also remove any bit above 7 as these are marked reserved (read 0) and should therefore should not be written as anything other than 0. This was noted during a run of a proprietary tes

[PULL 3/8] target/arm: Fix SME FMOPA (16-bit), BFMOPA

2023-11-21 Thread Peter Maydell
From: Richard Henderson Perform the loop increment unconditionally, not nested within the predication. Cc: qemu-sta...@nongnu.org Fixes: 3916841ac75 ("target/arm: Implement FMOPA, FMOPS (widening)") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1985 Signed-off-by: Richard Henderson Re

[PULL 5/8] hw/arm/stm32f405: Report error when incorrect CPU is used

2023-11-21 Thread Peter Maydell
From: Philippe Mathieu-Daudé Both 'netduinoplus2' and 'olimex-stm32-h405' machines ignore the CPU type requested by the command line. This might confuse users, since the following will create a machine with a Cortex-M4 CPU: $ qemu-system-aarch64 -M netduinoplus2 -cpu cortex-r5f Set the Machin

[PULL 0/8] target-arm queue

2023-11-21 Thread Peter Maydell
ailable in the Git repository at: https://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20231121 for you to fetch changes up to 0cbb56c236a4a28f5149eed227d74bb737321cfc: hw/arm/fsl-imx: Do not ignore Error argument (2023-11-20 15:3

RE: [RFC PATCH 1/3] hw/cxl/cxl-mailbox-utils: Add support for feature commands (8.2.9.6)

2023-11-21 Thread Shiju Jose via
Hi Davidlohr, Thanks for reviewing and for the comments. >-Original Message- >From: Davidlohr Bueso >Sent: 20 November 2023 19:45 >To: Shiju Jose >Cc: qemu-devel@nongnu.org; linux-...@vger.kernel.org; Jonathan Cameron >; tanxiaofei ; >Zengtao (B) ; Linuxarm ; >fan...@samsung.com; a.manz

Re: [PATCH for-8.2 0/3] UI: fix default VC regressions

2023-11-21 Thread Marc-André Lureau
Hi David On Tue, Nov 21, 2023 at 2:15 PM Woodhouse, David wrote: > > On Tue, 2023-11-21 at 11:37 +0400, Marc-André Lureau wrote: > > On Fri, Nov 17, 2023 at 6:36 PM wrote: > > > > > > From: Marc-André Lureau > > > > > > Hi, > > > > > > There are a few annoying regressions with the default VCs i

[PULL 4/5] vl: add missing display_remote++

2023-11-21 Thread marcandre . lureau
From: Marc-André Lureau We should also consider -display vnc= as setting up a remote display, and not attempt to add another default one. The display_remote++ in qemu_setup_display() isn't necessary at this point, but is there for completeness and further usages of the variable. Fixes: https://

[PULL 0/5] Ui patches

2023-11-21 Thread marcandre . lureau
From: Marc-André Lureau The following changes since commit af9264da80073435fd78944bc5a46e695897d7e5: Merge tag '20231119-xtensa-1' of https://github.com/OSLL/qemu-xtensa into staging (2023-11-20 05:25:19 -0500) are available in the Git repository at: https://gitlab.com/marcandre.lureau/qe

[PULL 3/5] ui/console: fix default VC when there are no display

2023-11-21 Thread marcandre . lureau
From: Marc-André Lureau When display is "none", we may still have remote displays (I think it would be simpler if VNC/Spice were regular display btw). Return the default VC then, and set them up to fix a regression when using remote display and it used the TTY instead. Fixes: https://gitlab.com/

[PULL 2/5] ui: use "vc" chardev for dbus, gtk & spice-app

2023-11-21 Thread marcandre . lureau
From: Marc-André Lureau Those display have their own implementation of "vc" chardev, which doesn't use pixman. They also don't implement the width/height/cols/rows options, so qemu_display_get_vc() should return a compatible argument. This patch was meant to be with the pixman series, when the "

[PULL 1/5] vl: revert behaviour for -display none

2023-11-21 Thread marcandre . lureau
From: Marc-André Lureau Commit 1bec1cc0d ("ui/console: allow to override the default VC") changed the behaviour of the "-display none" option, so that it now creates a QEMU monitor on the terminal. "-display none" should not be tangled up with whether we create a monitor or a serial terminal; it

[PULL 5/5] ui/pixman-minimal.h: fix empty allocation

2023-11-21 Thread marcandre . lureau
From: Manos Pitsidianakis In the minimal pixman API stub that is used when the real pixman dependency is missing a NULL dereference happens when virtio-gpu-rutabaga allocates a pixman image with bits = NULL and rowstride_bytes = zero. A buffer of rowstride_bytes * height is allocated which is NUL

Re: [PATCH for-8.2 0/3] UI: fix default VC regressions

2023-11-21 Thread David Woodhouse
On Tue, 2023-11-21 at 14:37 +0400, Marc-André Lureau wrote: > > Thanks for the quick test. I am bit reluctant to push your change in > 8.2 too. It's a change in behaviour at this point, not simply a fix. > But as the maintainer of Xen stuff, you have perhaps the final call.? it's not a change in

Re: [PATCH for-8.2 0/3] UI: fix default VC regressions

2023-11-21 Thread Marc-André Lureau
Hi On Tue, Nov 21, 2023 at 2:42 PM David Woodhouse wrote: > > On Tue, 2023-11-21 at 14:37 +0400, Marc-André Lureau wrote: > > > > Thanks for the quick test. I am bit reluctant to push your change in > > 8.2 too. It's a change in behaviour at this point, not simply a fix. > > But as the maintainer

Re: [PATCH for-8.2 0/3] UI: fix default VC regressions

2023-11-21 Thread David Woodhouse
On Tue, 2023-11-21 at 14:45 +0400, Marc-André Lureau wrote: > Hi > > On Tue, Nov 21, 2023 at 2:42 PM David Woodhouse wrote: > > > > On Tue, 2023-11-21 at 14:37 +0400, Marc-André Lureau wrote: > > > > > > Thanks for the quick test. I am bit reluctant to push your change in > > > 8.2 too. It's a

Re: [PATCH 2/3] vl: disable default serial when xen-console is enabled

2023-11-21 Thread Marc-André Lureau
Hi On Wed, Nov 15, 2023 at 9:28 PM David Woodhouse wrote: > > From: David Woodhouse > > If a Xen console is configured on the command line, do not add a default > serial port. > > Signed-off-by: David Woodhouse > --- > system/vl.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/system

Re: [PATCH 2/3] vl: disable default serial when xen-console is enabled

2023-11-21 Thread Marc-André Lureau
Hi On Tue, Nov 21, 2023 at 2:57 PM Marc-André Lureau wrote: > > Hi > > On Wed, Nov 15, 2023 at 9:28 PM David Woodhouse wrote: > > > > From: David Woodhouse > > > > If a Xen console is configured on the command line, do not add a default > > serial port. > > > > Signed-off-by: David Woodhouse >

Re: [PATCH 2/3] vl: disable default serial when xen-console is enabled

2023-11-21 Thread Paul Durrant
On 15/11/2023 17:24, David Woodhouse wrote: From: David Woodhouse If a Xen console is configured on the command line, do not add a default serial port. Signed-off-by: David Woodhouse --- system/vl.c | 1 + 1 file changed, 1 insertion(+) Reviewed-by: Paul Durrant

Re: [PATCH v3 0/4] ide: implement simple legacy/native mode switching for PCI IDE controllers

2023-11-21 Thread Peter Maydell
On Tue, 21 Nov 2023 at 10:18, Mark Cave-Ayland wrote: > In the meantime the department of hacks has been looking at ways of trying to > set BAR > addresses during reset, and humbly submits the following for consideration: > +static void via_ide_bar_reset(void *opaque) > +{ > +PCIIDEState *d

Re: [PATCH-for-9.0 22/25] hw/sparc: Simplify memory_region_init_ram_nomigrate() calls

2023-11-21 Thread Philippe Mathieu-Daudé
On 20/11/23 22:32, Philippe Mathieu-Daudé wrote: Mechanical change using the following coccinelle script: @@ expression mr, owner, arg3, arg4, errp; @@ - memory_region_init_ram_nomigrate(mr, owner, arg3, arg4, &errp); if ( - errp + !memory_region_init_ram_nomigrate(mr, owner,

Re: [PATCH 2/3] vl: disable default serial when xen-console is enabled

2023-11-21 Thread David Woodhouse
On Tue, 2023-11-21 at 14:58 +0400, Marc-André Lureau wrote: > > > Consistent with the rest of the lines (no conditional compilation nor > > driver #define..) > > Reviewed-by: Marc-André Lureau Thanks. > > btw, while quickly testing this (do we have any test for xen-console?): > > > > $ qemu --

Re: [PATCH 2/3] chardev: report blocked write to chardev backend

2023-11-21 Thread Marc-André Lureau
Hi On Tue, Nov 21, 2023 at 1:45 PM Thomas Huth wrote: > > On 21/11/2023 10.39, Marc-André Lureau wrote: > > Hi > > > > On Mon, Nov 20, 2023 at 5:36 PM Nicholas Piggin wrote: > >> > >> On Mon Nov 20, 2023 at 10:06 PM AEST, Marc-André Lureau wrote: > >>> Hi > >>> > >>> On Thu, Nov 16, 2023 at 3:54

[PULL 4/9] stream: Fix AioContext locking during bdrv_graph_wrlock()

2023-11-21 Thread Kevin Wolf
In stream_prepare(), we need to temporarily drop the AioContext lock that job_prepare_locked() took for us while calling the graph write lock functions which can poll. All block nodes related to this block job are in the same AioContext, so we can pass any of them to bdrv_graph_wrlock()/ bdrv_grap

[PULL 1/9] hw/ide/ahci: fix legacy software reset

2023-11-21 Thread Kevin Wolf
From: Niklas Cassel Legacy software contains a standard mechanism for generating a reset to a Serial ATA device - setting the SRST (software reset) bit in the Device Control register. Serial ATA has a more robust mechanism called COMRESET, also referred to as port reset. A port reset is the pref

[PULL 9/9] hw/ide/via: implement legacy/native mode switching

2023-11-21 Thread Kevin Wolf
From: Mark Cave-Ayland Allow the VIA IDE controller to switch between both legacy and native modes by calling pci_ide_update_mode() to reconfigure the device whenever PCI_CLASS_PROG is updated. This patch moves the initial setting of PCI_CLASS_PROG from via_ide_realize() to via_ide_reset(), and

[PULL 3/9] block: Fix deadlocks in bdrv_graph_wrunlock()

2023-11-21 Thread Kevin Wolf
bdrv_graph_wrunlock() calls aio_poll(), which may run callbacks that have a nested event loop. Nested event loops can depend on other iothreads making progress, so in order to allow them to make progress it must not hold the AioContext lock of another thread while calling aio_poll(). This introduc

[PULL 0/9] Block layer fixes for 8.2.0-rc1

2023-11-21 Thread Kevin Wolf
The following changes since commit af9264da80073435fd78944bc5a46e695897d7e5: Merge tag '20231119-xtensa-1' of https://github.com/OSLL/qemu-xtensa into staging (2023-11-20 05:25:19 -0500) are available in the Git repository at: https://repo.or.cz/qemu/kevin.git tags/for-upstream for you to

[PULL 8/9] ide/via: don't attempt to set default BAR addresses

2023-11-21 Thread Kevin Wolf
From: Mark Cave-Ayland The via-ide device currently attempts to set the default BAR addresses to the values shown in the datasheet, but this doesn't work for 2 reasons: firstly BARS 1-4 do not set the bottom 2 bits to PCI_BASE_ADDRESS_SPACE_IO, and secondly the initial PCI bus reset clears the va

  1   2   3   >