[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-4.2-testing] hvm: handle PoD and grant pages in HVMOP_get_mem_type
# HG changeset patch # User Olaf Hering <olaf@xxxxxxxxx> # Date 1351171868 -7200 # Node ID d2e6d50b6cffd50048beb23e1712317fd5b26237 # Parent ccc3bd29d453664fa5831e4b223c5338147ea101 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@xxxxxxxxx> Acked-by: Tim Deegan <tim@xxxxxxx> xen-unstable changeset: 26093:4ae08ca5500f xen-unstable date: Fri Oct 19 16:09:05 2012 +0200 --- diff -r ccc3bd29d453 -r d2e6d50b6cff xen/arch/x86/hvm/hvm.c --- a/xen/arch/x86/hvm/hvm.c Thu Oct 25 15:24:23 2012 +0200 +++ b/xen/arch/x86/hvm/hvm.c Thu Oct 25 15:31:08 2012 +0200 @@ -4071,6 +4071,10 @@ long do_hvm_op(unsigned long op, XEN_GUE a.mem_type = HVMMEM_ram_ro; else if ( p2m_is_ram(t) ) a.mem_type = HVMMEM_ram_rw; + else if ( p2m_is_magic(t) ) + a.mem_type = HVMMEM_ram_rw; + else if ( p2m_is_grant(t) ) + a.mem_type = HVMMEM_ram_rw; else a.mem_type = HVMMEM_mmio_dm; rc = copy_to_guest(arg, &a, 1) ? -EFAULT : 0; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |