]> git.baikalelectronics.ru Git - kernel.git/commit
xen/balloon: set a mapping for ballooned out pages
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Sun, 4 Aug 2013 14:39:40 +0000 (15:39 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 9 Aug 2013 15:23:24 +0000 (11:23 -0400)
commit4e9e1d62c3c3adf7c6e1d03a9b82c8ee5eddb0fa
treee1d5d1bc01d0835ffc359aea7efbb0fbb14ba4e5
parent8d3b4fab96fb1cd62e0f5a26aaf47109ffe38329
xen/balloon: set a mapping for ballooned out pages

Currently ballooned out pages are mapped to 0 and have INVALID_P2M_ENTRY
in the p2m. These ballooned out pages are used to map foreign grants
by gntdev and blkback (see alloc_xenballooned_pages).

Allocate a page per cpu and map all the ballooned out pages to the
corresponding mfn. Set the p2m accordingly. This way reading from a
ballooned out page won't cause a kernel crash (see
http://lists.xen.org/archives/html/xen-devel/2012-12/msg01154.html).

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
CC: alex@alex.org.uk
CC: dcrisan@flexiant.com
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/balloon.c
include/xen/balloon.h