KVM: VMX: Enable machine check support for 32bit targets
Subsystems (4)
PATCH 1/1 KVM: VMX: Enable machine check support for 32bit targets
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 <[email protected]>
Cc Sean Christopherson <[email protected]>
Fixes a0861c02a981 ("KVM: Add VT-x machine check support")
Signed-off-by Uros Bizjak <[email protected]>
--- arch/x86/kvm/vmx/vmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kvm/vmx/vmx.c +1 -1
@@ -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,
Signature · 1 line
2.25.2
Quoted 18 lines · Uros Bizjak
There is no reason to limit the use of
do_machine_checkto 64bit targets. MCE handling works for both target familes.Cc Paolo Bonzini <[email protected]>Cc Sean Christopherson <[email protected]>Fixes a0861c02a981 ("KVM: Add VT-x machine check support")Signed-off-by Uros Bizjak <[email protected]>--- arch/x86/kvm/vmx/vmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/x86/kvm/vmx/vmx.c +0
-0
arch/x86/kvm/vmx/vmx.c static int handle_rmode_exception(struct kvm_vcpu *vcpu, · line 4578
Quoted 8 lines
arch/x86/kvm/vmx/vmx.c +1
-1@@ -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,
Queued, thanks.
Paolo