Blame SOURCES/kvm-Fix-x-hv-max-vps-compat-value-for-7.4-machine-type.patch

357786
From b6128137787bb3c5e05c41013cb4f6cf6c0edf6a Mon Sep 17 00:00:00 2001
357786
From: Miroslav Rezanina <mrezanin@redhat.com>
357786
Date: Thu, 31 May 2018 06:36:35 +0200
357786
Subject: [PATCH 1/9] Fix x-hv-max-vps compat value for 7.4 machine type
357786
357786
RH-Author: Miroslav Rezanina <mrezanin@redhat.com>
357786
Message-id: <1527748595-28488-1-git-send-email-mrezanin@redhat.com>
357786
Patchwork-id: 80541
357786
O-Subject: [RHEL qemu-kvm/qemu-kvm-rhev PATCH] Fix x-hv-max-vps compat value for 7.4 machine type
357786
Bugzilla: 1583959
357786
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
357786
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
357786
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
357786
357786
Commit b2f9f4fcaad9c64f4551ab1dbe9e474c3dc6b2b4 increased the limit of vcpus
357786
for windows guest. In addition, it keep old limit for older machine types.
357786
However, due to conflict was compatibility part incorrectly placed and
357786
we keep this limit for 7.3 and older machine types instead of 7.4 and older.
357786
357786
Moving the chunk to correct spot so we have correct limit.
357786
357786
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
357786
---
357786
 include/hw/i386/pc.h | 11 +++++------
357786
 1 file changed, 5 insertions(+), 6 deletions(-)
357786
357786
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
357786
index e94424f..d5a0827 100644
357786
--- a/include/hw/i386/pc.h
357786
+++ b/include/hw/i386/pc.h
357786
@@ -1003,9 +1003,13 @@ extern void igd_passthrough_isa_bridge_create(PCIBus *bus, uint16_t gpu_dev_id);
357786
             .driver   = "q35-pcihost",\
357786
             .property = "x-pci-hole64-fix",\
357786
             .value    = "off",\
357786
+        },\
357786
+        { /* PC_RHEL7_4_COMPAT from PC_COMPAT_2_10 */ \
357786
+             .driver   = TYPE_X86_CPU,\
357786
+             .property = "x-hv-max-vps",\
357786
+             .value    = "0x40",\
357786
         },
357786
 
357786
-
357786
 #define PC_RHEL7_3_COMPAT \
357786
         HW_COMPAT_RHEL7_3 \
357786
         { /* PC_RHEL7_3_COMPAT from PC_COMPAT_2_8 */ \
357786
@@ -1067,11 +1071,6 @@ extern void igd_passthrough_isa_bridge_create(PCIBus *bus, uint16_t gpu_dev_id);
357786
             .driver = TYPE_X86_CPU,\
357786
             .property = "kvm-no-smi-migration",\
357786
             .value    = "on",\
357786
-        },\
357786
-        { /* PC_RHEL7_4_COMPAT from PC_COMPAT_2_10 */ \
357786
-             .driver   = TYPE_X86_CPU,\
357786
-             .property = "x-hv-max-vps",\
357786
-             .value    = "0x40",\
357786
         },
357786
 
357786
 #define PC_RHEL7_2_COMPAT \
357786
-- 
357786
1.8.3.1
357786