Skip to content

Commit b4129ce

Browse files
bonzinijfvogel
authored andcommitted
KVM: nVMX: Don't emulate instructions in guest mode
vmx_check_intercept is not yet fully implemented. To avoid emulating instructions disallowed by the L1 hypervisor, refuse to emulate instructions by default. Cc: [email protected] [Made commit, added commit msg - Oliver] Signed-off-by: Oliver Upton <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]> (cherry picked from commit 07721fe) Orabug: 30847133 CVE: CVE-2020-2732 Signed-off-by: Boris Ostrovsky <[email protected]> Reviewed-by: Darren Kenny <[email protected]>
1 parent 7c8b4e8 commit b4129ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kvm/vmx/vmx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7196,7 +7196,7 @@ static int vmx_check_intercept(struct kvm_vcpu *vcpu,
71967196
}
71977197

71987198
/* TODO: check more intercepts... */
7199-
return X86EMUL_CONTINUE;
7199+
return X86EMUL_UNHANDLEABLE;
72007200
}
72017201

72027202
#ifdef CONFIG_X86_64

0 commit comments

Comments
 (0)