Nakajima, Jun
2005-Jul-04 07:36 UTC
[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@intel.com> Signed-off-by: Chengyuan Li <chengyuan.li@intel.com> Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com> Signed-off-by: Arun Sharma <arun.sharma@intel.com> Jun --- Intel Open Source Technology Center _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Reasonably Related Threads
- [PATCH][VT]Make 32-bit VMX guest work on 64-bit host
- Standardizing an MSR or other hypercall to get an RNG seed?
- [PATCH][VT] Fix the mmio for cmp/test opcode
- Standardizing an MSR or other hypercall to get an RNG seed?
- [PATCH]Propagate guest MSR writes to machine MSRs immediately