mirror of
https://github.com/torvalds/linux.git
synced 2026-06-15 18:42:46 +02:00
KVM: VMX: avoid guest hang on invalid invept instruction
commit2849eb4f99upstream. A guest executing an invalid invept instruction would hang because the instruction pointer was not updated. Fixes:bfd0a56b90Reviewed-by: David Matlack <dmatlack@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4e2fa4bbba
commit
c44b175bf0
|
|
@ -7340,6 +7340,7 @@ static int handle_invept(struct kvm_vcpu *vcpu)
|
|||
if (!(types & (1UL << type))) {
|
||||
nested_vmx_failValid(vcpu,
|
||||
VMXERR_INVALID_OPERAND_TO_INVEPT_INVVPID);
|
||||
skip_emulated_instruction(vcpu);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user