Skip to content
Commit ce29a1f8 authored by Christian Ehrhardt's avatar Christian Ehrhardt Committed by H. Peter Anvin
Browse files

[x86 setup] Work around bug in Xen HVM



Apparently XEN does not keep the contents of the 48-bit gdt_48 data
structure that is passed to lgdt in the XEN machine state. Instead it
appears to save the _address_ of the 48-bit descriptor
somewhere. Unfortunately this data happens to reside on the stack and
is probably no longer availiable at the time of the actual protected
mode jump.

This is Xen bug but given that there is a one-line patch to work
around this problem, the linux kernel should probably do this.  My fix
is to make the gdt_48 description in setup_gdt static (in setup_idt
this is already the case). This allows the kernel to boot under
Xen HVM again.

Signed-off-by: default avatarChristian Ehrhardt <lk@c--e.de>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 40ffbfad
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment