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

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