Re: [PATCH v5 04/15] pcie: Add 1.2 version token for the Power Management Capability

2022-02-18 Thread Michael S. Tsirkin
On Thu, Feb 17, 2022 at 06:44:53PM +0100, Lukasz Maniak wrote: > From: Łukasz Gieryk > > Signed-off-by: Łukasz Gieryk Reviewed-by: Michael S. Tsirkin > --- > include/hw/pci/pci_regs.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/hw/pci/pci

Re: [PATCH v5 03/15] pcie: Add a helper to the SR/IOV API

2022-02-18 Thread Michael S. Tsirkin
On Thu, Feb 17, 2022 at 06:44:52PM +0100, Lukasz Maniak wrote: > From: Łukasz Gieryk > > Convenience function for retrieving the PCIDevice object of the N-th VF. > > Signed-off-by: Łukasz Gieryk > Reviewed-by: Knut Omang Reviewed-by: Michael S. Tsirkin > --- &

Re: [PATCH v5 00/15] hw/nvme: SR-IOV with Virtualization Enhancements

2022-02-18 Thread Michael S. Tsirkin
On Thu, Feb 17, 2022 at 06:44:49PM +0100, Lukasz Maniak wrote: > Changes since v4: > - Added hello world example for SR-IOV to the docs > - Moved AER initialization from nvme_init_ctrl to nvme_init_state > - Fixed division by zero issue in calculation of vqfrt and vifrt > capabilities BTW you s

Re: [PATCH v11 0/8] hmp,qmp: Add commands to introspect virtio devices

2022-02-06 Thread Michael S. Tsirkin
On Thu, Jan 20, 2022 at 06:29:20AM -0500, Jonah Palmer wrote: > This series introduces new QMP/HMP commands to dump the status of a > virtio device at different levels. I dropped this patchset due to various build failures. Pls take a look at Peter's comments on the pull request to see some of the

[PULL v2 02/24] hw/i386: Add the possibility to disable the 'isapc' machine

2022-02-06 Thread Michael S. Tsirkin
-by: Philippe Mathieu-Daudé Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/pc_piix.c| 5 - tests/qtest/cdrom-test.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 7c7790a5ce..d9b344248d

[PULL 15/32] virtio: drop name parameter for virtio_init()

2022-02-04 Thread Michael S. Tsirkin
name parameter in the virtio_init function. [Jonah: added new virtio IDs to virtio device list from rebase]. Signed-off-by: Jonah Palmer Message-Id: <1642678168-20447-2-git-send-email-jonah.pal...@oracle.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- incl

[PULL 19/32] qmp: decode feature & status bits in virtio-status

2022-02-04 Thread Michael S. Tsirkin
n a separate field. Signed-off-by: Jonah Palmer Message-Id: <1642678168-20447-6-git-send-email-jonah.pal...@oracle.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- qapi/virtio.json | 156 ++--- include/hw/virtio/vhost.h | 3 + i

[PULL 02/32] hw/i386: Add the possibility to disable the 'isapc' machine

2022-02-04 Thread Michael S. Tsirkin
-by: Philippe Mathieu-Daudé Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/pc_piix.c| 5 - tests/qtest/cdrom-test.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 7c7790a5ce..d9b344248d

[PULL 16/32] virtio: add vhost support for virtio devices

2022-02-04 Thread Michael S. Tsirkin
to tell if its corresponding vhost device was active or not. Signed-off-by: Jonah Palmer Message-Id: <1642678168-20447-3-git-send-email-jonah.pal...@oracle.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/virtio/virtio.h | 3 +++ hw/block/vhost-user

[PULL v3 28/55] hw/vhost-user-blk: turn on VIRTIO_BLK_F_SIZE_MAX feature for virtio blk device

2022-01-07 Thread Michael S. Tsirkin
From: Andy Pei Turn on pre-defined feature VIRTIO_BLK_F_SIZE_MAX for virtio blk device to avoid guest DMA request sizes which are too large for hardware spec. Signed-off-by: Andy Pei Message-Id: <1641202092-149677-1-git-send-email-andy@intel.com> Reviewed-by: Michael S. Tsirkin Sign

[PULL v3 22/55] vhost-user-blk: propagate error return from generic vhost

2022-01-07 Thread Michael S. Tsirkin
From: Roman Kagan Fix the only callsite that doesn't propagate the error code from the generic vhost code. Signed-off-by: Roman Kagan Message-Id: <2021153354.18807-11-rvka...@yandex-team.ru> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Raph

[PULL v3 14/55] vhost-user-blk: reconnect on any error during realize

2022-01-07 Thread Michael S. Tsirkin
check for any error. This patch amends a527e312b5 "vhost-user-blk: Implement reconnection during realize". Signed-off-by: Roman Kagan Message-Id: <2021153354.18807-2-rvka...@yandex-team.ru> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Raph

[PULL v2 28/55] hw/vhost-user-blk: turn on VIRTIO_BLK_F_SIZE_MAX feature for virtio blk device

2022-01-07 Thread Michael S. Tsirkin
From: Andy Pei Turn on pre-defined feature VIRTIO_BLK_F_SIZE_MAX for virtio blk device to avoid guest DMA request sizes which are too large for hardware spec. Signed-off-by: Andy Pei Message-Id: <1641202092-149677-1-git-send-email-andy@intel.com> Reviewed-by: Michael S. Tsirkin Sign

[PULL v2 22/55] vhost-user-blk: propagate error return from generic vhost

2022-01-07 Thread Michael S. Tsirkin
From: Roman Kagan Fix the only callsite that doesn't propagate the error code from the generic vhost code. Signed-off-by: Roman Kagan Message-Id: <2021153354.18807-11-rvka...@yandex-team.ru> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Raph

[PULL v2 14/55] vhost-user-blk: reconnect on any error during realize

2022-01-07 Thread Michael S. Tsirkin
check for any error. This patch amends a527e312b5 "vhost-user-blk: Implement reconnection during realize". Signed-off-by: Roman Kagan Message-Id: <2021153354.18807-2-rvka...@yandex-team.ru> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Raph

[PULL 28/52] hw/vhost-user-blk: turn on VIRTIO_BLK_F_SIZE_MAX feature for virtio blk device

2022-01-06 Thread Michael S. Tsirkin
From: Andy Pei Turn on pre-defined feature VIRTIO_BLK_F_SIZE_MAX for virtio blk device to avoid guest DMA request sizes which are too large for hardware spec. Signed-off-by: Andy Pei Message-Id: <1641202092-149677-1-git-send-email-andy@intel.com> Reviewed-by: Michael S. Tsirkin Sign

[PULL 22/52] vhost-user-blk: propagate error return from generic vhost

2022-01-06 Thread Michael S. Tsirkin
From: Roman Kagan Fix the only callsite that doesn't propagate the error code from the generic vhost code. Signed-off-by: Roman Kagan Message-Id: <2021153354.18807-11-rvka...@yandex-team.ru> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Raph

[PULL 14/52] vhost-user-blk: reconnect on any error during realize

2022-01-06 Thread Michael S. Tsirkin
check for any error. This patch amends a527e312b5 "vhost-user-blk: Implement reconnection during realize". Signed-off-by: Roman Kagan Message-Id: <2021153354.18807-2-rvka...@yandex-team.ru> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Raph

Re: [PATCH v2 0/9] hw/dma: Use dma_addr_t type definition when relevant

2022-01-06 Thread Michael S. Tsirkin
On Tue, Jan 04, 2022 at 09:54:22AM +0100, Philippe Mathieu-Daudé wrote: > Since v1: > - Addressed David review comment (stick to dma_addr_t type) > - Addressed Peter review comment (incorrect doc string) PCI things: Reviewed-by: Michael S. Tsirkin who's merging all this? Y

Re: [PATCH v3 01/15] pcie: Add support for Single Root I/O Virtualization (SR/IOV)

2022-01-06 Thread Michael S. Tsirkin
On Tue, Dec 21, 2021 at 03:32:32PM +0100, Lukasz Maniak wrote: > From: Knut Omang > > This patch provides the building blocks for creating an SR/IOV > PCIe Extended Capability header and register/unregister > SR/IOV Virtual Functions. > > Signed-off-by: Knut Omang > --- > hw/pci/meson.build

Re: [PATCH 00/10] vhost: stick to -errno error return convention

2022-01-06 Thread Michael S. Tsirkin
On Thu, Nov 11, 2021 at 06:33:44PM +0300, Roman Kagan wrote: > Error propagation between the generic vhost code and the specific backends is > not quite consistent: some places follow "return -1 and set errno" convention, > while others assume "return negated errno". Furthermore, not enough care i

Re: [PATCH v2] hw/vhost-user-blk: turn on VIRTIO_BLK_F_SIZE_MAX feature for virtio blk device

2022-01-03 Thread Michael S. Tsirkin
On Mon, Jan 03, 2022 at 05:28:12PM +0800, Andy Pei wrote: > Turn on pre-defined feature VIRTIO_BLK_F_SIZE_MAX for virtio blk device to > avoid guest DMA request sizes which are too large for hardware spec. > > Signed-off-by: Andy Pei > --- Thanks! Notes for future submissions: - pls include ac

Re: [PATCH v10 0/8] hmp,qmp: Add commands to introspect virtio devices

2021-12-06 Thread Michael S. Tsirkin
On Mon, Dec 06, 2021 at 07:13:49PM +0100, Christian Schoenebeck wrote: > On Montag, 6. Dezember 2021 17:09:45 CET Jonah Palmer wrote: > > On 12/6/21 08:50, Christian Schoenebeck wrote: > > > On Montag, 6. Dezember 2021 13:43:18 CET Jonah Palmer wrote: > > >> This series introduces new QMP/HMP comma

Re: [PATCH 00/10] vhost: stick to -errno error return convention

2021-11-28 Thread Michael S. Tsirkin
On Thu, Nov 11, 2021 at 06:33:44PM +0300, Roman Kagan wrote: > Error propagation between the generic vhost code and the specific backends is > not quite consistent: some places follow "return -1 and set errno" convention, > while others assume "return negated errno". Furthermore, not enough care i

Re: [PATCH 2/2] virtio-blk: support BLKSECDISCARD

2021-11-15 Thread Michael S. Tsirkin
On Mon, Nov 15, 2021 at 12:52:00PM +0800, yadong...@intel.com wrote: > From: Yadong Qi > > Add new virtio feature: VIRTIO_BLK_F_SECDISCARD. > Add new virtio command: VIRTIO_BLK_T_SECDISCARD. > > This feature is disabled by default, it will check the backend > bs->open_flags & BDRV_O_SECDISCARD,

Re: [PATCH 00/10] vhost: stick to -errno error return convention

2021-11-11 Thread Michael S. Tsirkin
On Thu, Nov 11, 2021 at 06:33:44PM +0300, Roman Kagan wrote: > Error propagation between the generic vhost code and the specific backends is > not quite consistent: some places follow "return -1 and set errno" convention, > while others assume "return negated errno". Furthermore, not enough care i

Re: [PATCH 04/15] pcie: Add callback preceding SR-IOV VFs update

2021-10-15 Thread Michael S. Tsirkin
On Fri, Oct 15, 2021 at 06:24:14PM +0200, Lukasz Maniak wrote: > On Wed, Oct 13, 2021 at 05:10:35AM -0400, Michael S. Tsirkin wrote: > > On Tue, Oct 12, 2021 at 06:06:46PM +0200, Lukasz Maniak wrote: > > > On Tue, Oct 12, 2021 at 03:25:12AM -0400, Michael S. Tsirkin wrote: >

Re: [PATCH v2 00/15] qdev: Add JSON -device

2021-10-13 Thread Michael S. Tsirkin
> series, which destroys any type safety QOM provides and also can't > support non-scalar properties. This is a bug, but it turns out that > libvirt actually relies on it and passes only strings for everything. > So this series still leaves device_add alone until libvirt is fixed. Review

Re: [PATCH 04/15] pcie: Add callback preceding SR-IOV VFs update

2021-10-13 Thread Michael S. Tsirkin
On Tue, Oct 12, 2021 at 06:06:46PM +0200, Lukasz Maniak wrote: > On Tue, Oct 12, 2021 at 03:25:12AM -0400, Michael S. Tsirkin wrote: > > On Thu, Oct 07, 2021 at 06:23:55PM +0200, Lukasz Maniak wrote: > > > PCIe devices implementing SR-IOV may need to perform certain actions &g

Re: [PATCH 04/15] pcie: Add callback preceding SR-IOV VFs update

2021-10-12 Thread Michael S. Tsirkin
On Thu, Oct 07, 2021 at 06:23:55PM +0200, Lukasz Maniak wrote: > PCIe devices implementing SR-IOV may need to perform certain actions > before the VFs are unrealized or vice versa. > > Signed-off-by: Lukasz Maniak Callbacks are annoying and easy to misuse though. VFs are enabled through a config

Re: [PATCH 01/15] pcie: Set default and supported MaxReadReq to 512

2021-10-07 Thread Michael S. Tsirkin
On Thu, Oct 07, 2021 at 06:23:52PM +0200, Lukasz Maniak wrote: > From: Knut Omang > > Make the default PCI Express Capability for PCIe devices set > MaxReadReq to 512. code says 256 > Tyipcal modern devices people would want to typo > emulate or simulate would want this. The previous value w

Re: [PATCH v0 0/2] virtio-blk and vhost-user-blk cross-device migration

2021-10-06 Thread Michael S. Tsirkin
On Wed, Oct 06, 2021 at 03:27:59PM +0100, Dr. David Alan Gilbert wrote: > * Michael S. Tsirkin (m...@redhat.com) wrote: > > On Wed, Oct 06, 2021 at 02:29:37PM +0100, Dr. David Alan Gilbert wrote: > > > * Michael S. Tsirkin (m...@redhat.com) wrote: > > > > On Wed, Oc

Re: [PATCH v0 0/2] virtio-blk and vhost-user-blk cross-device migration

2021-10-06 Thread Michael S. Tsirkin
On Wed, Oct 06, 2021 at 02:29:37PM +0100, Dr. David Alan Gilbert wrote: > * Michael S. Tsirkin (m...@redhat.com) wrote: > > On Wed, Oct 06, 2021 at 09:43:52AM +0100, Dr. David Alan Gilbert wrote: > > > * Michael S. Tsirkin (m...@redhat.com) wrote: > > > > On Wed, Oc

Re: [PATCH v0 0/2] virtio-blk and vhost-user-blk cross-device migration

2021-10-06 Thread Michael S. Tsirkin
On Wed, Oct 06, 2021 at 09:43:52AM +0100, Dr. David Alan Gilbert wrote: > * Michael S. Tsirkin (m...@redhat.com) wrote: > > On Wed, Oct 06, 2021 at 09:28:50AM +0100, Dr. David Alan Gilbert wrote: > > > To me it feels the same as the distinction between vhost-kernel and qemu >

Re: [PATCH v0 0/2] virtio-blk and vhost-user-blk cross-device migration

2021-10-06 Thread Michael S. Tsirkin
On Wed, Oct 06, 2021 at 09:28:50AM +0100, Dr. David Alan Gilbert wrote: > To me it feels the same as the distinction between vhost-kernel and qemu > backended virtio that we get in net and others - in principal it's just > another implementation. In net it's actually like this. Same -device, a di

Re: [PATCH v0 0/2] virtio-blk and vhost-user-blk cross-device migration

2021-10-06 Thread Michael S. Tsirkin
On Wed, Oct 06, 2021 at 09:09:30AM +0100, Dr. David Alan Gilbert wrote: > * Michael S. Tsirkin (m...@redhat.com) wrote: > > On Tue, Oct 05, 2021 at 12:10:08PM -0400, Eduardo Habkost wrote: > > > On Tue, Oct 05, 2021 at 03:01:05PM +0100, Dr. David Alan Gilbert wrote: > > >

Re: [PATCH v0 0/2] virtio-blk and vhost-user-blk cross-device migration

2021-10-05 Thread Michael S. Tsirkin
On Tue, Oct 05, 2021 at 12:10:08PM -0400, Eduardo Habkost wrote: > On Tue, Oct 05, 2021 at 03:01:05PM +0100, Dr. David Alan Gilbert wrote: > > * Michael S. Tsirkin (m...@redhat.com) wrote: > > > On Tue, Oct 05, 2021 at 02:18:40AM +0300, Roman Kagan wrote: > > > > On M

Re: [PATCH v2 2/3] virtio: increase VIRTQUEUE_MAX_SIZE to 32k

2021-10-05 Thread Michael S. Tsirkin
On Tue, Oct 05, 2021 at 01:17:59PM +0200, Christian Schoenebeck wrote: > On Dienstag, 5. Oktober 2021 09:16:07 CEST Michael S. Tsirkin wrote: > > On Mon, Oct 04, 2021 at 09:38:08PM +0200, Christian Schoenebeck wrote: > > > Raise the maximum possible virtio transfer size t

Re: [PATCH v2 0/3] virtio: increase VIRTQUEUE_MAX_SIZE to 32k

2021-10-05 Thread Michael S. Tsirkin
On Tue, Oct 05, 2021 at 01:10:56PM +0200, Christian Schoenebeck wrote: > On Dienstag, 5. Oktober 2021 09:38:53 CEST David Hildenbrand wrote: > > On 04.10.21 21:38, Christian Schoenebeck wrote: > > > At the moment the maximum transfer size with virtio is limited to 4M > > > (1024 * PAGE_SIZE). This

Re: [PATCH v2 2/3] virtio: increase VIRTQUEUE_MAX_SIZE to 32k

2021-10-05 Thread Michael S. Tsirkin
On Mon, Oct 04, 2021 at 09:38:08PM +0200, Christian Schoenebeck wrote: > Raise the maximum possible virtio transfer size to 128M > (more precisely: 32k * PAGE_SIZE). See previous commit for a > more detailed explanation for the reasons of this change. > > For not breaking any virtio user, all virt

Re: [PATCH v0 0/2] virtio-blk and vhost-user-blk cross-device migration

2021-10-04 Thread Michael S. Tsirkin
On Tue, Oct 05, 2021 at 02:18:40AM +0300, Roman Kagan wrote: > On Mon, Oct 04, 2021 at 11:11:00AM -0400, Michael S. Tsirkin wrote: > > On Mon, Oct 04, 2021 at 06:07:29PM +0300, Denis Plotnikov wrote: > > > It might be useful for the cases when a slow block layer should

Re: [PATCH v0 0/2] virtio-blk and vhost-user-blk cross-device migration

2021-10-04 Thread Michael S. Tsirkin
On Mon, Oct 04, 2021 at 06:07:29PM +0300, Denis Plotnikov wrote: > It might be useful for the cases when a slow block layer should be replaced > with a more performant one on running VM without stopping, i.e. with very low > downtime comparable with the one on migration. > > It's possible to achiv

Re: [PATCH v0 1/2] vhost-user-blk: add a new vhost-user-virtio-blk type

2021-10-04 Thread Michael S. Tsirkin
On Mon, Oct 04, 2021 at 06:07:30PM +0300, Denis Plotnikov wrote: > Adding the new vhost-user-blk type instead of modifying the existing one > is convenent. It ease to differ the new virtio-blk-compatible vhost-user-blk > device from the existing non-compatible one using qemu machinery without any >

Re: [PATCH v6 2/6] qmp: add QMP command x-debug-virtio-status

2021-09-03 Thread Michael S. Tsirkin
On Mon, Jul 12, 2021 at 06:35:33AM -0400, Jonah Palmer wrote: > From: Laurent Vivier > > This new command shows the status of a VirtIODevice > (features, endianness and number of virtqueues) > > Next patch will improve output by decoding feature bits. > > Signed-off-by: Laurent Vivier > Signed

Re: [PATCH v6 0/6] hmp,qmp: Add some commands to introspect virtio devices

2021-07-13 Thread Michael S. Tsirkin
n. Lastly, added display for the virtio device name in a > few of the qmp/hmp commands as well as relative indicies for vrings > (see patches 4/6, 6/6).] Acked-by: Michael S. Tsirkin needs to be either merged or acked by HMP maintainer. > 1. Main command > > HMP Only: &

[PULL 02/13] virtio: Clarify MR transaction optimization

2021-07-07 Thread Michael S. Tsirkin
start functions error path and in the stop functions. Signed-off-by: Greg Kurz Message-Id: <162125799728.1394228.339855768563326832.st...@bahia.lan> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Stefan Hajnoczi Reviewed-by: Stefan Hajnoczi Reviewed-by: Mic

Re: [PATCH v2 0/4] virtio: Improve boot time of virtio-scsi-pci and virtio-blk-pci

2021-05-17 Thread Michael S. Tsirkin
On Mon, May 17, 2021 at 10:32:59AM +0200, Greg Kurz wrote: > On Wed, 12 May 2021 17:05:53 +0100 > Stefan Hajnoczi wrote: > > > On Fri, May 07, 2021 at 06:59:01PM +0200, Greg Kurz wrote: > > > Now that virtio-scsi-pci and virtio-blk-pci map 1 virtqueue per vCPU, > > > a serious slow down may be ob

[PULL 09/16] virtio-blk: Configure all host notifiers in a single MR transaction

2021-05-14 Thread Michael S. Tsirkin
() must be called before virtio_bus_cleanup_host_notifier() because the latter might close ioeventfds that the transaction still assumes to be around when it commits. Signed-off-by: Greg Kurz Message-Id: <20210407143501.244343-3-gr...@kaod.org> Reviewed-by: Michael S. Tsirkin Signed-off-by: M

[PULL 08/16] virtio-blk: Fix rollback path in virtio_blk_data_plane_start()

2021-05-14 Thread Michael S. Tsirkin
lock: Add Error to blk_set_aio_context()") Cc: kw...@redhat.com Signed-off-by: Greg Kurz Reviewed-by: Stefan Hajnoczi Message-Id: <20210407143501.244343-2-gr...@kaod.org> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/block/dataplane/virtio-blk.c | 11

[PULL 04/16] virtio-blk: Constify VirtIOFeature feature_sizes[]

2021-05-14 Thread Michael S. Tsirkin
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20210511104157.2880306-3-phi...@redhat.com> --- hw/block/virtio-blk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index d28979efb8..f139cd7cc9 10

Re: [PATCH v2 0/6] vhost-user-blk: Error handling fixes during initialistion

2021-05-14 Thread Michael S. Tsirkin
ces that are presented differently to the guest than the backend > would expect and that don't work properly therefore. > > This series fixes some of these bugs. OK so where is this going? Kevin you said you will merge? If so Reviewed-by: Michael S. Tsirkin > v2: > - Fix erro

Re: [for-6.1 2/4] virtio-blk: Configure all host notifiers in a single MR transaction

2021-05-06 Thread Michael S. Tsirkin
On Wed, May 05, 2021 at 01:15:51PM +0200, Greg Kurz wrote: > On Wed, 5 May 2021 11:14:23 +0100 > Stefan Hajnoczi wrote: > > > On Wed, Apr 07, 2021 at 04:34:59PM +0200, Greg Kurz wrote: > > > This allows the virtio-blk-pci device to batch the setup of all its > > > host notifiers. This significant

Re: [PATCH v2 2/6] vhost-user-blk: Don't reconnect during initialisation

2021-05-04 Thread Michael S. Tsirkin
On Tue, May 04, 2021 at 12:57:29PM +0200, Kevin Wolf wrote: > Am 04.05.2021 um 11:44 hat Michael S. Tsirkin geschrieben: > > On Tue, May 04, 2021 at 11:27:12AM +0200, Kevin Wolf wrote: > > > Am 04.05.2021 um 10:59 hat Michael S. Tsirkin geschrieben: > > > > On Thu, Ap

Re: [PATCH v2 2/6] vhost-user-blk: Don't reconnect during initialisation

2021-05-04 Thread Michael S. Tsirkin
On Tue, May 04, 2021 at 11:27:12AM +0200, Kevin Wolf wrote: > Am 04.05.2021 um 10:59 hat Michael S. Tsirkin geschrieben: > > On Thu, Apr 29, 2021 at 07:13:12PM +0200, Kevin Wolf wrote: > > > This is a partial revert of commits 77542d43149 and bc79c87bcde. > > > >

Re: [PATCH v2 2/6] vhost-user-blk: Don't reconnect during initialisation

2021-05-04 Thread Michael S. Tsirkin
On Thu, Apr 29, 2021 at 07:13:12PM +0200, Kevin Wolf wrote: > This is a partial revert of commits 77542d43149 and bc79c87bcde. > > Usually, an error during initialisation means that the configuration was > wrong. Reconnecting won't make the error go away, but just turn the > error condition into a

Re: [PATCH for-6.0 v2 1/2] hw/block/nvme: fix invalid msix exclusive uninit

2021-04-26 Thread Michael S. Tsirkin
a subregion is added but it is not removed on exit which > >> causes a reference to linger and the drive to never be unlocked. > >> > >> Fixes: 1901b4967c3f ("hw/block/nvme: move msix table and pba to BAR 0") > >> Signed-off-by: Klaus Jensen Reviewed-b

Re: [PATCH v3 2/3] vhost-user-blk: perform immediate cleanup if disconnect on initialization

2021-04-21 Thread Michael S. Tsirkin
On Wed, Apr 21, 2021 at 07:13:24PM +0300, Denis Plotnikov wrote: > > On 21.04.2021 18:24, Kevin Wolf wrote: > > Am 25.03.2021 um 16:12 hat Denis Plotnikov geschrieben: > > > Commit 4bcad76f4c39 ("vhost-user-blk: delay vhost_user_blk_disconnect") > > > introduced postponing vhost_dev cleanup aiming

Re: [for-6.1 0/4] virtio: Improve boot time of virtio-scsi-pci and virtio-blk-pci

2021-04-19 Thread Michael S. Tsirkin
On Wed, Apr 07, 2021 at 04:34:57PM +0200, Greg Kurz wrote: > Now that virtio-scsi-pci and virtio-blk-pci map 1 virtqueue per vCPU, > a serious slow down may be observed on setups with a big enough number > of vCPUs. > > Exemple with a pseries guest on a bi-POWER9 socket system (128 HW threads): >

[PULL 1/9] vhost-user-blk: use different event handlers on initialization

2021-04-01 Thread Michael S. Tsirkin
e for choosing how to cleanup the device, instead we explicitly use the proper event handler depending on whether the device has been initialized. Signed-off-by: Denis Plotnikov Reviewed-by: Raphael Norwitz Message-Id: <20210325151217.262793-2-den-plotni...@yandex-team.ru> Reviewed-by: Michael

[PULL 3/9] vhost-user-blk: add immediate cleanup on shutdown

2021-04-01 Thread Michael S. Tsirkin
t an event handler. Signed-off-by: Denis Plotnikov Message-Id: <20210325151217.262793-4-den-plotni...@yandex-team.ru> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/block/vhost-user-blk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/vhost

[PULL 2/9] vhost-user-blk: perform immediate cleanup if disconnect on initialization

2021-04-01 Thread Michael S. Tsirkin
<20210325151217.262793-3-den-plotni...@yandex-team.ru> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/block/vhost-user-blk.c | 48 +++ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/hw/block/vhost-user-blk.c b/hw

Re: [RFC 0/8] virtio: Improve boot time of virtio-scsi-pci and virtio-blk-pci

2021-03-25 Thread Michael S. Tsirkin
On Thu, Mar 25, 2021 at 04:07:27PM +0100, Greg Kurz wrote: > Now that virtio-scsi-pci and virtio-blk-pci map 1 virtqueue per vCPU, > a serious slow down may be observed on setups with a big enough number > of vCPUs. > > Exemple with a pseries guest on a bi-POWER9 socket system (128 HW threads): >

Re: [PATCH v3 01/12] vhost-user-blk: fix blkcfg->num_queues endianness

2021-02-23 Thread Michael S. Tsirkin
i > Reviewed-by: Raphael Norwitz > Reviewed-by: Michael S. Tsirkin okay but as we recently discovered config space can in theory be read before FEATURES_OK. Nasty, I know. Things kind of work right now but we really need some other path to notify backends when legacy guest is active. E.g. V

Re: [PATCH v3] virtio-blk: Respect discard granularity

2021-02-23 Thread Michael S. Tsirkin
On Tue, Feb 23, 2021 at 09:09:40PM +0900, Akihiko Odaki wrote: > Signed-off-by: Akihiko Odaki Acked-by: Michael S. Tsirkin whoever knows more about the detail here, feel free to merge. > --- > hw/block/virtio-blk.c | 8 +++- > hw/core/machine.c | 4 +++

Re: [PATCH 0/4] Remove the deprecated pc-1.x machine types and related stuff

2021-02-05 Thread Michael S. Tsirkin
On Wed, Feb 03, 2021 at 06:18:28PM +0100, Thomas Huth wrote: > The pc-1.x machine types have been deprecated since QEMU v5.0 already, and > nobody complained, so they can now be removed. While we're at it, also > remove some compatibility switches and related code that are now not > necessary anymo

Re: [PATCH v2 01/12] vhost-user-blk: fix blkcfg->num_queues endianness

2021-01-20 Thread Michael S. Tsirkin
ate_config() so feature negotiation has finished and > we know the endianness of the device. VIRTIO 1.0 devices are > little-endian, but in case someone wants to use legacy VIRTIO we support > all endianness cases. > > Signed-off-by: Stefan Hajnoczi Reviewed-by: Michael S. Tsirki

Re: [PATCH 4/4] tests/qtest: Only run fuzz-virtio-scsi when virtio-scsi is available

2021-01-17 Thread Michael S. Tsirkin
On Fri, Jan 15, 2021 at 04:09:36PM +0100, Philippe Mathieu-Daudé wrote: > This test fails when QEMU is built without the virtio-scsi device, > restrict it to its availability. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Michael S. Tsirkin Are you merging this

[PULL v2 48/65] libvhost-user: make it a meson subproject

2020-12-09 Thread Michael S. Tsirkin
3-6-marcandre.lur...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- contrib/vhost-user-gpu/vugpu.h| 2 +- include/qemu/vhost-user-server.h | 2 +- .../libvhost-user/libvhost-user-glib.h| 0 .../libvhost-user/libvhost-

[PULL v2 54/65] block/export: avoid g_return_val_if() input validation

2020-12-09 Thread Michael S. Tsirkin
Signed-off-by: Stefan Hajnoczi Message-Id: <20201118091644.199527-5-stefa...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- block/export/vhost-user-blk-server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/block/export/vhost-us

[PULL 48/66] libvhost-user: make it a meson subproject

2020-12-08 Thread Michael S. Tsirkin
3-6-marcandre.lur...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- contrib/vhost-user-gpu/vugpu.h| 2 +- include/qemu/vhost-user-server.h | 2 +- .../libvhost-user/libvhost-user-glib.h| 0 .../libvhost-user/libvhost-

[PULL 55/66] block/export: avoid g_return_val_if() input validation

2020-12-08 Thread Michael S. Tsirkin
Signed-off-by: Stefan Hajnoczi Message-Id: <20201118091644.199527-5-stefa...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- block/export/vhost-user-blk-server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/block/export/vhost-us

[PULL v2 2/7] meson: move vhost_user_blk_server to meson.build

2020-11-17 Thread Michael S. Tsirkin
x27;vhost_user_blk_server').disabled() or not have_system have_vhost_user_blk_server = false endif This patch does not change behavior. Signed-off-by: Stefan Hajnoczi Message-Id: <20201110171121.1265142-2-stefa...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-b

Re: [PATCH for-5.2 00/10] block/export: vhost-user-blk server tests and input validation

2020-11-17 Thread Michael S. Tsirkin
On Wed, Nov 11, 2020 at 12:43:21PM +, Stefan Hajnoczi wrote: > The vhost-user-blk server test was already in Michael Tsirkin's recent vhost > pull request, but was dropped because it exposed vhost-user regressions > (b7c1bd9d7848 and the Based-on tag below). Now that the vhost-user regressions

[PULL 02/17] meson: move vhost_user_blk_server to meson.build

2020-11-15 Thread Michael S. Tsirkin
x27;vhost_user_blk_server').disabled() or not have_system have_vhost_user_blk_server = false endif This patch does not change behavior. Signed-off-by: Stefan Hajnoczi Message-Id: <20201110171121.1265142-2-stefa...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-b

[PULL 15/17] block/export: port virtio-blk read/write range check

2020-11-15 Thread Michael S. Tsirkin
From: Stefan Hajnoczi Check that the sector number and byte count are valid. Signed-off-by: Stefan Hajnoczi Message-Id: <2020124331.1393747-11-stefa...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- block/export/vhost-user-blk-server.

[PULL 14/17] vhost-user-blk-test: test discard/write zeroes invalid inputs

2020-11-15 Thread Michael S. Tsirkin
From: Stefan Hajnoczi Exercise input validation code paths in block/export/vhost-user-blk-server.c. Signed-off-by: Stefan Hajnoczi Message-Id: <2020124331.1393747-10-stefa...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- block/export/vhost-us

[PULL 13/17] block/export: port virtio-blk discard/write zeroes input validation

2020-11-15 Thread Michael S. Tsirkin
hael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- block/export/vhost-user-blk-server.c | 115 +-- 1 file changed, 92 insertions(+), 23 deletions(-) diff --git a/block/export/vhost-user-blk-server.c b/block/export/vhost-user-blk-server.c index 62672d1cb9..3295d3c951

[PULL v3 29/31] block/export: make vhost-user-blk config space little-endian

2020-11-04 Thread Michael S. Tsirkin
: Stefan Hajnoczi Message-Id: <20201027173528.213464-4-stefa...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- block/export/vhost-user-blk-server.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/block/export/vhos

[PULL v3 28/31] configure: introduce --enable-vhost-user-blk-server

2020-11-04 Thread Michael S. Tsirkin
(previously known as "master") and not device backends (previously known as "slave"). Signed-off-by: Stefan Hajnoczi Message-Id: <20201027173528.213464-3-stefa...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- con

[PULL v3 30/31] block/export: fix vhost-user-blk get_config() information leak

2020-11-04 Thread Michael S. Tsirkin
From: Stefan Hajnoczi Refuse get_config() requests in excess of sizeof(struct virtio_blk_config). Signed-off-by: Stefan Hajnoczi Message-Id: <20201027173528.213464-5-stefa...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- block/export/vhost-us

[PULL v3 25/31] Revert "vhost-blk: set features before setting inflight feature"

2020-11-04 Thread Michael S. Tsirkin
r-blk-pci,id=drv0,chardev=char1,addr=4.0 \ -object memory-backend-memfd,id=mem,size=1G,share=on \ -M memory-backend=mem,accel=kvm \ -chardev socket,id=char1,path=/tmp/vhost-user-blk.sock Segmentation fault (core dumped) Cc: Jin Yu Cc: Raphael Norwitz Cc: Michael S. Ts

[PULL v3 26/31] vhost-blk: set features before setting inflight feature

2020-11-04 Thread Michael S. Tsirkin
From: Jin Yu Virtqueue has split and packed, so before setting inflight, you need to inform the back-end virtqueue format. Signed-off-by: Jin Yu Acked-by: Raphael Norwitz Message-Id: <20201103123617.28256-1-jin...@intel.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. T

[PULL v2 26/38] vhost-blk: set features before setting inflight feature

2020-11-03 Thread Michael S. Tsirkin
From: Jin Yu Virtqueue has split and packed, so before setting inflight, you need to inform the back-end virtqueue format. Signed-off-by: Jin Yu Acked-by: Raphael Norwitz Message-Id: <20201103123617.28256-1-jin...@intel.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. T

[PULL v2 30/38] block/export: fix vhost-user-blk get_config() information leak

2020-11-03 Thread Michael S. Tsirkin
From: Stefan Hajnoczi Refuse get_config() requests in excess of sizeof(struct virtio_blk_config). Signed-off-by: Stefan Hajnoczi Message-Id: <20201027173528.213464-5-stefa...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- block/export/vhost-us

[PULL v2 28/38] configure: introduce --enable-vhost-user-blk-server

2020-11-03 Thread Michael S. Tsirkin
(previously known as "master") and not device backends (previously known as "slave"). Signed-off-by: Stefan Hajnoczi Message-Id: <20201027173528.213464-3-stefa...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- con

[PULL v2 29/38] block/export: make vhost-user-blk config space little-endian

2020-11-03 Thread Michael S. Tsirkin
: Stefan Hajnoczi Message-Id: <20201027173528.213464-4-stefa...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- block/export/vhost-user-blk-server.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/block/export/vhos

[PULL v2 25/38] Revert "vhost-blk: set features before setting inflight feature"

2020-11-03 Thread Michael S. Tsirkin
r-blk-pci,id=drv0,chardev=char1,addr=4.0 \ -object memory-backend-memfd,id=mem,size=1G,share=on \ -M memory-backend=mem,accel=kvm \ -chardev socket,id=char1,path=/tmp/vhost-user-blk.sock Segmentation fault (core dumped) Cc: Jin Yu Cc: Raphael Norwitz Cc: Michael S. Ts

Re: [PATCH] Revert "vhost-blk: set features before setting inflight feature"

2020-11-03 Thread Michael S. Tsirkin
On Tue, Nov 03, 2020 at 02:41:30PM +, Stefan Hajnoczi wrote: > On Tue, Nov 03, 2020 at 05:11:18AM +, Yu, Jin wrote: > > I have sent a version 2 and it should fix this issue. > > Great, thanks! Michael can review and consider it for merge instead of > this patch. > > Stefan It's not i

[PULL 29/38] block/export: make vhost-user-blk config space little-endian

2020-11-03 Thread Michael S. Tsirkin
: Stefan Hajnoczi Message-Id: <20201027173528.213464-4-stefa...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- block/export/vhost-user-blk-server.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/block/export/vhos

[PULL 28/38] configure: introduce --enable-vhost-user-blk-server

2020-11-03 Thread Michael S. Tsirkin
(previously known as "master") and not device backends (previously known as "slave"). Signed-off-by: Stefan Hajnoczi Message-Id: <20201027173528.213464-3-stefa...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- con

[PULL 30/38] block/export: fix vhost-user-blk get_config() information leak

2020-11-03 Thread Michael S. Tsirkin
From: Stefan Hajnoczi Refuse get_config() requests in excess of sizeof(struct virtio_blk_config). Signed-off-by: Stefan Hajnoczi Message-Id: <20201027173528.213464-5-stefa...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- block/export/vhost-us

[PULL 26/38] vhost-blk: set features before setting inflight feature

2020-11-03 Thread Michael S. Tsirkin
From: Jin Yu Virtqueue has split and packed, so before setting inflight, you need to inform the back-end virtqueue format. Signed-off-by: Jin Yu Acked-by: Raphael Norwitz Message-Id: <20201103123617.28256-1-jin...@intel.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. T

[PULL 25/38] Revert "vhost-blk: set features before setting inflight feature"

2020-11-03 Thread Michael S. Tsirkin
r-blk-pci,id=drv0,chardev=char1,addr=4.0 \ -object memory-backend-memfd,id=mem,size=1G,share=on \ -M memory-backend=mem,accel=kvm \ -chardev socket,id=char1,path=/tmp/vhost-user-blk.sock Segmentation fault (core dumped) Cc: Jin Yu Cc: Raphael Norwitz Cc: Michael S. Ts

Re: [PATCH 00/12] block/export: vhost-user-blk server cleanups and tests

2020-11-02 Thread Michael S. Tsirkin
On Fri, Oct 30, 2020 at 08:42:22AM -0400, Michael S. Tsirkin wrote: > On Tue, Oct 27, 2020 at 05:35:16PM +, Stefan Hajnoczi wrote: > > This patch series solves some issues with the new vhost-user-blk-server and > > adds the qtest test case. The test case was not included in t

[PULL 13/15] vhost-blk: set features before setting inflight feature

2020-10-30 Thread Michael S. Tsirkin
From: Jin Yu Virtqueue has split and packed, so before setting inflight, you need to inform the back-end virtqueue format. Signed-off-by: Jin Yu Message-Id: <20200910134851.7817-1-jin...@intel.com> Acked-by: Raphael Norwitz Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. T

[PULL 13/15] vhost-blk: set features before setting inflight feature

2020-10-30 Thread Michael S. Tsirkin
From: Jin Yu Virtqueue has split and packed, so before setting inflight, you need to inform the back-end virtqueue format. Signed-off-by: Jin Yu Message-Id: <20200910134851.7817-1-jin...@intel.com> Acked-by: Raphael Norwitz Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. T

Re: [PATCH 00/12] block/export: vhost-user-blk server cleanups and tests

2020-10-30 Thread Michael S. Tsirkin
On Tue, Oct 27, 2020 at 05:35:16PM +, Stefan Hajnoczi wrote: > This patch series solves some issues with the new vhost-user-blk-server and > adds the qtest test case. The test case was not included in the pull request > that introduced the vhost-user-blk server because of reliability issues tha

[PULL v4 06/48] vhost: recheck dev state in the vhost_migration_log routine

2020-09-29 Thread Michael S. Tsirkin
-Id: <9fbfba06791a87813fcee3e2315f0b904cc6789a.1599813294.git.dimas...@yandex-team.ru> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/virtio/vhost-user-blk.h | 10 ++ hw/block/vhost-user-blk.c | 19 --- hw/virtio/v

Re: [PATCH v5 0/7] vhost-user-blk: fix the migration issue and enhance qtests

2020-09-29 Thread Michael S. Tsirkin
On Sun, Sep 27, 2020 at 09:48:28AM +0300, Dima Stepanov wrote: > On Thu, Sep 24, 2020 at 07:26:14AM -0400, Michael S. Tsirkin wrote: > > On Fri, Sep 11, 2020 at 11:39:42AM +0300, Dima Stepanov wrote: > > > v4 -> v5: > > > - vhost: check queue state in

Re: [PATCH v5 0/7] vhost-user-blk: fix the migration issue and enhance qtests

2020-09-24 Thread Michael S. Tsirkin
On Fri, Sep 11, 2020 at 11:39:42AM +0300, Dima Stepanov wrote: > v4 -> v5: > - vhost: check queue state in the vhost_dev_set_log routine > tests/qtest/vhost-user-test: prepare the tests for adding new > dev class > tests/qtest/vhost-user-test: add support for the > vhost-user-blk

<    1   2   3   4   5   6   7   8   9   >