Re: [PATCH 11/15] KVM: nVMX: Update vmcs12 for SYSENTER MSRs when they're written

Paolo Bonzini
2019-06-06T16:35:53Z

On 07/05/19 18:06, Sean Christopherson wrote:
> - vmcs12->guest_sysenter_cs = vmcs_read32(GUEST_SYSENTER_CS);
> - vmcs12->guest_sysenter_esp = vmcs_readl(GUEST_SYSENTER_ESP);
> - vmcs12->guest_sysenter_eip = vmcs_readl(GUEST_SYSENTER_EIP);

I moved these a bit earlier, together with all other fields that are
unconditional and simply have to be vmread from the vmcs02 into the vmcs12.

Paolo

> if (kvm_mpx_supported())
> vmcs12->guest_bndcfgs = vmcs_read64(GUEST_BNDCFGS);