cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
76daa3
From d6ec65d1f9e766a233288a8ecec62ca757ed11f7 Mon Sep 17 00:00:00 2001
76daa3
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
76daa3
Date: Wed, 26 Apr 2017 15:48:49 +0200
76daa3
Subject: [PATCH 01/11] x86 machine compat: 2.9 stragglers
76daa3
76daa3
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
76daa3
Message-id: <20170426154849.7273-1-dgilbert@redhat.com>
76daa3
Patchwork-id: 74894
76daa3
O-Subject: [RHEL-7.4 qemu-kvm-rhev PATCH v2] x86 machine compat: 2.9 stragglers
76daa3
Bugzilla: 1435756
76daa3
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
76daa3
RH-Acked-by: Juan Quintela <quintela@redhat.com>
76daa3
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
76daa3
76daa3
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
76daa3
76daa3
upstream: Yes, various diffs
76daa3
76daa3
Some flag changes came in late in 2.9 and we hadn't picked them up yet
76daa3
76daa3
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
76daa3
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
76daa3
---
76daa3
 include/hw/compat.h  |  4 ++++
76daa3
 include/hw/i386/pc.h | 19 +++++++++++++++++--
76daa3
 2 files changed, 21 insertions(+), 2 deletions(-)
76daa3
76daa3
diff --git a/include/hw/compat.h b/include/hw/compat.h
76daa3
index b0c57ec..f85c1c2 100644
76daa3
--- a/include/hw/compat.h
76daa3
+++ b/include/hw/compat.h
76daa3
@@ -297,6 +297,10 @@
76daa3
             .driver   = "virtio-pci",\
76daa3
             .property = "page-per-vq",\
76daa3
             .value    = "on",\
76daa3
+        },{ /* HW_COMPAT_RHEL7_2 from HW_COMPAT_2_4 added in 2.9 */ \
76daa3
+            .driver   = "vmgenid",\
76daa3
+            .property = "x-write-pointer-available",\
76daa3
+            .value    = "off",\
76daa3
         },
76daa3
 
76daa3
 /* Mostly like HW_COMPAT_2_6 + HW_COMPAT_2_7 + HW_COMPAT_2_8 except
76daa3
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
76daa3
index 7cd1719..62ac914 100644
76daa3
--- a/include/hw/i386/pc.h
76daa3
+++ b/include/hw/i386/pc.h
76daa3
@@ -998,7 +998,7 @@ extern void igd_passthrough_isa_bridge_create(PCIBus *bus, uint16_t gpu_dev_id);
76daa3
 
76daa3
 #define PC_RHEL7_3_COMPAT \
76daa3
         HW_COMPAT_RHEL7_3 \
76daa3
-        { /* PC_RHEL7_3_COMPAT from PC_COMPAT_2_7 */ \
76daa3
+        { /* PC_RHEL7_3_COMPAT from PC_COMPAT_2_8 */ \
76daa3
              .driver   = "kvmclock",\
76daa3
              .property = "x-mach-use-reliable-get-clock",\
76daa3
              .value    = "off",\
76daa3
@@ -1038,7 +1038,22 @@ extern void igd_passthrough_isa_bridge_create(PCIBus *bus, uint16_t gpu_dev_id);
76daa3
             .property = "cpuid-0xb",\
76daa3
             .value    = "off",\
76daa3
         },\
76daa3
-        { /* PC_RHEL7_3_COMPAT */ \
76daa3
+        { /* PC_RHEL7_3_COMPAT from PC_COMPAT_2_8 */ \
76daa3
+            .driver   = "ICH9-LPC",\
76daa3
+            .property = "x-smi-broadcast",\
76daa3
+            .value    = "off",\
76daa3
+        },\
76daa3
+        { /* PC_RHEL7_3_COMPAT from PC_COMPAT_2_8 */ \
76daa3
+            .driver   = TYPE_X86_CPU,\
76daa3
+            .property = "vmware-cpuid-freq",\
76daa3
+            .value    = "off",\
76daa3
+        },\
76daa3
+        { /* PC_RHEL7_3_COMPAT from PC_COMPAT_2_8 */ \
76daa3
+            .driver   = "Haswell-" TYPE_X86_CPU,\
76daa3
+            .property = "stepping",\
76daa3
+            .value    = "1",\
76daa3
+        },\
76daa3
+        { /* PC_RHEL7_3_COMPAT from PC_COMPAT_2_3 added in 2.9 */ \
76daa3
             .driver = TYPE_X86_CPU,\
76daa3
             .property = "kvm-no-smi-migration",\
76daa3
             .value    = "on",\
76daa3
-- 
76daa3
1.8.3.1
76daa3