hvm: handle PoD and grant pages in HVMOP_get_mem_type
authorOlaf Hering <olaf@aepfle.de>
Fri, 19 Oct 2012 14:09:05 +0000 (16:09 +0200)
committerOlaf Hering <olaf@aepfle.de>
Fri, 19 Oct 2012 14:09:05 +0000 (16:09 +0200)
commit55cc7f063053ccf88d945a7480de12b3bc67f8c3
treec7007a75e35fd23bb6041d3a45150ca7f95b2987
parent497f6ad7f0b04b265bcccf2624f798556ab3cafb
hvm: handle PoD and grant pages in HVMOP_get_mem_type

During kexec in a ballooned PVonHVM guest the new kernel needs to check
each pfn if its backed by a mfn to find ballooned pages. Currently all
PoD and grant pages will appear as HVMMEM_mmio_dm, so the new kernel has
to assume they are ballooned. This is wrong: PoD pages may turn into
real RAM at runtime, grant pages are also RAM.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/hvm.c