[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] x86-64 32bit applications support discussion


  • To: "Jerone Young" <jyoung5@xxxxxxxxxx>, "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
  • From: "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>
  • Date: Mon, 14 Mar 2005 13:59:34 -0800
  • Delivery-date: Mon, 14 Mar 2005 22:02:12 +0000
  • List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
  • Thread-index: AcUouJfVWUhI4npDSzuJxUUxyX5/dQAJtPZw
  • Thread-topic: [Xen-devel] x86-64 32bit applications support discussion

Jerone Young wrote:
>       This thread is intended for discussion of 32bit application
support
> under x86-64 virtual domains. To all reading this is for development
> purposes (x86-64 support is not done yet).
> 
>       I've been actively looking into 32bit application support for
the
> x86-64 Virutal Domains. I do have a question that I wanted to bring to
> the list to start the discussion.
> 
>       Since the virtual domain & applications are all running in ring
3.
> Does the hypervisor need to know how to tell the CPU when and when
> not to go into compatibility mode to  run running 32bit applications
> properly under virtual domains? As you may know while under Long mode
> you have two sub modes: 64-bit mode & compatibility (for 32bit
> stuff). The problem I see is that since we are in Long Mode the
> virutal domain needs to tell CPU to go into the sub mode
> compatibility mode for it's 32 applications but does not have the
> access to do so. I'm not sure the best way of going about this (new
> hypercall?) ? 
The switch_to_user hypercall should allow you to switch to compatibility
mode as long as you provide one for that. Look at struct switch_to_user
and the do_switch_to_user. Xenolinux will set the same cs as the native
x86-64 Linux does for 32-bit processes. 

Jun


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.