|
|
28f2e1 |
From f9643b6934657292aae0b830627b1e5f9b8cbaa1 Mon Sep 17 00:00:00 2001
|
|
|
28f2e1 |
From: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
28f2e1 |
Date: Tue, 19 Oct 2021 13:17:06 -0400
|
|
|
28f2e1 |
Subject: Fix virtio-net-pci* "vectors" compat
|
|
|
28f2e1 |
|
|
|
28f2e1 |
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
28f2e1 |
RH-MergeRequest: 77: 8.6/6.2 mt fixes
|
|
|
28f2e1 |
RH-Commit: [21/23] 8ad581932275d2698a99f31bec40b14f1dbd3d2e
|
|
|
28f2e1 |
RH-Bugzilla: 2026443
|
|
|
28f2e1 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
28f2e1 |
|
|
|
28f2e1 |
hw_compat_rhel_8_4 has an issue: it affects only "virtio-net-pci"
|
|
|
28f2e1 |
but not "virtio-net-pci-transitional" and
|
|
|
28f2e1 |
"virtio-net-pci-non-transitional". The solution is to use the
|
|
|
28f2e1 |
"virtio-net-pci-base" type in compat_props.
|
|
|
28f2e1 |
|
|
|
28f2e1 |
An equivalent fix will be submitted for hw_compat_5_2 upstream.
|
|
|
28f2e1 |
|
|
|
28f2e1 |
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
28f2e1 |
(cherry picked from commit d45823ab0d0138b2fbaf2ed1e1896d2052f3ccb3)
|
|
|
28f2e1 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
28f2e1 |
---
|
|
|
28f2e1 |
hw/core/machine.c | 6 +++++-
|
|
|
28f2e1 |
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
28f2e1 |
|
|
|
28f2e1 |
diff --git a/hw/core/machine.c b/hw/core/machine.c
|
|
|
28f2e1 |
index 736c765c30..024b025fc2 100644
|
|
|
28f2e1 |
--- a/hw/core/machine.c
|
|
|
28f2e1 |
+++ b/hw/core/machine.c
|
|
|
28f2e1 |
@@ -71,7 +71,11 @@ GlobalProperty hw_compat_rhel_8_4[] = {
|
|
|
28f2e1 |
/* hw_compat_rhel_8_4 from hw_compat_5_2 */
|
|
|
28f2e1 |
{ "virtio-blk-device", "report-discard-granularity", "off" },
|
|
|
28f2e1 |
/* hw_compat_rhel_8_4 from hw_compat_5_2 */
|
|
|
28f2e1 |
- { "virtio-net-pci", "vectors", "3"},
|
|
|
28f2e1 |
+ /*
|
|
|
28f2e1 |
+ * Upstream incorrectly had "virtio-net-pci" instead of "virtio-net-pci-base",
|
|
|
28f2e1 |
+ * (https://bugzilla.redhat.com/show_bug.cgi?id=1999141)
|
|
|
28f2e1 |
+ */
|
|
|
28f2e1 |
+ { "virtio-net-pci-base", "vectors", "3"},
|
|
|
28f2e1 |
};
|
|
|
28f2e1 |
const size_t hw_compat_rhel_8_4_len = G_N_ELEMENTS(hw_compat_rhel_8_4);
|
|
|
28f2e1 |
|
|
|
28f2e1 |
--
|
|
|
28f2e1 |
2.27.0
|
|
|
28f2e1 |
|