[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] MSR save/restore for x86_64 VMX domains


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>
  • Date: Mon, 4 Jul 2005 00:36:21 -0700
  • Delivery-date: Mon, 04 Jul 2005 07:35:35 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcWAaxLqdUR+RuSdSVqGicQGMNTtFw==
  • Thread-topic: [PATCH] MSR save/restore for x86_64 VMX domains

To avoid MSR save/restore at every VM exit/entry time, we restore the
x86_64 specific MSRs at domain switch time if modified. In VMX domains,
we modify those upon requests from the guests to that end. Note that
IA32_EFER.LME and IA32_EFER.LMA are saved/restored by H/W on every VM
exit. For the usual domains (i.e. dom0 and domU), those MSRs are not
modified once set at initialization time, so we don't save them when
swiched out, but simply reset them (if modified) to the initial values
when switched in. This patch also include extended handling for 64-bit
guests. Please apply.

 arch/x86/domain.c          |   22 ++
 arch/x86/vmx.c             |  338
++++++++++++++++++++++++++++++++++++++++++---
 include/asm-x86/msr.h      |    2 
 include/asm-x86/vmx_vmcs.h |    9 +
 4 files changed, 350 insertions(+), 21 deletions(-)

Signed-off-by: Jun Nakajima <jun.nakajima@xxxxxxxxx>
Signed-off-by: Chengyuan Li <chengyuan.li@xxxxxxxxx>
Signed-off-by: Yunhong Jiang <yunhong.jiang@xxxxxxxxx>
Signed-off-by: Arun Sharma <arun.sharma@xxxxxxxxx>

Jun
---
Intel Open Source Technology Center 

Attachment: msrs.patch
Description: msrs.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.