On Thu, Jun 10, 2010 at 11:27:12AM +0800, Sheng Yang wrote: > From: Dexuan Cui <dexuan.cui@xxxxxxxxx> > > 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.cui@xxxxxxxxx> > Signed-off-by: Sheng Yang <sheng@xxxxxxxxxxxxxxx> > --- > arch/x86/include/asm/kvm_host.h | 2 + > arch/x86/include/asm/vmx.h | 1 + > arch/x86/kvm/kvm_cache_regs.h | 6 ++ > arch/x86/kvm/vmx.c | 13 ++++ > arch/x86/kvm/x86.c | 130 ++++++++++++++++++++++++++++++++++++-- > include/linux/kvm_host.h | 2 +- > 6 files changed, 146 insertions(+), 8 deletions(-) Reviewed-by: Marcelo Tosatti <mtosatti@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html