yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
26ba25
From 0fc66274cc8e22929a39e17b8d2280b222f1ae63 Mon Sep 17 00:00:00 2001
26ba25
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
26ba25
Date: Fri, 14 Dec 2018 18:20:56 +0000
26ba25
Subject: [PATCH 4/5] pc: x-migrate-smi-count to PC_RHEL_COMPAT
26ba25
26ba25
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
26ba25
Message-id: <20181214182056.20233-3-dgilbert@redhat.com>
26ba25
Patchwork-id: 83521
26ba25
O-Subject: [RHEL8 qemu-kvm PATCH 2/2] pc: x-migrate-smi-count to PC_RHEL_COMPAT
26ba25
Bugzilla: 1659565
26ba25
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
26ba25
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
26ba25
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
26ba25
26ba25
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
26ba25
26ba25
MSR_SMI_COUNT started being migrated in QEMU 2.12 and in the 2.12
26ba25
release this broke back migration to earlier versions;  however
26ba25
that didn't cause a problem on RHEL because it also relied on newer
26ba25
kernel features that RHEL 7.* doesn't have.
26ba25
26ba25
QEMU 3.0 got a fix (in PC_COMPAT_2_11) to fix the 2.12->earlier
26ba25
breakage, but given the kernel dependency, it makes more sense
26ba25
for us to tie it to 8.* machine types and keep the feature off for
26ba25
all 7.* machine types.
26ba25
26ba25
In the 2.12 world we're doing this in PC_RHEL_COMPAT.
26ba25
26ba25
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
26ba25
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
26ba25
---
26ba25
 include/hw/i386/pc.h | 5 +++++
26ba25
 1 file changed, 5 insertions(+)
26ba25
26ba25
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
26ba25
index dd473ca..244d7b5 100644
26ba25
--- a/include/hw/i386/pc.h
26ba25
+++ b/include/hw/i386/pc.h
26ba25
@@ -976,6 +976,11 @@ extern void igd_passthrough_isa_bridge_create(PCIBus *bus, uint16_t gpu_dev_id);
26ba25
             .driver = "vfio-pci",\
26ba25
             .property = "x-no-geforce-quirks",\
26ba25
             .value = "on",\
26ba25
+        },\
26ba25
+        { /* PC_RHEL_COMPAT from PC_COMPAT_2_11 bz 1659565 */ \
26ba25
+            .driver   = TYPE_X86_CPU,\
26ba25
+            .property = "x-migrate-smi-count",\
26ba25
+            .value    = "off",\
26ba25
         },
26ba25
 
26ba25
 /* Similar to PC_COMPAT_2_11 + PC_COMPAT_2_10, but:
26ba25
-- 
26ba25
1.8.3.1
26ba25