mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[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>
This commit is contained in:
1 parent
2b87d5adbb
commit
5348ff2ec0
1 file changed
+1
-2
@@ -1526,10 +1526,9 @@ static int svm_set_cr0(unsigned long value)
|
||||
|
||||
if (test_bit(SVM_CPU_STATE_LME_ENABLED, &v->arch.hvm_svm.cpu_state))
|
||||
{
|
||||
/* Here the PAE is should to be opened */
|
||||
HVM_DBG_LOG(DBG_LEVEL_1, "Enable the Long mode\n");
|
||||
set_bit(SVM_CPU_STATE_LMA_ENABLED, &v->arch.hvm_svm.cpu_state);
|
||||
vmcb->efer |= EFER_LMA;
|
||||
vmcb->efer |= EFER_LMA | EFER_LME;
|
||||
}
|
||||
#endif /* __x86_64__ */
|
||||
|
||||
|
||||