thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone
7f1c5b
From 5413b8825db6eecc6f245854a6bce58e4dee3294 Mon Sep 17 00:00:00 2001
7f1c5b
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
7f1c5b
Date: Tue, 7 Feb 2023 17:57:39 +0000
7f1c5b
Subject: [PATCH 20/20] virtio-rng-pci: fix transitional migration compat for
7f1c5b
 vectors
7f1c5b
7f1c5b
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
7f1c5b
RH-MergeRequest: 147: virtio-rng-pci: fix transitional migration compat for vectors
7f1c5b
RH-Bugzilla: 2162569
7f1c5b
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
7f1c5b
RH-Acked-by: Thomas Huth <thuth@redhat.com>
7f1c5b
RH-Acked-by: Gerd Hoffmann <kraxel@redhat.com>
7f1c5b
RH-Commit: [1/1] 6e2bd111cd56808fccf2c0464a40f7784fd893a2 (dagrh/c-9-s-qemu-kvm)
7f1c5b
7f1c5b
In upstream bad9c5a5166/downstream 46e08bafe9ed  I fixed the virito-rng-pci
7f1c5b
migration compatibility, but it was discovered that we also need to fix
7f1c5b
the other aliases of the device for the transitional cases.
7f1c5b
7f1c5b
I've sent upstream:
7f1c5b
https://lists.gnu.org/archive/html/qemu-devel/2023-02/msg01926.html
7f1c5b
but downstream we need to change the downstream machine type anyway,
7f1c5b
so it's not quite identical.
7f1c5b
7f1c5b
Fixes: 9ea02e8f1 ('virtio-rng-pci: Allow setting nvectors, so we can use MSI-X')
7f1c5b
7f1c5b
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
7f1c5b
---
7f1c5b
 hw/core/machine.c | 3 +++
7f1c5b
 1 file changed, 3 insertions(+)
7f1c5b
7f1c5b
diff --git a/hw/core/machine.c b/hw/core/machine.c
7f1c5b
index 7adbac6f87..3ee638394b 100644
7f1c5b
--- a/hw/core/machine.c
7f1c5b
+++ b/hw/core/machine.c
7f1c5b
@@ -58,6 +58,9 @@ GlobalProperty hw_compat_rhel_9_1[] = {
7f1c5b
   { "virtio-device", "queue_reset", "false" },
7f1c5b
   /* hw_compat_rhel_9_1 bz 2155749 */
7f1c5b
   { "virtio-rng-pci", "vectors", "0" },
7f1c5b
+  /* hw_compat_rhel_9_1 bz 2162569 */
7f1c5b
+  { "virtio-rng-pci-transitional", "vectors", "0" },
7f1c5b
+  { "virtio-rng-pci-non-transitional", "vectors", "0" },
7f1c5b
 };
7f1c5b
 const size_t hw_compat_rhel_9_1_len = G_N_ELEMENTS(hw_compat_rhel_9_1);
7f1c5b
 
7f1c5b
-- 
7f1c5b
2.31.1
7f1c5b