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] [PATCH]Do some checks and settings of CR0 according to VMX c

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH]Do some checks and settings of CR0 according to VMX capability MSRs
From: "Liu, Eric E" <eric.e.liu@xxxxxxxxx>
Date: Fri, 27 Jul 2007 16:03:31 +0800
Delivery-date: Fri, 27 Jul 2007 01:01:41 -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: AcfQJJ9SFwvDkiqOSFe7z7TNqnXGEA==
Thread-topic: [PATCH]Do some checks and settings of CR0 according to VMX capability MSRs

According to SDM Vol 3B 19.8 Software should consult the VMX capability MSRs to determine how bits

in CR0 are set, VMXON fails if any of these bits contains an unsupported value. And according to

SDM Vol 3A 2.5, 3B 21.3 and 2A MOV-MOV to/from Control Registers, setting upper 32 bits of CR0

results in a general-protection exception and setting the reserved bits in lower 32 bits of CR0 are ignored .

In accordance with above-mentioned, the patch is attached to do some checks and settings of CR0.

 

Signed-off-by: Eric E Liu <eric.e.liu@xxxxxxxxx>

 

Attachment: check_cr0_setting.patch
Description: check_cr0_setting.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel