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

RE: [Xen-devel] [PATCH] vmwrite high 32 bits of 64bit VMCS fields when i

To: "Keir Fraser" <keir@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] vmwrite high 32 bits of 64bit VMCS fields when in PAE mode
From: "Li, Xin B" <xin.b.li@xxxxxxxxx>
Date: Wed, 11 Jul 2007 13:58:54 +0800
Delivery-date: Tue, 10 Jul 2007 22:57:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C2B9C199.A9E2%keir@xxxxxxxxxxxxx>
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>
References: <C2B98704.123BD%keir@xxxxxxxxxxxxx> <C2B9C199.A9E2%keir@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcfDCkCwwQ9aXwykSueQB++MWscE/AAEXrFvAAi6ut0AEEzy4A==
Thread-topic: [Xen-devel] [PATCH] vmwrite high 32 bits of 64bit VMCS fields when in PAE mode
>> Is this necessary? Writes to low halves clear top halves, and these
data
>> structures will always be below 4GB, right?
>> 
>> Are you just being super safe? :-)
>
>Oh, furthermore with a 32-bit build of Xen we have to be safe for the
case
>that VMX_BASIC_MSR[48]==1 (which Vol 3B Appendix G.1 says is true for
non
>Intel64 CPUs like Yonah). In this case the physical pointers poked into
the
>VMCS are limited to 32 bits. We may as well limit all such structures
to
>below 4GB in all cases with a 32-bit build of Xen.
>

So we need keep this mind for all data structures referenced by pointers
in a VMCS when on 32bit Xen, or maybe how about add a memory allocation
function wrapper for this purpose?
-Xin

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