KVM: nVMX: propagate errors from prepare_vmcs02
authorLadi Prosek <lprosek@redhat.com>
Wed, 30 Nov 2016 15:03:09 +0000 (16:03 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 8 Dec 2016 14:31:09 +0000 (15:31 +0100)
commitee146c1c100dbe9ca92252be2e901b957476b253
treee43f2b2d96b96a45d8c612c7a778c5c96c453b15
parent7ca29de21362de242025fbc1c22436e19e39dddc
KVM: nVMX: propagate errors from prepare_vmcs02

It is possible that prepare_vmcs02 fails to load the guest state. This
patch adds the proper error handling for such a case. L1 will receive
an INVALID_STATE vmexit with the appropriate exit qualification if it
happens.

A failure to set guest CR3 is the only error propagated from prepare_vmcs02
at the moment.

Signed-off-by: Ladi Prosek <lprosek@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/vmx.c