WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [SVM][PATCH] fix 64bit linux guest booting

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [SVM][PATCH] fix 64bit linux guest booting
From: "Woller, Thomas" <thomas.woller@xxxxxxx>
Date: Mon, 27 Nov 2006 17:21:41 -0600
Delivery-date: Mon, 27 Nov 2006 15:23:08 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AccSesvhma4IW2OhQ+SbTioC/Mwpyg==
Thread-topic: [SVM][PATCH] fix 64bit linux guest booting
Attached patch 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@xxxxxxx>

Keir, not sure if something else was intended with the change removing
the setting of EFER_LME, I think that it should be ok during write of
CR0 to enable paging.  Wondering if Intel/AMD architectures are
different here(?).

1) guest is setting CR0 paging enable during this intercepted CR0 write
(paging_enable is false, but X86_CR0_PG/PE are true)
2) previously LME was set in EFER and info saved into cpu_state
(SVM_CPU_STATE_LME_ENABLED is set)
3) PAE has also been enabled previously

So, above criteria means go ahead and activate long mode, so setting LMA
and LME in EFER in the vmcb should be fine during this guest cr0 write.

Thoughts?

  --Tom

Attachment: svm_enable_lme.patch
Description: svm_enable_lme.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [SVM][PATCH] fix 64bit linux guest booting, Woller, Thomas <=