Blame SOURCES/kvm-rhel-Set-host-phys-bits-limit-48-on-rhel-machine-typ.patch

7711c0
From a402e015f9945358215e63b00d9efae44693ccd5 Mon Sep 17 00:00:00 2001
7711c0
From: Eduardo Habkost <ehabkost@redhat.com>
7711c0
Date: Thu, 11 Apr 2019 21:48:46 +0200
7711c0
Subject: [PATCH 160/163] rhel: Set host-phys-bits-limit=48 on rhel
7711c0
 machine-types
7711c0
7711c0
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
7711c0
Message-id: <20190411214846.8816-3-ehabkost@redhat.com>
7711c0
Patchwork-id: 85609
7711c0
O-Subject: [RHEL-7.7 qemu-kvm-rhev PATCH 2/2] rhel: Set host-phys-bits-limit=48 on rhel machine-types
7711c0
Bugzilla: 1691519
7711c0
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
7711c0
RH-Acked-by: Pankaj Gupta <pagupta@redhat.com>
7711c0
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
7711c0
7711c0
Upstream status: not applicable
7711c0
7711c0
Currently we use the host physical address size by default on
7711c0
VMs.  This was a good default on most cases, but this is not the
7711c0
case on host CPUs supporting 5-level EPT.  On those cases, we
7711c0
want VMs to use 4-level EPT by default.
7711c0
7711c0
Ensure VMs will use 4-level EPT by default, by limiting physical
7711c0
address bits to 48.
7711c0
7711c0
Not applicable upstream because upstream doesn't set
7711c0
host-phys-bits=on by default.
7711c0
7711c0
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
7711c0
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
7711c0
---
7711c0
 include/hw/i386/pc.h | 5 +++++
7711c0
 1 file changed, 5 insertions(+)
7711c0
7711c0
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
7711c0
index 88e5a92..1e9f252 100644
7711c0
--- a/include/hw/i386/pc.h
7711c0
+++ b/include/hw/i386/pc.h
7711c0
@@ -963,6 +963,11 @@ extern void igd_passthrough_isa_bridge_create(PCIBus *bus, uint16_t gpu_dev_id);
7711c0
             .property = "host-phys-bits",\
7711c0
             .value = "on",\
7711c0
         },\
7711c0
+        { /* PC_RHEL_COMPAT */ \
7711c0
+            .driver = TYPE_X86_CPU,\
7711c0
+            .property = "host-phys-bits-limit",\
7711c0
+            .value = "48",\
7711c0
+        },\
7711c0
         { /* PC_RHEL_COMPAT bz 1508330 */ \
7711c0
             .driver = "vfio-pci",\
7711c0
             .property = "x-no-geforce-quirks",\
7711c0
-- 
7711c0
1.8.3.1
7711c0