yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
b697b4
From ef5afcc86dc44d1c9d3030a8ceca2018df86c6ec Mon Sep 17 00:00:00 2001
b697b4
From: Eduardo Habkost <ehabkost@redhat.com>
b697b4
Date: Tue, 19 Oct 2021 13:17:06 -0400
b697b4
Subject: Fix virtio-net-pci* "vectors" compat
b697b4
b697b4
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
b697b4
RH-MergeRequest: 76: 9.0/6.2.0-rc1 x86 machine type fixes
b697b4
RH-Commit: [20/22] ebb570f053f96d3558bac49962dc7dc88296c207
b697b4
RH-Bugzilla: 2025468
b697b4
RH-Acked-by: quintela1 <quintela@redhat.com>
b697b4
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
b697b4
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
b697b4
b697b4
hw_compat_rhel_8_4 has an issue: it affects only "virtio-net-pci"
b697b4
but not "virtio-net-pci-transitional" and
b697b4
"virtio-net-pci-non-transitional".  The solution is to use the
b697b4
"virtio-net-pci-base" type in compat_props.
b697b4
b697b4
An equivalent fix will be submitted for hw_compat_5_2 upstream.
b697b4
b697b4
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
b697b4
(cherry picked from commit d45823ab0d0138b2fbaf2ed1e1896d2052f3ccb3)
b697b4
---
b697b4
 hw/core/machine.c | 6 +++++-
b697b4
 1 file changed, 5 insertions(+), 1 deletion(-)
b697b4
b697b4
diff --git a/hw/core/machine.c b/hw/core/machine.c
b697b4
index 53a3caf4fb..448a8dd127 100644
b697b4
--- a/hw/core/machine.c
b697b4
+++ b/hw/core/machine.c
b697b4
@@ -69,7 +69,11 @@ GlobalProperty hw_compat_rhel_8_4[] = {
b697b4
     /* hw_compat_rhel_8_4 from hw_compat_5_2 */
b697b4
     { "virtio-blk-device", "report-discard-granularity", "off" },
b697b4
     /* hw_compat_rhel_8_4 from hw_compat_5_2 */
b697b4
-    { "virtio-net-pci", "vectors", "3"},
b697b4
+    /*
b697b4
+     * Upstream incorrectly had "virtio-net-pci" instead of "virtio-net-pci-base",
b697b4
+     * (https://bugzilla.redhat.com/show_bug.cgi?id=1999141)
b697b4
+     */
b697b4
+    { "virtio-net-pci-base", "vectors", "3"},
b697b4
 };
b697b4
 const size_t hw_compat_rhel_8_4_len = G_N_ELEMENTS(hw_compat_rhel_8_4);
b697b4
 
b697b4
-- 
b697b4
2.27.0
b697b4