Re: [PATCH v7 1/2] memory: Update inline documentation

2025-01-15 Thread Peter Xu
On Wed, Jan 15, 2025 at 01:46:29PM +0900, Akihiko Odaki wrote: > On 2025/01/15 2:02, Peter Xu wrote: > > On Tue, Jan 14, 2025 at 05:43:09PM +0900, Akihiko Odaki wrote: > > > memory_region_finalize() is not a function to tell the owner is leaving, > > > but > > > the memory region itself is being d

Re: [PATCH v17 00/11] New vmapple machine type and xhci fixes

2025-01-15 Thread Phil Dennis-Jordan
On Wed, 15 Jan 2025 at 14:05, Michael Tokarev wrote: > 13.01.2025 00:00, Phil Dennis-Jordan wrote: > > This patch set introduces a new ARM and macOS HVF specific machine type > > called "vmapple". There are also some patches for fixing XHCI spec > > compliance issues and adding a workaround to a

Re: [PATCH v17 00/11] New vmapple machine type and xhci fixes

2025-01-15 Thread Michael Tokarev
13.01.2025 00:00, Phil Dennis-Jordan wrote: This patch set introduces a new ARM and macOS HVF specific machine type called "vmapple". There are also some patches for fixing XHCI spec compliance issues and adding a workaround to a quirk in the macOS guest's XHCI driver. The vmapple machine type a

Re: [PATCH v2 01/13] hw/sd/sdhci: Set SDHC_NIS_DMA bit when appropriate

2025-01-15 Thread Michael Tokarev
11.01.2025 21:36, Bernhard Beschow wrote: In U-Boot, the fsl_esdhc[_imx] driver waits for both "transmit completed" and "DMA" bits in esdhc_send_cmd_common() by means of DATA_COMPLETE constant. QEMU currently misses to set the DMA bit which causes the driver to loop forever. Fix that by setting t

[PATCH 00/21] hw/i386/pc: Remove deprecated 2.4 and 2.5 PC machines

2025-01-15 Thread Philippe Mathieu-Daudé
The versioned 'pc' and 'q35' machines up to 2.12 been marked as deprecated two releases ago, and are older than 6 years, so according to our support policy we can remove them. This series only includes the 2.4 and 2.5 machines removal, as it is a big enough number of LoC removed. Rest will follow.

[PATCH 03/21] hw/i386/pc: Remove PCMachineClass::broken_reserved_end field

2025-01-15 Thread Philippe Mathieu-Daudé
The PCMachineClass::broken_reserved_end field was only used by the pc-q35-2.4 and pc-i440fx-2.4 machines, which got removed. Remove it and simplify pc_memory_init(). Signed-off-by: Philippe Mathieu-Daudé --- include/hw/i386/pc.h | 1 - hw/i386/pc.c | 13 + 2 files changed, 5

[PATCH 04/21] hw/i386/pc: Remove pc_compat_2_4[] array

2025-01-15 Thread Philippe Mathieu-Daudé
The pc_compat_2_4[] array was only used by the pc-q35-2.4 and pc-i440fx-2.4 machines, which got removed. Remove it. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/i386/pc.h | 3 --- hw/i386/pc.c | 19 --- 2 files changed, 22 deletions(-) diff --git a/include/hw/i3

[PATCH 01/21] hw/i386/pc: Remove unused pc_compat_2_3 declarations

2025-01-15 Thread Philippe Mathieu-Daudé
We removed the implementations in commit 46a2bd52571 ("hw/i386/pc: Remove deprecated pc-i440fx-2.3 machine") but forgot to remove the declarations. Do it now. Fixes: 46a2bd52571 ("hw/i386/pc: Remove deprecated pc-i440fx-2.3 machine") Signed-off-by: Philippe Mathieu-Daudé --- include/hw/i386/pc.h

[PATCH 13/21] hw/nvram/fw_cfg: Remove legacy FW_CFG_ORDER_OVERRIDE

2025-01-15 Thread Philippe Mathieu-Daudé
The MachineClass::legacy_fw_cfg_order boolean was only used by the pc-q35-2.5 and pc-i440fx-2.5 machines, which got removed. Remove it along with: - FW_CFG_ORDER_OVERRIDE_* definitions - fw_cfg_set_order_override() - fw_cfg_reset_order_override() - fw_cfg_order[] - rom_set_order_override() - rom_r

[PATCH 08/21] hw/net/e1000: Remove unused E1000_FLAG_MAC flag

2025-01-15 Thread Philippe Mathieu-Daudé
E1000_FLAG_MAC was only used by the hw_compat_2_4[] array, via the 'extra_mac_registers=off' property. We removed all machines using that array, lets remove all the code around E1000_FLAG_MAC. Signed-off-by: Philippe Mathieu-Daudé --- hw/net/e1000.c | 63 +

[PATCH 15/21] hw/block/fdc-isa: Remove 'fallback' property

2025-01-15 Thread Philippe Mathieu-Daudé
The "fallback" property was only used by the hw_compat_2_5[] array, as 'fallback=144'. We removed all machines using that array, lets remove ISA floppy drive 'fallback' property, manually setting the default value in isabus_fdc_realize(). Signed-off-by: Philippe Mathieu-Daudé --- hw/block/fdc-is

[PATCH 10/21] hw/virtio/virtio-pci: Remove VIRTIO_PCI_FLAG_DISABLE_PCIE definition

2025-01-15 Thread Philippe Mathieu-Daudé
VIRTIO_PCI_FLAG_DISABLE_PCIE was only used by the hw_compat_2_4[] array, via the 'x-disable-pcie=false' property. We removed all machines using that array, lets remove all the code around VIRTIO_PCI_FLAG_DISABLE_PCIE. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/virtio/virtio-pci.h | 4 -

[PATCH 19/21] hw/net/vmxnet3: Remove VMXNET3_COMPAT_FLAG_OLD_MSI_OFFSETS definition

2025-01-15 Thread Philippe Mathieu-Daudé
VMXNET3_COMPAT_FLAG_OLD_MSI_OFFSETS was only used by the hw_compat_2_5[] array, via the 'x-old-msi-offsets=on' property. We removed all machines using that array, lets remove all the code around VMXNET3_COMPAT_FLAG_OLD_MSI_OFFSETS. Signed-off-by: Philippe Mathieu-Daudé --- hw/net/vmxnet3.c | 20

[PATCH 07/21] hw/core/machine: Remove hw_compat_2_4[] array

2025-01-15 Thread Philippe Mathieu-Daudé
The hw_compat_2_4[] array was only used by the pc-q35-2.4 and pc-i440fx-2.4 machines, which got removed. Remove it. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/boards.h | 3 --- hw/core/machine.c | 9 - 2 files changed, 12 deletions(-) diff --git a/include/hw/boards.h b/inclu

[PATCH 14/21] hw/core/machine: Remove hw_compat_2_5[] array

2025-01-15 Thread Philippe Mathieu-Daudé
The hw_compat_2_5[] array was only used by the pc-q35-2.5 and pc-i440fx-2.5 machines, which got removed. Remove it. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/boards.h | 3 --- hw/core/machine.c | 9 - 2 files changed, 12 deletions(-) diff --git a/include/hw/boards.h b/inclu

[PATCH 09/21] hw/virtio/virtio-pci: Remove VIRTIO_PCI_FLAG_MIGRATE_EXTRA definition

2025-01-15 Thread Philippe Mathieu-Daudé
VIRTIO_PCI_FLAG_MIGRATE_EXTRA was only used by the hw_compat_2_4[] array, via the 'migrate-extra=true' property. We removed all machines using that array, lets remove all the code around VIRTIO_PCI_FLAG_MIGRATE_EXTRA. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/virtio/virtio-pci.h | 4

[PATCH 17/21] hw/scsi/vmw_pvscsi: Remove PVSCSI_COMPAT_DISABLE_PCIE_BIT definition

2025-01-15 Thread Philippe Mathieu-Daudé
PVSCSI_COMPAT_DISABLE_PCIE_BIT was only used by the hw_compat_2_5[] array, via the 'x-disable-pcie=on' property. We removed all machines using that array, lets remove all the code around PVSCSI_COMPAT_DISABLE_PCIE_BIT. Signed-off-by: Philippe Mathieu-Daudé --- hw/scsi/vmw_pvscsi.c | 44 -

[PATCH 02/21] hw/i386/pc: Remove deprecated pc-q35-2.4 and pc-i440fx-2.4 machines

2025-01-15 Thread Philippe Mathieu-Daudé
These machines has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit ce80c4fa6ff "docs: document special exception for machine type deprecation & removal") they can now be removed. Signed-off-by: Philippe Mathieu-Daudé --- docs/about/

[PATCH 20/21] hw/net/vmxnet3: Remove VMXNET3_COMPAT_FLAG_DISABLE_PCIE definition

2025-01-15 Thread Philippe Mathieu-Daudé
VMXNET3_COMPAT_FLAG_DISABLE_PCIE was only used by the hw_compat_2_5[] array, via the 'x-disable-pcie=on' property. We removed all machines using that array, lets remove all the code around VMXNET3_COMPAT_FLAG_DISABLE_PCIE. Signed-off-by: Philippe Mathieu-Daudé --- hw/net/vmxnet3.c | 11 +

[PATCH 21/21] hw/net/vmxnet3: Merge DeviceRealize in InstanceInit

2025-01-15 Thread Philippe Mathieu-Daudé
Simplify merging vmxnet3_realize() within vmxnet3_instance_init(), removing the need for device_class_set_parent_realize(). Signed-off-by: Philippe Mathieu-Daudé --- hw/net/vmxnet3.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/hw/net/vmxnet3.c b/hw/net/vmx

[PATCH 18/21] hw/scsi/vmw_pvscsi: Convert DeviceRealize -> InstanceInit

2025-01-15 Thread Philippe Mathieu-Daudé
Simplify replacing pvscsi_realize() by pvscsi_instance_init(), removing the need for device_class_set_parent_realize(). Signed-off-by: Philippe Mathieu-Daudé --- hw/scsi/vmw_pvscsi.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi

[PATCH 16/21] hw/scsi/vmw_pvscsi: Remove PVSCSI_COMPAT_OLD_PCI_CONFIGURATION definition

2025-01-15 Thread Philippe Mathieu-Daudé
PVSCSI_COMPAT_OLD_PCI_CONFIGURATION was only used by the hw_compat_2_5[] array, via the 'x-old-pci-configuration=on' property. We removed all machines using that array, lets remove all the code around PVSCSI_COMPAT_OLD_PCI_CONFIGURATION. Signed-off-by: Philippe Mathieu-Daudé --- hw/scsi/vmw_pvsc

[PATCH 06/21] target/i386/cpu: Pass Error** to x86_cpu_filter_features()

2025-01-15 Thread Philippe Mathieu-Daudé
Simplify x86_cpu_realizefn() by passing an Error** argument to x86_cpu_filter_features(). Signed-off-by: Philippe Mathieu-Daudé --- target/i386/cpu.c | 26 +- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 422276

[PATCH 05/21] target/i386/cpu: Remove X86CPU::check_cpuid field

2025-01-15 Thread Philippe Mathieu-Daudé
The X86CPU::check_cpuid boolean was only set in the pc_compat_2_4[] array, via the 'check=off' property. We removed all machines using that array, lets remove that CPU property and simplify x86_cpu_realizefn(). Signed-off-by: Philippe Mathieu-Daudé --- target/i386/cpu.h | 1 - target/i386/cpu.c

[PATCH 11/21] hw/i386/pc: Remove deprecated pc-q35-2.5 and pc-i440fx-2.5 machines

2025-01-15 Thread Philippe Mathieu-Daudé
These machines has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit ce80c4fa6ff "docs: document special exception for machine type deprecation & removal") they can now be removed. Remove the now unused empty pc_compat_2_5[] array. Sig

[PATCH 12/21] hw/i386/x86: Remove X86MachineClass::save_tsc_khz field

2025-01-15 Thread Philippe Mathieu-Daudé
The X86MachineClass::save_tsc_khz boolean was only used by the pc-q35-2.5 and pc-i440fx-2.5 machines, which got removed. Remove it and simplify tsc_khz_needed(). Signed-off-by: Philippe Mathieu-Daudé --- include/hw/i386/x86.h | 5 - hw/i386/x86.c | 1 - target/i386/machine.c | 5 ++--

[RFC v2 2/3] hw/nvme: add NVMe Admin Security SPDM support

2025-01-15 Thread Wilfred Mallawa via
Adds the NVMe Admin Security Send/Receive command support with support for DMTFs SPDM. The transport binding for SPDM is defined in the DMTF DSP0286. Signed-off-by: Wilfred Mallawa --- hw/nvme/ctrl.c | 203 ++- hw/nvme/nvme.h | 5 ++ include/

[RFC v2 3/3] hw/nvme: connect SPDM over NVMe Security Send/Recv

2025-01-15 Thread Wilfred Mallawa via
This patch extends the existing support we have for NVMe with only DoE to also add support to SPDM over the NVMe Security Send/Recv commands. With the new definition of the `spdm-trans` argument, users can specify `spdm_trans=nvme` or `spdm_trans=doe`. This allows us to select the SPDM transport r

[RFC v2 1/3] spdm: add spdm storage transport virtual header

2025-01-15 Thread Wilfred Mallawa via
This header contains the transport encoding for an SPDM message that uses the SPDM over Storage transport as defined by the DMTF DSP0286. Signed-off-by: Wilfred Mallawa --- include/system/spdm-socket.h | 12 1 file changed, 12 insertions(+) diff --git a/include/system/spdm-socket.h

[RFC v2 0/3] Add SPDM over Storage transport support for NVMe

2025-01-15 Thread Wilfred Mallawa via
This series adds support for SPDM to be used over the storage transport, as defined by the DMTF DSP0286 [1] for NVMe. That is, using the admin NVMe Security Send/Receive commands, support transport for SPDM as per DSP0286 [1]. The binding specification (DSP0286) is still currently a draft specifica

Re: [RFC 1/4] spdm-socket: add seperate send/recv functions

2025-01-15 Thread Wilfred Mallawa
On Wed, 2025-01-15 at 12:28 +1000, Alistair Francis wrote: > On Wed, Jan 8, 2025 at 12:04 AM Wilfred Mallawa via > wrote: > > > > This is to support uni-directional transports such as SPDM > > over Storage. As specified by the DMTF DSP0286. > > > > Signed-off-by: Wilfred Mallawa > > --- > >  ba

Re: [RFC 3/4] hw/nvme: add NVMe Admin Security SPDM support

2025-01-15 Thread Wilfred Mallawa
On Fri, 2025-01-10 at 11:03 +0100, Klaus Jensen wrote: > On Jan  7 15:29, Wilfred Mallawa via wrote: > > Adds the NVMe Admin Security Send/Receive command support with > > support > > for DMTFs SPDM. The transport binding for SPDM is defined in the > > DMTF DSP0286. > > > > Signed-off-by: Wilfred

Re: [PATCH v7 1/2] memory: Update inline documentation

2025-01-15 Thread Akihiko Odaki
On 2025/01/16 1:14, Peter Xu wrote: On Thu, Jan 16, 2025 at 12:52:56AM +0900, Akihiko Odaki wrote: Functionally, the ordering of container/subregion finalization matters if some device tries to a container during finalization. In such a case, | ^ so

Re: [PATCH v2 5/5] qtest/e1000e|igb: Fix msix to re-trigger interrupts

2025-01-15 Thread Akihiko Odaki
On 2025/01/16 0:01, Nicholas Piggin wrote: The e1000e and igb tests don't clear the msix pending bit after waiting for it, as it is masked so the irq doesn't get sent. This means all subsequent waits for the interrupt does not wait or verify the interrupt was generated, affecting the multiple_tra

Re: [PATCH 4/4] hw/xen: Use xs_node_read() from xenstore_read_str() instead of open-coding it

2025-01-15 Thread Anthony PERARD
On Fri, Jan 10, 2025 at 10:03:26AM +, David Woodhouse wrote: > From: David Woodhouse > > Signed-off-by: David Woodhouse Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH 3/4] hw/xen: Use xs_node_read() from xen_netdev_get_name()

2025-01-15 Thread Anthony PERARD
On Fri, Jan 10, 2025 at 10:03:25AM +, David Woodhouse wrote: > From: David Woodhouse > > Now that xs_node_read() can construct a node path, no need to open-code it. > > Signed-off-by: David Woodhouse Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH v2 2/2] xen: do not use '%ms' scanf specifier

2025-01-15 Thread Anthony PERARD
On Fri, Jan 10, 2025 at 10:35:31AM +0100, Roger Pau Monne wrote: > diff --git a/hw/char/xen_console.c b/hw/char/xen_console.c > index ef0c2912efa1..989e75fef88f 100644 > --- a/hw/char/xen_console.c > +++ b/hw/char/xen_console.c > @@ -550,7 +550,8 @@ static void xen_console_device_create(XenBackendI

Re: [PATCH 2/4] hw/xen: Use xs_node_read() from xen_console_get_name()

2025-01-15 Thread Anthony PERARD
On Fri, Jan 10, 2025 at 10:03:24AM +, David Woodhouse wrote: > From: David Woodhouse > > Now that xs_node_read() can construct a node path, no need to open-code it. > > Signed-off-by: David Woodhouse Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH v7 1/2] memory: Update inline documentation

2025-01-15 Thread Akihiko Odaki
On 2025/01/15 22:43, Peter Xu wrote: On Wed, Jan 15, 2025 at 01:46:29PM +0900, Akihiko Odaki wrote: On 2025/01/15 2:02, Peter Xu wrote: On Tue, Jan 14, 2025 at 05:43:09PM +0900, Akihiko Odaki wrote: memory_region_finalize() is not a function to tell the owner is leaving, but the memory region

[PATCH v3 2/7] xen: do not use '%ms' scanf specifier

2025-01-15 Thread David Woodhouse
From: Roger Pau Monne The 'm' parameter used to request auto-allocation of the destination variable is not supported on FreeBSD, and as such leads to failures to parse. What's more, the current usage of '%ms' with xs_node_scanf() is pointless, as it just leads to a double allocation of the same

[PATCH v3 7/7] hw/xen: Fix errp handling in xen_console

2025-01-15 Thread David Woodhouse
From: David Woodhouse When attempting to read the 'output' node, interpret any error *other* than ENOENT as a fatal error. For ENOENT, fall back to serial_hd() to find a character device, or create a null device. Do not attempt to prepend to errp when serial_hd() fails; the error isn't relevant

[PATCH v3 1/7] xen: error handling and FreeBSD compatibility fixes

2025-01-15 Thread David Woodhouse
Add a new xs_node_read() helper function which constructs the node path using a printf format string, and use it where appropriate. In particular, use it to eliminate the use of the %ms format specifier for scanf(), which doesn't exist in FreeBSD. v3: • Further cleanups using xs_node_read().

[PATCH v3 1/7] hw/xen: Add xs_node_read() helper function

2025-01-15 Thread David Woodhouse
From: David Woodhouse This returns the full contents of the node, having created the node path from the printf-style format string provided in its arguments. This will save various callers from having to do so for themselves (and from using xs_node_scanf() with the non-portable %ms format string

Re: [PATCH v3 1/7] hw/xen: Add xs_node_read() helper function

2025-01-15 Thread Anthony PERARD
On Wed, Jan 15, 2025 at 04:27:19PM +, David Woodhouse wrote: > From: David Woodhouse > > This returns the full contents of the node, having created the node path > from the printf-style format string provided in its arguments. > > This will save various callers from having to do so for thems

[PATCH v3 6/7] hw/xen: Use xs_node_read() from xenstore_read_str() instead of open-coding it

2025-01-15 Thread David Woodhouse
From: David Woodhouse Signed-off-by: David Woodhouse Reviewed-by: Anthony PERARD Acked-by: Roger Pau Monné --- hw/xen/xen_pvdev.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hw/xen/xen_pvdev.c b/hw/xen/xen_pvdev.c index c5ad71e8dc..c9143ba259 100644 --- a/hw/xen/

[PATCH v3 5/7] hw/xen: Use xs_node_read() from xen_netdev_get_name()

2025-01-15 Thread David Woodhouse
From: David Woodhouse Now that xs_node_read() can construct a node path, no need to open-code it. Signed-off-by: David Woodhouse Reviewed-by: Anthony PERARD Acked-by: Roger Pau Monné --- hw/net/xen_nic.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/hw/net

[PATCH v3 4/7] hw/xen: Use xs_node_read() from xen_console_get_name()

2025-01-15 Thread David Woodhouse
From: David Woodhouse Now that xs_node_read() can construct a node path, no need to open-code it. Signed-off-by: David Woodhouse Reviewed-by: Anthony PERARD Acked-by: Roger Pau Monné --- hw/char/xen_console.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --gi

[PATCH v3 3/7] hw/xen: Use xs_node_read() from xs_node_vscanf()

2025-01-15 Thread David Woodhouse
From: David Woodhouse Reduce some duplication. Signed-off-by: David Woodhouse Reviewed-by: Anthony PERARD Acked-by: Roger Pau Monné --- hw/xen/trace-events | 1 - hw/xen/xen-bus-helper.c | 15 ++- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/hw/xen/trace-e

Re: [PATCH v3 2/7] xen: do not use '%ms' scanf specifier

2025-01-15 Thread Anthony PERARD
On Wed, Jan 15, 2025 at 04:27:20PM +, David Woodhouse wrote: > From: Roger Pau Monne > > The 'm' parameter used to request auto-allocation of the destination variable > is not supported on FreeBSD, and as such leads to failures to parse. > > What's more, the current usage of '%ms' with xs_no

Re: [PATCH v3 2/7] xen: do not use '%ms' scanf specifier

2025-01-15 Thread Andrew Cooper
On 15/01/2025 4:27 pm, David Woodhouse wrote: > diff --git a/hw/xen/xen-bus.c b/hw/xen/xen-bus.c > index adfc4efad0..85b92cded4 100644 > --- a/hw/xen/xen-bus.c > +++ b/hw/xen/xen-bus.c > @@ -650,6 +650,16 @@ int xen_device_frontend_scanf(XenDevice *xendev, const > char *key, > return rc; > }

Re: [PATCH v3 7/7] hw/xen: Fix errp handling in xen_console

2025-01-15 Thread Anthony PERARD
On Wed, Jan 15, 2025 at 04:27:25PM +, David Woodhouse wrote: > diff --git a/hw/char/xen_console.c b/hw/char/xen_console.c > index e61902461b..9e7f6da343 100644 > --- a/hw/char/xen_console.c > +++ b/hw/char/xen_console.c > @@ -581,19 +581,27 @@ static void > xen_console_device_create(XenBackend

Re: [PATCH 1/4] hw/xen: Use xs_node_read() from xs_node_vscanf()

2025-01-15 Thread Anthony PERARD
On Fri, Jan 10, 2025 at 10:03:23AM +, David Woodhouse wrote: > From: David Woodhouse > > Reduce some duplication. > > Signed-off-by: David Woodhouse Reviewed-by: Anthony PERARD Thanks, -- Anthony PERARD

Re: [PATCH v2 0/2] xen: error handling and FreeBSD compatibility fixes

2025-01-15 Thread David Woodhouse
On Wed, 2025-01-15 at 15:34 +0100, Roger Pau Monné wrote: > On Fri, Jan 10, 2025 at 10:02:53AM +, David Woodhouse wrote: > > On Fri, 2025-01-10 at 10:35 +0100, Roger Pau Monne wrote: > > > Hello, > > > > > > First patch from David introduces a new helper to fetch xenstore nodes, > > > while se

Re: [PATCH v2 0/2] xen: error handling and FreeBSD compatibility fixes

2025-01-15 Thread Roger Pau Monné
On Fri, Jan 10, 2025 at 10:02:53AM +, David Woodhouse wrote: > On Fri, 2025-01-10 at 10:35 +0100, Roger Pau Monne wrote: > > Hello, > > > > First patch from David introduces a new helper to fetch xenstore nodes, > > while second patch removes the usage of scanf related functions with the > > "

Re: [PATCH v17 00/11] New vmapple machine type and xhci fixes

2025-01-15 Thread Michael S. Tsirkin
On Sun, Jan 12, 2025 at 10:00:45PM +0100, Phil Dennis-Jordan wrote: > This patch set introduces a new ARM and macOS HVF specific machine type > called "vmapple". There are also some patches for fixing XHCI spec > compliance issues and adding a workaround to a quirk in the macOS guest's > XHCI drive

Re: [PATCH v17 00/11] New vmapple machine type and xhci fixes

2025-01-15 Thread Michael S. Tsirkin
On Wed, Jan 15, 2025 at 04:33:45PM +0100, Phil Dennis-Jordan wrote: > > > On Wed, 15 Jan 2025 at 16:08, Michael S. Tsirkin wrote: > > On Sun, Jan 12, 2025 at 10:00:45PM +0100, Phil Dennis-Jordan wrote: > > This patch set introduces a new ARM and macOS HVF specific machine type > > c

Re: [PATCH v7 1/2] memory: Update inline documentation

2025-01-15 Thread Peter Xu
On Wed, Jan 15, 2025 at 11:54:56PM +0900, Akihiko Odaki wrote: > On 2025/01/15 22:43, Peter Xu wrote: > > On Wed, Jan 15, 2025 at 01:46:29PM +0900, Akihiko Odaki wrote: > > > On 2025/01/15 2:02, Peter Xu wrote: > > > > On Tue, Jan 14, 2025 at 05:43:09PM +0900, Akihiko Odaki wrote: > > > > > memory_

Re: [PATCH v7 1/2] memory: Update inline documentation

2025-01-15 Thread Peter Xu
On Thu, Jan 16, 2025 at 12:52:56AM +0900, Akihiko Odaki wrote: > Functionally, the ordering of container/subregion finalization matters if > some device tries to a container during finalization. In such a case, | ^ something is missing here, feel free to

Re: [PATCH v2 07/13] hw/sd/sd: Allow for inverting polarities of presence and write-protect GPIOs

2025-01-15 Thread Philippe Mathieu-Daudé
On 11/1/25 19:37, Bernhard Beschow wrote: Signed-off-by: Bernhard Beschow --- hw/sd/sd.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) See question on v1: https://lore.kernel.org/qemu-devel/e202623e-eac7-4ed3-87fb-002491ddf...@linaro.org/

[PATCH v2 1/5] qtest/pci: Enforce balanced iomap/unmap

2025-01-15 Thread Nicholas Piggin
Add assertions to ensure a BAR is not mapped twice, and only previously mapped BARs are unmapped. This can help catch some bugs. Cc: Michael S. Tsirkin Cc: Marcel Apfelbaum Reviewed-by: Fabiano Rosas Signed-off-by: Nicholas Piggin --- tests/qtest/libqos/ahci.h | 1 + tests/qtest/libqos

[PATCH v2 4/5] qtest/e1000e|igb: Clear interrupt-cause bits after irq

2025-01-15 Thread Nicholas Piggin
The e1000e and igb tests do not clear the ICR/EICR cause bits (or set auto-clear) on seeing queue interrupts, which inhibits the triggering of a new interrupt. Fix this by clearing the cause bits, and verify that the expected cause bit was set. Cc: Michael S. Tsirkin Cc: Marcel Apfelbaum Cc: Dm

[PATCH v2 0/5] qtest: pci and e1000e/igb msix fixes

2025-01-15 Thread Nicholas Piggin
This series fixes some iomap balance issues and enables msix sharing bar0, which will be required for some future XHCI test cases. It also removes the invalid write to msix PBA memory by qtest, and fixes that properly by unmasking and taking delivery of the msix interrupt in e1000e and igb tests,

[PATCH v2 3/5] qtest/libqos/pci: Do not write to PBA memory

2025-01-15 Thread Nicholas Piggin
The PCI Local Bus Specification says the result of writes to MSI-X PBA memory is undefined. QEMU implements them as no-ops, so remove the pointless write from qpci_msix_pending(). Cc: Michael S. Tsirkin Cc: Marcel Apfelbaum Cc: Dmitry Fleytman Cc: Akihiko Odaki Cc: Sriram Yagnaraman Signed-of

[PATCH v2 5/5] qtest/e1000e|igb: Fix msix to re-trigger interrupts

2025-01-15 Thread Nicholas Piggin
The e1000e and igb tests don't clear the msix pending bit after waiting for it, as it is masked so the irq doesn't get sent. This means all subsequent waits for the interrupt does not wait or verify the interrupt was generated, affecting the multiple_transfers tests. To fix this, have device setup

[PATCH v2 2/5] qtest/libqos/pci: Fix qpci_msix_enable sharing bar0

2025-01-15 Thread Nicholas Piggin
Devices where the MSI-X addresses are shared with other MMIO on BAR0 can not use msi_enable because it unmaps and remaps BAR0, which interferes with device MMIO mappings. xhci-nec is one such device we would like to test msix with. Use the BAR iomap tracking structure introduced in the previous ch

Re: [PATCH v17 00/11] New vmapple machine type and xhci fixes

2025-01-15 Thread Phil Dennis-Jordan
On Wed, 15 Jan 2025 at 16:08, Michael S. Tsirkin wrote: > On Sun, Jan 12, 2025 at 10:00:45PM +0100, Phil Dennis-Jordan wrote: > > This patch set introduces a new ARM and macOS HVF specific machine type > > called "vmapple". There are also some patches for fixing XHCI spec > > compliance issues an

Re: [PATCH v7 1/2] memory: Update inline documentation

2025-01-15 Thread Akihiko Odaki
On 2025/01/16 0:40, Peter Xu wrote: On Wed, Jan 15, 2025 at 11:54:56PM +0900, Akihiko Odaki wrote: On 2025/01/15 22:43, Peter Xu wrote: On Wed, Jan 15, 2025 at 01:46:29PM +0900, Akihiko Odaki wrote: On 2025/01/15 2:02, Peter Xu wrote: On Tue, Jan 14, 2025 at 05:43:09PM +0900, Akihiko Odaki wr

Re: [PATCH v2 2/2] xen: do not use '%ms' scanf specifier

2025-01-15 Thread David Woodhouse
On Wed, 2025-01-15 at 15:36 +0100, Anthony PERARD wrote: > On Fri, Jan 10, 2025 at 10:35:31AM +0100, Roger Pau Monne wrote: > > diff --git a/hw/char/xen_console.c b/hw/char/xen_console.c > > index ef0c2912efa1..989e75fef88f 100644 > > --- a/hw/char/xen_console.c > > +++ b/hw/char/xen_console.c > >

[PATCH] hw/sd/sdhci: Set reset value of interrupt registers

2025-01-15 Thread BALATON Zoltan
The interrupt enable registers are not reset to 0 but some bits are enabled on reset. At least some U-Boot versions seem to expect this and not initialise these registers before expecting interrupts. The numbers in this patch match what QorIQ P1022 has on reset and fix U-Boot for this SoC and shoul

Re: [PATCH v17 08/11] hw/vmapple/virtio-blk: Add support for apple virtio-blk

2025-01-15 Thread Akihiko Odaki
On 2025/01/13 6:00, Phil Dennis-Jordan wrote: From: Alexander Graf Apple has its own virtio-blk PCI device ID where it deviates from the official virtio-pci spec slightly: It puts a new "apple type" field at a static offset in config space and introduces a new barrier command. This patch first

Re: [PATCH v3 7/7] hw/xen: Fix errp handling in xen_console

2025-01-15 Thread David Woodhouse
On Wed, 2025-01-15 at 17:49 +0100, Anthony PERARD wrote: > > With those fixed: Reviewed-by: Anthony PERARD Thanks. I've pushed those changes and am watching the pipeline at https://gitlab.com/dwmw2/qemu/-/pipelines/1626804720 I'll probably send a pull request tomorrow. The patch now looks like