lguest: fix early_ioremap.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 31 Oct 2008 16:24:27 +0000 (11:24 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 31 Oct 2008 00:24:27 +0000 (11:24 +1100)
commitad5173ff8a387191dbacf889becb92c59aba5d59
treebf8af6cb614593de091312bd7fa3c53ba6704e38
parentd5d02d6dd394b295abcadd6b0ce4932c07916fdf
lguest: fix early_ioremap.

dmi_scan_machine breaks under lguest:
lguest: unhandled trap 14 at 0xc04edeae (0xffa00000)

This is because we use current_cr3 for the read_cr3() paravirt
function, and it isn't set until the first cr3 change.  We got away
with it until this happened.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
arch/x86/lguest/boot.c