[PATCH v7 06/17] eepro100: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. This behavior is appropriate here because all of the capabilities set in this device are defined in the program and their overlap should not happen unless there is a programming error. Signed-off-by: Akihiko Odaki

[PATCH v7 16/17] virtio-pci: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. This behavior is appropriate here because all of the capabilities set in this device are defined in the program and their overlap should not happen unless there is a programming error. Signed-off-by: Akihiko Odaki

[PATCH v7 11/17] pci/shpc: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. A caller of shpc_init(), which calls pci_add_capability() in turn, is expected to ensure that will not happen. Signed-off-by: Akihiko Odaki --- hw/pci-bridge/pci_bridge_dev.c | 2 +-

[PATCH v7 13/17] pci/slotid: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. A caller of slotid_cap_init(), which calls pci_add_capability() in turn, is expected to ensure that will not happen. Signed-off-by: Akihiko Odaki --- hw/pci/slotid_cap.c | 8 ++-- 1 file changed, 2

[PATCH v7 08/17] msi: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. A caller of msi_init(), which calls pci_add_capability() in turn, is expected to ensure that will not happen. Signed-off-by: Akihiko Odaki --- hw/pci/msi.c | 9 + 1 file changed, 1 insertion(+), 8

[PATCH v7 12/17] msix: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. A caller of msix_init(), which calls pci_add_capability() in turn, is expected to ensure that will not happen. Signed-off-by: Akihiko Odaki --- hw/pci/msix.c | 8 ++-- 1 file changed, 2 insertions(+), 6

[PATCH v7 15/17] hw/vfio/pci: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
The code generating errors in pci_add_capability has a comment which says: > Verify that capabilities don't overlap. Note: device assignment > depends on this check to verify that the device is not broken. > Should never trigger for emulated devices, but it's helpful for > debugging these.

[PATCH v7 17/17] pci: Remove legacy errp from pci_add_capability

2022-10-31 Thread Akihiko Odaki
Signed-off-by: Akihiko Odaki --- hw/pci/pci.c | 20 +--- include/hw/pci/pci.h | 12 ++-- 2 files changed, 7 insertions(+), 25 deletions(-) diff --git a/hw/pci/pci.c b/hw/pci/pci.c index 9e62c8e75d..b352a9c732 100644 --- a/hw/pci/pci.c +++ b/hw/pci/pci.c @@

[PATCH v7 14/17] hw/pci-bridge/pcie_pci_bridge: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. This behavior is appropriate heare because all of the capabilities set in this device are defined in the program and their overlap should not happen unless there is a programming error. Signed-off-by: Akihiko Odaki

[PATCH v7 05/17] e1000e: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. This behavior is appropriate here because all of the capabilities set in this device are defined in the program and their overlap should not happen unless there is a programming error. Signed-off-by: Akihiko Odaki

[PATCH v7 10/17] pcie: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. A caller of a PCIe function which calls pci_add_capability() in turn is expected to ensure that will not happen. Signed-off-by: Akihiko Odaki Acked-by: Jonathan Cameron (for CXL parts) --- docs/pcie_sriov.txt

[PATCH v7 07/17] hw/nvme: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. This behavior is appropriate here because all of the capabilities set in this device are defined in the program and their overlap should not happen unless there is a programming error. Signed-off-by: Akihiko Odaki

[PATCH v7 09/17] hw/pci/pci_bridge: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. A caller of pci_bridge_ssvid_init(), which calls pci_add_capability() in turn, is expected to ensure that will not happen. Signed-off-by: Akihiko Odaki --- hw/pci-bridge/i82801b11.c | 14 ++

[PATCH v7 00/17] pci: Abort if pci_add_capability fails

2022-10-31 Thread Akihiko Odaki
pci_add_capability appears most PCI devices. Its error handling required lots of code, and led to inconsistent behaviors such as: - passing error_abort - passing error_fatal - asserting the returned value - propagating the error to the caller - skipping the rest of the function - just ignoring

[PATCH v7 02/17] pci: Allow to omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
pci_add_capability appears most PCI devices. Its error handling required lots of code, and led to inconsistent behaviors such as: - passing error_abort - passing error_fatal - asserting the returned value - propagating the error to the caller - skipping the rest of the function - just ignoring

[PATCH v7 04/17] ahci: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. This behavior is appropriate here because all of the capabilities set in this device are defined in the program and their overlap should not happen unless there is a programming error. Signed-off-by: Akihiko Odaki

[PATCH v7 01/17] hw/vfio/pci: Ensure MSI and MSI-X do not overlap

2022-10-31 Thread Akihiko Odaki
pci_add_capability() checks whether capabilities overlap, and notifies its caller so that it can properly handle the case. However, in the most cases, the capabilities actually never overlap, and the interface incurred extra error handling code, which is often incorrect or suboptimal. For such

[PATCH v7 03/17] hw/i386/amd_iommu: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. This behavior is appropriate here because all of the capabilities set in this device are defined in the program and their overlap should not happen unless there is a programming error. Signed-off-by: Akihiko Odaki

Re: [PATCH 1/2] qpci_device_enable: Allow for command bits hardwired to 0

2022-10-31 Thread Michael S. Tsirkin
On Mon, Oct 24, 2022 at 09:46:20AM +, Lev Kujawski wrote: > Devices like the PIIX3/4 IDE controller do not support certain modes > of operation, such as memory space accesses, and indicate this lack of > support by hardwiring the applicable bits to zero. Extend the QEMU > PCI device testing

Re: [PATCH v4 2/3] io_uring: use LuringState from the running thread

2022-10-31 Thread Stefan Hajnoczi
On Mon, Oct 31, 2022 at 08:59:35AM -0400, Emanuele Giuseppe Esposito wrote: > Remove usage of aio_context_acquire by always submitting asynchronous > AIO to the current thread's LuringState. > > In order to prevent mistakes from the caller side, avoid passing LuringState > in

Re: [PATCH v4 3/3] thread-pool: use ThreadPool from the running thread

2022-10-31 Thread Stefan Hajnoczi
On Mon, Oct 31, 2022 at 08:59:36AM -0400, Emanuele Giuseppe Esposito wrote: > @@ -251,6 +247,9 @@ BlockAIOCB *thread_pool_submit_aio(ThreadPool *pool, Documentation must be added to explain that thread_pool_submit_aio(), thread_pool_submit_co(), and thread_pool_submit() must be called on the

Re: [PATCH v4 1/3] linux-aio: use LinuxAioState from the running thread

2022-10-31 Thread Stefan Hajnoczi
On Mon, Oct 31, 2022 at 08:59:34AM -0400, Emanuele Giuseppe Esposito wrote: > @@ -56,10 +59,8 @@ struct LinuxAioState { > io_context_t ctx; > EventNotifier e; > > -/* io queue for submit at batch. Protected by AioContext lock. */ > +/* All data is only used in one I/O thread.

Re: [PATCH] block/blkio: Tolerate device size changes

2022-10-31 Thread Stefan Hajnoczi
On Sat, Oct 29, 2022 at 01:20:31PM +0100, Alberto Faria wrote: > Some libblkio drivers may be able to work with regular files (e.g., > io_uring) or otherwise resizable devices. Conservatively set > BlockDriver::has_variable_length to true to ensure bdrv_nb_sectors() > always gives up-to-date

[PULL 2/3] block/blkio: Tolerate device size changes

2022-10-31 Thread Stefan Hajnoczi
From: Alberto Faria Some libblkio drivers may be able to work with regular files (e.g., io_uring) or otherwise resizable devices. Conservatively set BlockDriver::has_variable_length to true to ensure bdrv_nb_sectors() always gives up-to-date results. Also implement BlockDriver::bdrv_co_truncate

[PULL 0/3] Block patches

2022-10-31 Thread Stefan Hajnoczi
The following changes since commit 7208429223963c405c62fa2611398f1aa8033593: Merge tag 'mem-2022-10-28' of https://github.com/davidhildenbrand/qemu into staging (2022-10-30 18:31:59 -0400) are available in the Git repository at: https://gitlab.com/stefanha/qemu.git tags/block-pull-request

[PULL 3/3] block/blkio: Make driver nvme-io_uring take a "path" instead of a "filename"

2022-10-31 Thread Stefan Hajnoczi
From: Alberto Faria The nvme-io_uring driver expects a character special file such as /dev/ng0n1. Follow the convention of having a "filename" option when a regular file is expected, and a "path" option otherwise. This makes io_uring the only libblkio-based driver with a "filename" option, as

Re: [PATCH] block/blkio: Make driver nvme-io_uring take a "path" instead of a "filename"

2022-10-31 Thread Stefan Hajnoczi
On Sat, Oct 29, 2022 at 12:38:54AM +0100, Alberto Faria wrote: > The nvme-io_uring driver expects a character special file such as > /dev/ng0n1. Follow the convention of having a "filename" option when a > regular file is expected, and a "path" option otherwise. > > This makes io_uring the only

[PULL 1/3] block/blkio: Add virtio-blk-vfio-pci BlockDriver

2022-10-31 Thread Stefan Hajnoczi
From: Alberto Faria libblkio 1.1.0 [1] introduces a virtio-blk-vfio-pci driver, which accesses a virtio-blk PCI device using VFIO. Add a corresponding BlockDriver. [1] https://gitlab.com/libblkio/libblkio/-/tree/v1.1.0 Signed-off-by: Alberto Faria Message-id:

Re: [PATCH] block/blkio: Add virtio-blk-vfio-pci BlockDriver

2022-10-31 Thread Stefan Hajnoczi
On Fri, Oct 28, 2022 at 02:16:35PM +0100, Alberto Faria wrote: > libblkio 1.1.0 [1] introduces a virtio-blk-vfio-pci driver, which > accesses a virtio-blk PCI device using VFIO. Add a corresponding > BlockDriver. > > [1] https://gitlab.com/libblkio/libblkio/-/tree/v1.1.0 > > Signed-off-by:

Re: [PATCH] block/blkio: Make driver nvme-io_uring take a "path" instead of a "filename"

2022-10-31 Thread Stefan Hajnoczi
On Sat, Oct 29, 2022 at 10:50:40AM +0100, Alberto Faria wrote: > On Sat, Oct 29, 2022 at 7:05 AM Markus Armbruster wrote: > > Alberto Faria writes: > > > > > The nvme-io_uring driver expects a character special file such as > > > /dev/ng0n1. Follow the convention of having a "filename" option

Re: [RFC PATCH v5 2/6] hw/sd/sdhci: Map host controller interface in host endianess

2022-10-31 Thread Philippe Mathieu-Daudé
On 31/10/22 12:53, Philippe Mathieu-Daudé wrote: Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c index f9c5b58e6d..40f37694d5 100644 --- a/hw/sd/sdhci.c +++ b/hw/sd/sdhci.c @@ -1341,7

Re: [PATCH v5 6/6] hw/ppc/e500: Add Freescale eSDHC to e500plat

2022-10-31 Thread Philippe Mathieu-Daudé
On 31/10/22 16:12, Philippe Mathieu-Daudé wrote: On 31/10/22 12:54, Philippe Mathieu-Daudé wrote: From: Bernhard Beschow Adds missing functionality to e500plat machine which increases the chance of given "real" firmware images to access SD cards. Signed-off-by: Bernhard Beschow Message-Id:

Re: [PATCH v5 6/6] hw/ppc/e500: Add Freescale eSDHC to e500plat

2022-10-31 Thread Philippe Mathieu-Daudé
On 31/10/22 12:54, Philippe Mathieu-Daudé wrote: From: Bernhard Beschow Adds missing functionality to e500plat machine which increases the chance of given "real" firmware images to access SD cards. Signed-off-by: Bernhard Beschow Message-Id: <20221018210146.193159-8-shen...@gmail.com> [PMD:

Re: [PATCH v5 02/17] pci: Allow to omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
On 2022/10/29 7:35, Philippe Mathieu-Daudé wrote: On 28/10/22 14:26, Akihiko Odaki wrote: pci_add_capability appears most PCI devices. Its error handling required lots of code, and led to inconsistent behaviors such as: - passing error_abort - passing error_fatal - asserting the returned

[PATCH v6 14/17] hw/pci-bridge/pcie_pci_bridge: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. This behavior is appropriate heare because all of the capabilities set in this device are defined in the program and their overlap should not happen unless there is a programming error. Signed-off-by: Akihiko Odaki

[PATCH v6 07/17] hw/nvme: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. This behavior is appropriate here because all of the capabilities set in this device are defined in the program and their overlap should not happen unless there is a programming error. Signed-off-by: Akihiko Odaki

[PATCH v6 09/17] hw/pci/pci_bridge: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. A caller of pci_bridge_ssvid_init(), which calls pci_add_capability() in turn, is expected to ensure that will not happen. Signed-off-by: Akihiko Odaki --- hw/pci-bridge/i82801b11.c | 14 ++

[PATCH v6 12/17] msix: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. A caller of msix_init(), which calls pci_add_capability() in turn, is expected to ensure that will not happen. Signed-off-by: Akihiko Odaki --- hw/pci/msix.c | 8 ++-- 1 file changed, 2 insertions(+), 6

[PATCH v6 16/17] virtio-pci: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. This behavior is appropriate here because all of the capabilities set in this device are defined in the program and their overlap should not happen unless there is a programming error. Signed-off-by: Akihiko Odaki

[PATCH v6 13/17] pci/slotid: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. A caller of slotid_cap_init(), which calls pci_add_capability() in turn, is expected to ensure that will not happen. Signed-off-by: Akihiko Odaki --- hw/pci/slotid_cap.c | 8 ++-- 1 file changed, 2

[PATCH v6 01/17] hw/vfio/pci: Ensure MSI and MSI-X do not overlap

2022-10-31 Thread Akihiko Odaki
pci_add_capability() checks whether capabilities overlap, and notifies its caller so that it can properly handle the case. However, in the most cases, the capabilities actually never overlap, and the interface incurred extra error handling code, which is often incorrect or suboptimal. For such

Re: [PATCH v6 01/17] hw/vfio/pci: Ensure MSI and MSI-X do not overlap

2022-10-31 Thread Alex Williamson
On Mon, 31 Oct 2022 21:33:03 +0900 Akihiko Odaki wrote: > pci_add_capability() checks whether capabilities overlap, and notifies > its caller so that it can properly handle the case. However, in the > most cases, the capabilities actually never overlap, and the interface > incurred extra error

[PATCH v6 03/17] hw/i386/amd_iommu: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. This behavior is appropriate here because all of the capabilities set in this device are defined in the program and their overlap should not happen unless there is a programming error. Signed-off-by: Akihiko Odaki

Re: [PATCH v2] nbd/client: Use smarter assert

2022-10-31 Thread Eric Blake
On Mon, Oct 24, 2022 at 02:59:48PM +0300, Vladimir Sementsov-Ogievskiy wrote: > On 10/17/22 22:12, Eric Blake wrote: > > Assigning strlen() to a uint32_t and then asserting that it isn't too > > large doesn't catch the case of an input string 4G in length. > > Thankfully, the incoming strings can

[PATCH v6 06/17] eepro100: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. This behavior is appropriate here because all of the capabilities set in this device are defined in the program and their overlap should not happen unless there is a programming error. Signed-off-by: Akihiko Odaki

[PATCH v6 10/17] pcie: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. A caller of a PCIe function which calls pci_add_capability() in turn is expected to ensure that will not happen. Signed-off-by: Akihiko Odaki Acked-by: Jonathan Cameron (for CXL parts) --- docs/pcie_sriov.txt

[PATCH v6 08/17] msi: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. A caller of msi_init(), which calls pci_add_capability() in turn, is expected to ensure that will not happen. Signed-off-by: Akihiko Odaki --- hw/pci/msi.c | 9 + 1 file changed, 1 insertion(+), 8

Re: [PATCH v5 01/17] hw/vfio/pci: Ensure MSI and MSI-X do not overlap

2022-10-31 Thread Akihiko Odaki
On 2022/10/29 4:23, Alex Williamson wrote: On Sat, 29 Oct 2022 01:12:11 +0900 Akihiko Odaki wrote: On 2022/10/28 23:16, Alex Williamson wrote: On Fri, 28 Oct 2022 21:26:13 +0900 Akihiko Odaki wrote: vfio_add_std_cap() is designed to ensure that capabilities do not overlap, but it

[PATCH v6 04/17] ahci: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. This behavior is appropriate here because all of the capabilities set in this device are defined in the program and their overlap should not happen unless there is a programming error. Signed-off-by: Akihiko Odaki

[PATCH v4 2/3] io_uring: use LuringState from the running thread

2022-10-31 Thread Emanuele Giuseppe Esposito
Remove usage of aio_context_acquire by always submitting asynchronous AIO to the current thread's LuringState. In order to prevent mistakes from the caller side, avoid passing LuringState in luring_io_{plug/unplug} and luring_co_submit. Signed-off-by: Emanuele Giuseppe Esposito ---

Re: [PATCH v6 00/17] pci: Abort if pci_add_capability fails

2022-10-31 Thread Michael S. Tsirkin
On Mon, Oct 31, 2022 at 09:33:02PM +0900, Akihiko Odaki wrote: > pci_add_capability appears most PCI devices. Its error handling required > lots of code, and led to inconsistent behaviors such as: > - passing error_abort > - passing error_fatal > - asserting the returned value > - propagating the

[PATCH v6 11/17] pci/shpc: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. A caller of shpc_init(), which calls pci_add_capability() in turn, is expected to ensure that will not happen. Signed-off-by: Akihiko Odaki --- hw/pci-bridge/pci_bridge_dev.c | 2 +-

Re: [PULL 00/58] Block layer patches

2022-10-31 Thread Stefan Hajnoczi
Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/7.2 for any user-visible changes. signature.asc Description: PGP signature

[PATCH v6 00/17] pci: Abort if pci_add_capability fails

2022-10-31 Thread Akihiko Odaki
pci_add_capability appears most PCI devices. Its error handling required lots of code, and led to inconsistent behaviors such as: - passing error_abort - passing error_fatal - asserting the returned value - propagating the error to the caller - skipping the rest of the function - just ignoring

[PATCH v6 02/17] pci: Allow to omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
pci_add_capability appears most PCI devices. Its error handling required lots of code, and led to inconsistent behaviors such as: - passing error_abort - passing error_fatal - asserting the returned value - propagating the error to the caller - skipping the rest of the function - just ignoring

[PATCH v4 3/3] thread-pool: use ThreadPool from the running thread

2022-10-31 Thread Emanuele Giuseppe Esposito
Use qemu_get_current_aio_context() where possible, since we always submit work to the current thread anyways. We want to also be sure that the thread submitting the work is the same as the one processing the pool, to avoid adding synchronization to the pool list. Signed-off-by: Paolo Bonzini

Re: [PULL 00/13] Block patches

2022-10-31 Thread Stefan Hajnoczi
Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/7.2 for any user-visible changes. signature.asc Description: PGP signature

[PATCH v4 0/3] AioContext removal: LinuxAioState and ThreadPool

2022-10-31 Thread Emanuele Giuseppe Esposito
Just remove some AioContext lock in LinuxAioState and ThreadPool. Not related to anything specific, so I decided to send it as a separate patch. These patches are taken from Paolo's old draft series. --- v4: * add missing aio_context removal, and fix typo v3: * remove

[PULL 14/31] block/vvfat: Unify the mkdir() call

2022-10-31 Thread Alex Bennée
From: Bin Meng There is a difference in the mkdir() call for win32 and non-win32 platforms, and currently is handled in the codes with #ifdefs. glib provides a portable g_mkdir() API and we can use it to unify the codes without #ifdefs. Signed-off-by: Bin Meng Reviewed-by: Marc-André Lureau

[PATCH v4 1/3] linux-aio: use LinuxAioState from the running thread

2022-10-31 Thread Emanuele Giuseppe Esposito
From: Paolo Bonzini Remove usage of aio_context_acquire by always submitting asynchronous AIO to the current thread's LinuxAioState. In order to prevent mistakes from the caller side, avoid passing LinuxAioState in laio_io_{plug/unplug} and laio_co_submit. Signed-off-by: Paolo Bonzini

[PATCH v6 15/17] hw/vfio/pci: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
The code generating errors in pci_add_capability has a comment which says: > Verify that capabilities don't overlap. Note: device assignment > depends on this check to verify that the device is not broken. > Should never trigger for emulated devices, but it's helpful for > debugging these.

[PULL 68/86] hw/ide/piix: Ignore writes of hardwired PCI command register bits

2022-10-31 Thread Michael S. Tsirkin
From: Lev Kujawski One method to enable PCI bus mastering for IDE controllers, often used by x86 firmware, is to write 0x7 to the PCI command register. Neither the PIIX 3/4 specifications nor actual PIIX 3 hardware (a Tyan S1686D system) permit setting the Memory Space Enable (MSE) bit, thus

[PULL 69/86] msix: Assert that specified vector is in range

2022-10-31 Thread Michael S. Tsirkin
From: Akihiko Odaki There were several different ways to deal with the situation where the vector specified for a msix function is out of bound: - early return a function and keep progresssing - propagate the error to the caller - mark msix unusable - assert it is in bound - just ignore An

[PATCH v6 17/17] pci: Remove legacy errp from pci_add_capability

2022-10-31 Thread Akihiko Odaki
Signed-off-by: Akihiko Odaki --- hw/pci/pci.c | 29 +++-- include/hw/pci/pci.h | 12 ++-- 2 files changed, 9 insertions(+), 32 deletions(-) diff --git a/hw/pci/pci.c b/hw/pci/pci.c index 8ee2171011..8ff71e4553 100644 --- a/hw/pci/pci.c +++ b/hw/pci/pci.c

[PULL 33/86] vhost: Change the sequence of device start

2022-10-31 Thread Michael S. Tsirkin
From: Yajun Wu This patch is part of adding vhost-user vhost_dev_start support. The motivation is to improve backend configuration speed and reduce live migration VM downtime. Moving the device start routines after finishing all the necessary device and VQ configuration, further aligning to the

[PATCH v6 05/17] e1000e: Omit errp for pci_add_capability

2022-10-31 Thread Akihiko Odaki
Omitting errp for pci_add_capability() causes it to abort if capabilities overlap. This behavior is appropriate here because all of the capabilities set in this device are defined in the program and their overlap should not happen unless there is a programming error. Signed-off-by: Akihiko Odaki

Re: [PATCH v4 0/7] ppc/e500: Add support for two types of flash, cleanup

2022-10-31 Thread Philippe Mathieu-Daudé
Hi Daniel, On 26/10/22 19:18, Daniel Henrique Barboza wrote: Hi, Since this is being sent to qemu-ppc and has to do with e500 I decided to take a look. I acked the e500 related patches, 5 and 7. Patch 6 LGTM as well but I'd rather not ack it it's SD specific code. I'll send a PowerPC pull

Re: [PATCH v4 6/7] hw/sd/sdhci: Implement Freescale eSDHC device model

2022-10-31 Thread Philippe Mathieu-Daudé
On 30/10/22 12:46, Bernhard Beschow wrote: On Sun, Oct 30, 2022 at 1:10 AM Philippe Mathieu-Daudé mailto:phi...@linaro.org>> wrote: On 29/10/22 20:28, Bernhard Beschow wrote: > Am 29. Oktober 2022 13:04:00 UTC schrieb Bernhard Beschow mailto:shen...@gmail.com>>: >> Am 29.

[PATCH v5 4/6] docs/system/ppc/ppce500: Use qemu-system-ppc64 across the board(s)

2022-10-31 Thread Philippe Mathieu-Daudé
From: Bernhard Beschow The documentation suggests that there is a qemu-system-ppc32 binary while the 32 bit version is actually just named qemu-system-ppc. Settle on qemu-system-ppc64 which also works for 32 bit machines and causes less clutter in the documentation. Found-by: BALATON Zoltan

[PATCH v5 0/6] ppc/e500: Add support for two types of flash, cleanup

2022-10-31 Thread Philippe Mathieu-Daudé
This is a respin of Bernhard's v4 with Freescale eSDHC implemented as an 'UNIMP' region. See v4 cover here: https://lore.kernel.org/qemu-devel/20221018210146.193159-1-shen...@gmail.com/ Only tested with the ppce500 machine (no further regression testing). Since v4: - Do not rename ESDHC_*

[PATCH v5 1/6] hw/sd/sdhci: MMIO region is implemented in 32-bit accesses

2022-10-31 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sdhci.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c index 0e5e988927..f9c5b58e6d 100644 --- a/hw/sd/sdhci.c +++ b/hw/sd/sdhci.c @@ -1332,6 +1332,10 @@ sdhci_write(void *opaque, hwaddr offset, uint64_t val,

[PATCH v5 6/6] hw/ppc/e500: Add Freescale eSDHC to e500plat

2022-10-31 Thread Philippe Mathieu-Daudé
From: Bernhard Beschow Adds missing functionality to e500plat machine which increases the chance of given "real" firmware images to access SD cards. Signed-off-by: Bernhard Beschow Message-Id: <20221018210146.193159-8-shen...@gmail.com> [PMD: Simplify using

[PATCH v5 3/6] hw/block/pflash_cfi0{1, 2}: Error out if device length isn't a power of two

2022-10-31 Thread Philippe Mathieu-Daudé
From: Bernhard Beschow According to the JEDEC standard the device length is communicated to an OS as an exponent (power of two). Signed-off-by: Bernhard Beschow Reviewed-by: Bin Meng Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20221018210146.193159-3-shen...@gmail.com> Signed-off-by:

[PATCH v5 5/6] hw/ppc/e500: Implement pflash handling

2022-10-31 Thread Philippe Mathieu-Daudé
From: Bernhard Beschow Allows e500 boards to have their root file system reside on flash using only builtin devices located in the eLBC memory region. Note that the flash memory area is only created when a -pflash argument is given, and that the size is determined by the given file. The idea is

[RFC PATCH v5 2/6] hw/sd/sdhci: Map host controller interface in host endianess

2022-10-31 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c index f9c5b58e6d..40f37694d5 100644 --- a/hw/sd/sdhci.c +++ b/hw/sd/sdhci.c @@ -1341,7 +1341,7 @@ static const MemoryRegionOps sdhci_mmio_ops

Re: [PATCH] hw/block/nvme: re-enable NVMe PCI hotplug

2022-10-31 Thread Klaus Jensen
On Oct 21 14:59, Daniel Wagner wrote: > On Tue, Oct 18, 2022 at 10:15:57AM +0200, Daniel Wagner wrote: > > On Mon, Oct 10, 2022 at 07:15:08PM +0200, Klaus Jensen wrote: > > > This is all upstream. Namespaces with 'shared=on' *should* all be > > > automatically attached to any hotplugged controller

Re: [PATCH 0/7] nsis: gitlab-ci: Improve QEMU Windows installer packaging

2022-10-31 Thread Thomas Huth
On 29/10/2022 15.45, Bin Meng wrote: Hi Thomas, On Wed, Sep 21, 2022 at 8:24 PM Thomas Huth wrote: On 21/09/2022 14.18, Bin Meng wrote: Hi, On Thu, Sep 8, 2022 at 9:28 PM Bin Meng wrote: At present packaging the required DLLs of QEMU executables is a manual process, and error prone.