Sean Christopherson 6e2020977e 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>
2019-09-25 15:30:09 +02:00
..
2019-09-20 08:36:47 -07:00
2019-09-20 08:36:47 -07:00
2019-09-23 19:16:01 -07:00
2019-09-23 19:16:01 -07:00
2019-09-21 10:07:42 -07:00
2019-07-17 09:36:38 -07:00
2019-09-20 08:36:47 -07:00
2019-09-22 10:34:46 -07:00
2019-09-23 19:16:01 -07:00
2019-09-23 19:16:01 -07:00
2019-09-19 13:27:23 -07:00
2019-07-12 15:38:05 -07:00
2019-09-21 10:07:42 -07:00
2019-09-20 08:36:47 -07:00
2019-09-23 19:16:01 -07:00
2019-09-20 08:36:47 -07:00
2019-09-21 10:07:42 -07:00
2019-09-19 13:27:23 -07:00
2019-09-23 19:16:01 -07:00
2019-09-19 13:27:23 -07:00
2019-09-19 13:27:23 -07:00
2019-09-20 11:48:06 -07:00