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/
Home Products Support Community News


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

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel][PATCH]Fix a error to boot 32bit vista
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
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: 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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel][PATCH]Fix a error to boot 32bit vista, Xin, Xiaohui <=