xen p2m: transparently change the p2m mappings in the m2p override
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 10 Dec 2010 14:52:45 +0000 (14:52 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 11 Jan 2011 19:31:53 +0000 (14:31 -0500)
commit9b705f0e98c489b18ba22a6eab9d694b546c8552
treee8e017032a3e433c7c637c9121eb7fbe5ee8567e
parentf0a70c882ea546bbd802643990ceded32c39facc
xen p2m: transparently change the p2m mappings in the m2p override

In m2p_add_override store the original mfn into page->index and then
change the p2m mapping, setting mfns as FOREIGN_FRAME.

In m2p_remove_override restore the original mapping.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/p2m.c