|
@@ -11059,8 +11059,10 @@ static int prepare_vmcs02(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12,
|
|
* which means L1 attempted VMEntry to L2 with invalid state.
|
|
* which means L1 attempted VMEntry to L2 with invalid state.
|
|
* Fail the VMEntry.
|
|
* Fail the VMEntry.
|
|
*/
|
|
*/
|
|
- if (vmx->emulation_required)
|
|
|
|
|
|
+ if (vmx->emulation_required) {
|
|
|
|
+ *entry_failure_code = ENTRY_FAIL_DEFAULT;
|
|
return 1;
|
|
return 1;
|
|
|
|
+ }
|
|
|
|
|
|
/* Shadow page tables on either EPT or shadow page tables. */
|
|
/* Shadow page tables on either EPT or shadow page tables. */
|
|
if (nested_vmx_load_cr3(vcpu, vmcs12->guest_cr3, nested_cpu_has_ept(vmcs12),
|
|
if (nested_vmx_load_cr3(vcpu, vmcs12->guest_cr3, nested_cpu_has_ept(vmcs12),
|