diff options
author | Sean Christopherson | 2019-07-19 13:41:08 -0700 |
---|---|---|
committer | Paolo Bonzini | 2019-09-25 15:30:09 +0200 |
commit | 6e2020977e3e692a8bb31258c1f8251521f4fdb7 (patch) | |
tree | 19b899e36297b4aa35daeb68417e7a49a3346cc3 /arch/x86/include | |
parent | 52a9fcbc73a30375cad8d9e7b519e1ad97b0880a (diff) |
KVM: VMX: Add error handling to VMREAD helper
Now that VMREAD flows require a taken branch, courtesy of commit
3901336ed9887 ("x86/kvm: Don't call kvm_spurious_fault() from .fixup")
bite the bullet and add full error handling to VMREAD, i.e. replace the
JMP added by __ex()/____kvm_handle_fault_on_reboot() with a hinted Jcc.
To minimize the code footprint, add a helper function, vmread_error(),
to handle both faults and failures so that the inline flow has a single
CALL.
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include')
0 files changed, 0 insertions, 0 deletions