]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
KVM: VMX: Enable machine check support for 32bit targets
authorUros Bizjak <ubizjak@gmail.com>
Tue, 14 Apr 2020 07:14:14 +0000 (09:14 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Apr 2020 08:22:10 +0000 (04:22 -0400)
There is no reason to limit the use of do_machine_check
to 64bit targets. MCE handling works for both target familes.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Sean Christopherson <sean.j.christopherson@intel.com>
Cc: stable@vger.kernel.org
Fixes: a0861c02a981 ("KVM: Add VT-x machine check support")
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Message-Id: <20200414071414.45636-1-ubizjak@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c

index 8959514eaf0fa115614df4facb3d678f6e00fbbc..01330096ff3e22f6139760ffe5e880564630bd17 100644 (file)
@@ -4572,7 +4572,7 @@ static int handle_rmode_exception(struct kvm_vcpu *vcpu,
  */
 static void kvm_machine_check(void)
 {
-#if defined(CONFIG_X86_MCE) && defined(CONFIG_X86_64)
+#if defined(CONFIG_X86_MCE)
        struct pt_regs regs = {
                .cs = 3, /* Fake ring 3 no matter what the guest ran on */
                .flags = X86_EFLAGS_IF,