summary refs log tree commit diff stats
path: root/hw/core
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2025-01-28 19:57:04 +0100
committerThomas Huth <thuth@redhat.com>2025-01-30 10:39:37 +0100
commit03248e714b0dc95f13221cfd4496cbdfa118e114 (patch)
treea224d4a03bb771e88bd583a850430e3ee3d1931e /hw/core
parentfe638ae67bf804aeaeb3360675e88f233eb24604 (diff)
downloadfocaccia-qemu-03248e714b0dc95f13221cfd4496cbdfa118e114.tar.gz
focaccia-qemu-03248e714b0dc95f13221cfd4496cbdfa118e114.zip
virtio-mem-pci: Allow setting nvectors, so we can use MSI-X
Let's do it similar as virtio-balloon-pci. With this change, we can
use virtio-mem-pci on s390x, although plugging will still fail until
properly wired up in the machine.

No need to worry about transitional/non_transitional devices, because they
don't exist for virtio-mem.

Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20250128185705.1609038-2-david@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'hw/core')
-rw-r--r--hw/core/machine.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/core/machine.c b/hw/core/machine.c
index 8f396ef803..7b74cde10a 100644
--- a/hw/core/machine.c
+++ b/hw/core/machine.c
@@ -41,6 +41,7 @@ GlobalProperty hw_compat_9_2[] = {
     { "virtio-balloon-pci", "vectors", "0" },
     { "virtio-balloon-pci-transitional", "vectors", "0" },
     { "virtio-balloon-pci-non-transitional", "vectors", "0" },
+    { "virtio-mem-pci", "vectors", "0" },
 };
 const size_t hw_compat_9_2_len = G_N_ELEMENTS(hw_compat_9_2);