Skip to contentSkip to conversation

Support real-mode in Xen?

DISCUSSION Jun Koi 2 participants 2 messages Jan 19, 2010

lore
Share & tools
lore
#1 lore raw

Hi,

Quoted 4 lines · Jun Koi

I am wondering how Xen currently supports real mode? Is it what explained in below old slides, or we already went another way?

http://xen.org/files/summit_3/v2e-realmode-support-v2.pdf

No, it's not done that way - to the best of my knowledge we don't use the CPU emulation in qemu-dm at all.

AMD CPUs and very recent Intel CPUs support running in real-mode in non-root context, so don't need any special handling for realmode.

On older Intel CPUs, when the guest is in real mode, it runs in virtual 8086 mode in non-root context. Instructions that can't be handled by virtual 8086 mode are emulated by Xen's built-in x86_emulate. (look for 'vmx_realmode' in xen/arch/x86/hvm/vmx/vmx.c)

Cheers,

Tim.

Signature · 3 lines
Tim Deegan <[email protected]>
Principal Software Engineer, Citrix Systems (R&D) Ltd.
[Company #02300071, SL9 0DZ, UK.]