direct-io.hg

changeset 14267:c8843678cb9b

[SVM] Clear VMCB's EFER.LME when guest disables paging

Since the guest's CR0.PG is always set (in shadow paging), EFER.LME must
be cleared along with EFER.LMA when the guest is disabling paging.

Signed-off-by: Travis Betak <travis.betak@amd.com>
author Travis Betak <travis.betak@amd.com>
date Mon Mar 05 16:22:21 2007 -0600 (2007-03-05)
parents 8bae3387b86c
children ae203b55e7c8
files xen/arch/x86/hvm/svm/svm.c
line diff
     1.1 --- a/xen/arch/x86/hvm/svm/svm.c	Mon Mar 05 16:21:50 2007 -0600
     1.2 +++ b/xen/arch/x86/hvm/svm/svm.c	Mon Mar 05 16:22:21 2007 -0600
     1.3 @@ -1787,7 +1787,7 @@ static int svm_set_cr0(unsigned long val
     1.4      {
     1.5          if ( svm_long_mode_enabled(v) )
     1.6          {
     1.7 -            vmcb->efer &= ~EFER_LMA;
     1.8 +            vmcb->efer &= ~(EFER_LME | EFER_LMA);
     1.9              v->arch.hvm_svm.cpu_shadow_efer &= ~EFER_LMA;
    1.10          }
    1.11          /* we should take care of this kind of situation */