All of lore.kernel.org
 help / color / mirror / Atom feed
* Early test for 32- vs 64-bit hvm domain?
@ 2008-01-30  0:01 Dan Magenheimer
  2008-01-30  0:11 ` Samuel Thibault
  0 siblings, 1 reply; 6+ messages in thread
From: Dan Magenheimer @ 2008-01-30  0:01 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

[-- Attachment #1: Type: text/plain, Size: 665 bytes --]

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

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-01-30 19:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-30  0:01 Early test for 32- vs 64-bit hvm domain? Dan Magenheimer
2008-01-30  0:11 ` Samuel Thibault
2008-01-30  0:34   ` Dan Magenheimer
2008-01-30  8:21     ` Keir Fraser
2008-01-30 18:44       ` Andi Kleen
2008-01-30 19:28         ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.