Skip to content
Commit a489f0b5 authored by Rusty Russell's avatar Rusty Russell
Browse files

lguest: fix guest crash on non-linear addresses in gdt pvops



Fixes guest crash 'lguest: bad read address 0x4800000 len 256'

The new per-cpu allocator ends up handing a non-linear address to
write_gdt_entry.  We do __pa() on it, and hand it to the host, which
kills us.

I've long wanted to make the hypercall "LOAD_GDT_ENTRY" to match the IDT
code, but had no pressing reason until now.

Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
Cc: lguest@ozlabs.org
parent 88df781a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment