thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

Blame SOURCES/kvm-RHEL-hw-i386-disable-nested-PERF_GLOBAL_CTRL-MSR-sup.patch

902636
From 481357ea8ae32b6894860c296cf6a2898260195f Mon Sep 17 00:00:00 2001
902636
From: Paolo Bonzini <pbonzini@redhat.com>
902636
Date: Fri, 17 Jan 2020 13:18:27 +0100
902636
Subject: [PATCH 4/4] RHEL: hw/i386: disable nested PERF_GLOBAL_CTRL MSR
902636
 support
902636
902636
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
902636
Message-id: <20200117131827.20361-1-pbonzini@redhat.com>
902636
Patchwork-id: 93405
902636
O-Subject: [RHEL-AV-8.2.0 qemu-kvm PATCH v3] RHEL: hw/i386: disable nested PERF_GLOBAL_CTRL MSR support
902636
Bugzilla: 1559846
902636
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
902636
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
902636
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
902636
902636
BZ: 1559846
902636
BRANCH: rhel-av-8.2.0
902636
BREW: 25775160
902636
UPSTREAM: RHEL only
902636
902636
Nested PERF_GLOBAL_CTRL support is not present in the 8.2 kernel.  Drop the
902636
features via compat properties, they will be moved to 8.2 machine type compat
902636
properties in the 8.3 timeframe.
902636
902636
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
902636
---
902636
	No change, for v2 I mistakenly wrote "origin/rhel-av-8.2.0" as the
902636
	branch. :(
902636
902636
 hw/i386/pc.c | 2 ++
902636
 1 file changed, 2 insertions(+)
902636
902636
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
902636
---
902636
 hw/i386/pc.c | 2 ++
902636
 1 file changed, 2 insertions(+)
902636
902636
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
902636
index 61e70e4..73a0f11 100644
902636
--- a/hw/i386/pc.c
902636
+++ b/hw/i386/pc.c
902636
@@ -351,6 +351,8 @@ const size_t pc_compat_1_4_len = G_N_ELEMENTS(pc_compat_1_4);
902636
 GlobalProperty pc_rhel_compat[] = {
902636
     { TYPE_X86_CPU, "host-phys-bits", "on" },
902636
     { TYPE_X86_CPU, "host-phys-bits-limit", "48" },
902636
+    { TYPE_X86_CPU, "vmx-entry-load-perf-global-ctrl", "off" },
902636
+    { TYPE_X86_CPU, "vmx-exit-load-perf-global-ctrl", "off" },
902636
     /* bz 1508330 */ 
902636
     { "vfio-pci", "x-no-geforce-quirks", "on" },
902636
 };
902636
-- 
902636
1.8.3.1
902636