RE: [PATCH 1/1] KVM: X86: add the support of XSAVE/XRSTOR to guest

2010-05-06 Thread Cui, Dexuan
Avi Kivity wrote: > On 05/06/2010 07:23 AM, Cui, Dexuan wrote: >> >>>> + goto err; >>>> + vcpu->arch.guest_xstate_mask = new_bv; >>>> + xsetbv(XCR_XFEATURE_ENABLED_MASK, vcpu->arch.guest_xstate_mask); >>>> >>

RE: [PATCH 1/1] KVM: X86: add the support of XSAVE/XRSTOR to guest

2010-05-05 Thread Cui, Dexuan
Avi Kivity wrote: > On 04/29/2010 08:22 AM, Dexuan Cui wrote: >> When the host enables XSAVE/XRSTOR, the patch exposes the >> XSAVE/XRSTOR >> related CPUID leaves to guest by fixing up kvm_emulate_cpuid() and >> the >> patch allows guest to set CR4.OSXSAVE to enable XSAVE. >> The patch adds per-v