yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

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

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