ia64/xen-unstable

changeset 12618:99878f3f74ee

[HVM][SVM] Allows 64bit HVM AMD-V Linux guests to boot.
Basically, this patch reverts part of c/s 12264.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
author kfraser@localhost.localdomain
date Tue Nov 28 13:48:47 2006 +0000 (2006-11-28)
parents 7cb4376044b5
children 4666710bfc55
files xen/arch/x86/hvm/svm/svm.c
line diff
     1.1 --- a/xen/arch/x86/hvm/svm/svm.c	Tue Nov 28 13:46:10 2006 +0000
     1.2 +++ b/xen/arch/x86/hvm/svm/svm.c	Tue Nov 28 13:48:47 2006 +0000
     1.3 @@ -1526,10 +1526,9 @@ static int svm_set_cr0(unsigned long val
     1.4  
     1.5          if (test_bit(SVM_CPU_STATE_LME_ENABLED, &v->arch.hvm_svm.cpu_state))
     1.6          {
     1.7 -            /* Here the PAE is should to be opened */
     1.8              HVM_DBG_LOG(DBG_LEVEL_1, "Enable the Long mode\n");
     1.9              set_bit(SVM_CPU_STATE_LMA_ENABLED, &v->arch.hvm_svm.cpu_state);
    1.10 -            vmcb->efer |= EFER_LMA;
    1.11 +            vmcb->efer |= EFER_LMA | EFER_LME;
    1.12          }
    1.13  #endif  /* __x86_64__ */
    1.14