On 07/07/19 09:11, Krish Sadhukhan wrote: > @@ -2603,7 +2612,8 @@ static int nested_check_vm_entry_controls(struct kvm_vcpu *vcpu, > } > } > > - if (nested_vmx_check_entry_msr_switch_controls(vcpu, vmcs12)) > + if ((vmx->nested.dirty_vmcs12) && > + nested_check_vm_entry_controls_full(vcpu, vmcs12)) > return -EINVAL; > > return 0; > -- The vmx_control_verify above can be moved to the "rare" case. Paolo