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

[Xen-devel][PATCH]Fix a error to boot 32bit vista


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Xin, Xiaohui" <xiaohui.xin@xxxxxxxxx>
  • Date: Thu, 21 Sep 2006 21:41:45 +0800
  • Delivery-date: Thu, 21 Sep 2006 06:44:16 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acbdg61MD5dJemobSf+DNGQwRumXSQ==
  • Thread-topic: [Xen-devel][PATCH]Fix a error to boot 32bit vista

This patch fixes an error to boot 32bit vista. The shadow code uses hvm_get_guest_ctrl_reg(v, 4) to test whether the PAE enabled or not.

But it is not always right. In some cases, when hypervisor calls hvm_get_guest_ctrl_reg(v, 4) between vmxassist_invoke and vmxassist_restore,

the value of CR4 is not always right. And then the guest will get wrong shadow modes.

The patch uses the d->arch.hvm_vmx.cpu_state to test if the PAE is enabled.

 

Signed-off-by: Xiaohui Xin <xiaohui.xin@xxxxxxxxx>

 

Attachment: 0921-2.diff
Description: 0921-2.diff

_______________________________________________
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®.