virtiofs queue
Peter Maydell
AppliedQuoted 11 lines · Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" <[email protected]>
The following changes since commit
b0ca999a43a22b38158a222233d3f5881648bb4f:Update version for v4.2.0 release (2019-12-12 16:45:57 +0000)
are available in the Git repository at:
git://github.com/dagrh/qemu.gittags/pull-virtiofs-20191213a
Quoted 8 lines
for you to fetch changes up to
366844f3d1329c6423dd752891a28ccb3ee8fddd:virtio-fs: fix MSI-X nvectors calculation (2019-12-13 10:53:57 +0000)
----------------------------------------------------------------
virtiofs pull 2019-12-13: Minor fixes and cleanupsCleanup from Marc-André and MSI-X fix from Stefan.
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/5.0
for any user-visible changes.
-- PMM
From: "Dr. David Alan Gilbert" <[email protected]>
The following changes since commit b0ca999a43a22b38158a222233d3f5881648bb4f:
Update version for v4.2.0 release (2019-12-12 16:45:57 +0000)
are available in the Git repository at:
git://github.com/dagrh/qemu.git tags/pull-virtiofs-20191213a
for you to fetch changes up to 366844f3d1329c6423dd752891a28ccb3ee8fddd:
virtio-fs: fix MSI-X nvectors calculation (2019-12-13 10:53:57 +0000)
----------------------------------------------------------------
virtiofs pull 2019-12-13: Minor fixes and cleanups
Cleanup from Marc-André and MSI-X fix from Stefan.
----------------------------------------------------------------
Marc-André Lureau (1):
vhost-user-fs: remove "vhostfd" property
Stefan Hajnoczi (1):
virtio-fs: fix MSI-X nvectors calculation
hw/virtio/vhost-user-fs-pci.c | 3 ++- hw/virtio/vhost-user-fs.c | 1 - include/hw/virtio/vhost-user-fs.h | 1 - 3 files changed, 2 insertions(+), 3 deletions(-)
[PULL 1/2] vhost-user-fs: remove "vhostfd" property
From: Marc-André Lureau <[email protected]>
The property doesn't make much sense for a vhost-user device.
Message-Id: <[email protected]>
--- hw/virtio/vhost-user-fs.c | 1 - include/hw/virtio/vhost-user-fs.h | 1 - 2 files changed, 2 deletions(-)
hw/virtio/vhost-user-fs.c +0 -1
@@ -263,7 +263,6 @@ static Property vuf_properties[] = {DEFINE_PROP_UINT16 ("num-request-queues" , VHostUserFS, conf.num_request_queues,1 ),DEFINE_PROP_UINT16 ("queue-size" , VHostUserFS, conf.queue_size,128 ), -DEFINE_PROP_STRING ("vhostfd" , VHostUserFS, conf.vhostfd), DEFINE_PROP_END_OF_LIST(), };
include/hw/virtio/vhost-user-fs.h +0 -1
@@ -28,7 +28,6 @@ typedef struct {char *tag;uint16_t num_request_queues;uint16_t queue_size; -char *vhostfd; } VHostUserFSConf; typedef struct {
Signature · 1 line
2.23.0
[PULL 2/2] virtio-fs: fix MSI-X nvectors calculation
In reply to Dr. David Alan Gilbert (git)From: Stefan Hajnoczi <[email protected]>
The following MSI-X vectors are required:
* VIRTIO Configuration Change
* hiprio virtqueue
* requests virtqueues
Fix the calculation to reserve enough MSI-X vectors. Otherwise guest drivers fall back to a sub-optional configuration where all virtqueues share a single vector.
This change does not break live migration compatibility since vhost-user-fs-pci devices are not migratable yet.
Message-Id: <[email protected]>
--- hw/virtio/vhost-user-fs-pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
hw/virtio/vhost-user-fs-pci.c +2 -1
@@ -40,7 +40,8 @@ static void vhost_user_fs_pci_realize(VirtIOPCIProxy *vpci_dev, Error **errp)DeviceState *vdev =DEVICE (&dev->vdev);if (vpci_dev->nvectors ==DEV_NVECTORS_UNSPECIFIED ) { - vpci_dev->nvectors = dev->vdev.conf.num_request_queues +1 ; +/* Also reserve config change and hiprio queue vectors */ + vpci_dev->nvectors = dev->vdev.conf.num_request_queues +2 ; }qdev_set_parent_bus (vdev,BUS (&vpci_dev->bus));
Signature · 1 line
2.23.0