]> xenbits.xensource.com Git - people/royger/xen.git/commit
M2P translation cannot be handled through flat table with only one slot per MFN
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 17 Dec 2009 06:27:56 +0000 (06:27 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 17 Dec 2009 06:27:56 +0000 (06:27 +0000)
commitaf909e7e16dd67452bde91bb71c8111c95c43983
treeadc7949938cde5c9257942cb7fbbf6a06af08cfc
parente8a90e0ab12cfb9cb4f8a87a5525797719cd07b6
M2P translation cannot be handled through flat table with only one slot per MFN
when an MFN is shared. However, all existing calls can either infer the GFN (for
example p2m table destructor) or will not need to know GFN for shared pages.
This patch identifies and fixes all the M2P accessors, either by removing the
translation altogether or by making the relevant modifications. Shared MFNs have
a special value of SHARED_M2P_ENTRY stored in their M2P table slot.

Signed-off-by: Grzegorz Milos <Grzegorz.Milos@citrix.com>
14 files changed:
xen/arch/x86/cpu/mcheck/mce_intel.c
xen/arch/x86/domain_build.c
xen/arch/x86/mm.c
xen/arch/x86/mm/mem_sharing.c
xen/arch/x86/mm/p2m.c
xen/arch/x86/mm/paging.c
xen/arch/x86/mm/shadow/multi.c
xen/arch/x86/mm/shadow/private.h
xen/arch/x86/traps.c
xen/common/domctl.c
xen/common/grant_table.c
xen/common/memory.c
xen/drivers/passthrough/iommu.c
xen/include/asm-x86/mm.h