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] Early test for 32- vs 64-bit hvm domain?

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Early test for 32- vs 64-bit hvm domain?
From: "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx>
Date: Tue, 29 Jan 2008 17:01:22 -0700
Delivery-date: Tue, 29 Jan 2008 16:02:09 -0800
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>
Organization: Oracle Corporation
Reply-to: "dan.magenheimer@xxxxxxxxxx" <dan.magenheimer@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Achi0z5BGByXglQOTp607Io+zOYGOg==
What is the proper way to test to see if an hvm domain is destined
to be x86 vs x86_64 whilst still early in its initialization in the
hypervisor, e.g. in hvm_vcpu_initialise(v) or hvm_domain_initialise(d)?
Is this information pased down from hvmloader or does it get
discovered somehow?  Or maybe it is not possible to determine
until a vcpu actually starts executing?

I see vmx_guest_x86_mode(v) ASSERTs if v!=current so hvm_guest_x86_mode(v)
can't be used. And hvm_long_mode_enabled(v) doesn't seem to work that
early.  Also, the arch_domain struct has a "is_32bit_pv" field but I can't
find any equivalent for hvm.

Thanks for any suggestions!
Dan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>