[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [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 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |