ia64/xen-unstable

changeset 14274:e4cffff8cfa7

[SVM] Return the shadow EFER value on guest EFER reads.

Return the shadow of the guest's EFER instead of the VMCB. This helps
with things such as the unlikely event the guest wants to check EFER.LME
immediately after setting it (The VMCB's EFER.LME remains clear until
the guest enables paging).

Signed-off-by: Travis Betak <travis.betak@amd.com>
author Travis Betak <travis.betak@amd.com>
date Mon Mar 05 16:18:10 2007 -0600 (2007-03-05)
parents 437774e49735
children 647fcc8f0c83
files xen/arch/x86/hvm/svm/svm.c
line diff
     1.1 --- a/xen/arch/x86/hvm/svm/svm.c	Mon Mar 05 16:17:25 2007 -0600
     1.2 +++ b/xen/arch/x86/hvm/svm/svm.c	Mon Mar 05 16:18:10 2007 -0600
     1.3 @@ -187,8 +187,7 @@ static inline int long_mode_do_msr_read(
     1.4      switch ((u32)regs->ecx)
     1.5      {
     1.6      case MSR_EFER:
     1.7 -        msr_content = vmcb->efer;
     1.8 -        msr_content &= ~EFER_SVME;
     1.9 +        msr_content = v->arch.hvm_svm.cpu_shadow_efer;
    1.10          break;
    1.11  
    1.12  #ifdef __x86_64__