From: Wei Huang <wei@redhat.com>
Date: Mon, 3 Dec 2018 20:13:32 +0000 (-0600)
Subject: kvm: vmx: add cpu into VMX preemption timer bug list
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3d82c565a7a237b9dd4666f17c84dcc028d2bed5;p=linux.git

kvm: vmx: add cpu into VMX preemption timer bug list

This patch adds Intel "Xeon CPU E3-1220 V2", with CPUID.01H.EAX=0x000306A8,
into the list of known broken CPUs which fail to support VMX preemption
timer. This bug was found while running the APIC timer test of
kvm-unit-test on this specific CPU, even though the errata info can't be
located in the public domain for this CPU.

Signed-off-by: Wei Huang <wei@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---

diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
index 579f4c4144d2d..ddaae1d4cd492 100644
--- a/arch/x86/kvm/vmx/vmx.c
+++ b/arch/x86/kvm/vmx/vmx.c
@@ -469,6 +469,8 @@ static u32 vmx_preemption_cpu_tfms[] = {
  /* 321324.pdf - AAK139 - D0 - Xeon 5500 */
  /* 320836.pdf - AAJ124 - D0 - i7-900 Extreme and i7-900 Desktop */
 0x000106A5,
+ /* Xeon E3-1220 V2 */
+0x000306A8,
 };
 
 static inline bool cpu_has_broken_vmx_preemption_timer(void)