|
|
@@ -3690,6 +3690,12 @@ static int (*kvm_vmx_exit_handlers[])(struct kvm_vcpu *vcpu) = {
|
|
|
static const int kvm_vmx_max_exit_handlers =
|
|
|
ARRAY_SIZE(kvm_vmx_exit_handlers);
|
|
|
|
|
|
+static void vmx_get_exit_info(struct kvm_vcpu *vcpu, u64 *info1, u64 *info2)
|
|
|
+{
|
|
|
+ *info1 = vmcs_readl(EXIT_QUALIFICATION);
|
|
|
+ *info2 = vmcs_read32(VM_EXIT_INTR_INFO);
|
|
|
+}
|
|
|
+
|
|
|
/*
|
|
|
* The guest has exited. See if we can fix it or if we need userspace
|
|
|
* assistance.
|
|
|
@@ -4334,7 +4340,9 @@ static struct kvm_x86_ops vmx_x86_ops = {
|
|
|
.get_tdp_level = get_ept_level,
|
|
|
.get_mt_mask = vmx_get_mt_mask,
|
|
|
|
|
|
+ .get_exit_info = vmx_get_exit_info,
|
|
|
.exit_reasons_str = vmx_exit_reasons_str,
|
|
|
+
|
|
|
.get_lpage_level = vmx_get_lpage_level,
|
|
|
|
|
|
.cpuid_update = vmx_cpuid_update,
|