thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

Blame SOURCES/kvm-virtio-rng-pci-fix-transitional-migration-compat-for.patch

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