[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • 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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.