From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH v8 1/2] KVM: VMX: Enable XSAVE/XRSTOR for guest Date: Thu, 10 Jun 2010 15:27:37 -0300 Message-ID: <20100610182737.GA7999@amt.cnet> References: <1276140433-29570-1-git-send-email-sheng@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , kvm@vger.kernel.org, Dexuan Cui To: Sheng Yang Return-path: Received: from mx1.redhat.com ([209.132.183.28]:11021 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751043Ab0FJS3H (ORCPT ); Thu, 10 Jun 2010 14:29:07 -0400 Content-Disposition: inline In-Reply-To: <1276140433-29570-1-git-send-email-sheng@linux.intel.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Jun 10, 2010 at 11:27:12AM +0800, Sheng Yang wrote: > From: Dexuan Cui > > 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 > Signed-off-by: Sheng Yang > --- > 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