diff options
Diffstat (limited to 'arch/x86/kvm/vmx/nested.c')
-rw-r--r-- | arch/x86/kvm/vmx/nested.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/kvm/vmx/nested.c b/arch/x86/kvm/vmx/nested.c index f24a2c225070..153e539c29c9 100644 --- a/arch/x86/kvm/vmx/nested.c +++ b/arch/x86/kvm/vmx/nested.c | |||
@@ -2585,6 +2585,11 @@ static int nested_check_host_control_regs(struct kvm_vcpu *vcpu, | |||
2585 | !nested_host_cr4_valid(vcpu, vmcs12->host_cr4) || | 2585 | !nested_host_cr4_valid(vcpu, vmcs12->host_cr4) || |
2586 | !nested_cr3_valid(vcpu, vmcs12->host_cr3)) | 2586 | !nested_cr3_valid(vcpu, vmcs12->host_cr3)) |
2587 | return -EINVAL; | 2587 | return -EINVAL; |
2588 | |||
2589 | if (is_noncanonical_address(vmcs12->host_ia32_sysenter_esp, vcpu) || | ||
2590 | is_noncanonical_address(vmcs12->host_ia32_sysenter_eip, vcpu)) | ||
2591 | return -EINVAL; | ||
2592 | |||
2588 | /* | 2593 | /* |
2589 | * If the load IA32_EFER VM-exit control is 1, bits reserved in the | 2594 | * If the load IA32_EFER VM-exit control is 1, bits reserved in the |
2590 | * IA32_EFER MSR must be 0 in the field for that register. In addition, | 2595 | * IA32_EFER MSR must be 0 in the field for that register. In addition, |