Skip to contentSkip to conversation

x86-64 32bit applications support discussion

DISCUSSION Jerone Young 3 participants 3 messages Mar 14, 2005

lore
Share & tools
lore
#0 lore raw

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?) ?

Signature · 12 lines
Jerone Young
IBM Linux Technology Center
[email protected]
512-838-1157 (T/L: 678-1157)



-------------------------------------------------------
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_id=6595&alloc_id=14396&op=click
#1 lore raw

Hi,

Quoted 1 line · Jerone Young

Since the virtual domain & applications are all running in ring 3.

You mean the kernel is running in ring 3 as well?

Quoted 4 lines

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?

I would think so.

Regards,

Signature · 1 line
Kurt Garloff, Director SUSE Labs, Novell Inc.
#2 lore raw

Segment protection checks don't work in long mode. So - yes.

Quoted 12 lines · Kurt Garloff

Hi,

Quoted 1 line · Jerone Young

Since the virtual domain & applications are all running in ring 3.

You mean the kernel is running in ring 3 as well?

Quoted 4 lines

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?

Quoted 8 lines

I would think so.

Regards,
--
Kurt Garloff, Director SUSE Labs, Novell Inc.

-------------------------------------------------------
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_id=6595&alloc_id=14396&op=click