xen: add m2p override mechanism
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Wed, 15 Dec 2010 13:19:33 +0000 (13:19 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 11 Jan 2011 19:31:18 +0000 (14:31 -0500)
commit448f2831934381e9d3c4d93e700ba7bbe14612dc
tree8a57a520698e86640a22522c130fe866ba466e55
parentb5eafe924bb054d7c56e6ebd18106352e8a3f916
xen: add m2p override mechanism

Add a simple hashtable based mechanism to override some portions of the
m2p, so that we can find out the pfn corresponding to an mfn of a
granted page. In fact entries corresponding to granted pages in the m2p
hold the original pfn value of the page in the source domain that
granted it.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/include/asm/xen/page.h
arch/x86/xen/p2m.c