[PATCH v6] KVM: x86: Enable XSAVE/XRSTOR for guest

2010-05-27 Thread Sheng Yang
From: Dexuan Cui dexuan@intel.com This patch enable guest to use XSAVE/XRSTOR instructions. We assume that host_xcr0 would use all possible bits that OS supported. And we loaded xcr0 in the same way we handled fpu - do it as late as we can. Signed-off-by: Dexuan Cui dexuan@intel.com

Re: [PATCH v6] KVM: x86: Enable XSAVE/XRSTOR for guest

2010-05-27 Thread Avi Kivity
On 05/27/2010 12:47 PM, Sheng Yang wrote: From: Dexuan Cuidexuan@intel.com This patch enable guest to use XSAVE/XRSTOR instructions. We assume that host_xcr0 would use all possible bits that OS supported. And we loaded xcr0 in the same way we handled fpu - do it as late as we can.

Re: [PATCH v6] KVM: x86: Enable XSAVE/XRSTOR for guest

2010-05-27 Thread Sheng Yang
On Thursday 27 May 2010 17:52:36 Avi Kivity wrote: On 05/27/2010 12:47 PM, Sheng Yang wrote: From: Dexuan Cuidexuan@intel.com This patch enable guest to use XSAVE/XRSTOR instructions. We assume that host_xcr0 would use all possible bits that OS supported. And we loaded xcr0