kernel-fxtec-pro1x/arch/x86/include/asm/xen
Stefano Stabellini 706cc9d2a4 xen/m2p: Check whether the MFN has IDENTITY_FRAME bit set..
If there is no proper PFN value in the M2P for the MFN
(so we get 0xFFFFF.. or 0x55555, or 0x0), we should
consult the M2P override to see if there is an entry for this.
[Note: we also consult the M2P override if the MFN
is past our machine_to_phys size].

We consult the P2M with the PFN. In case the returned
MFN is one of the special values: 0xFFF.., 0x5555
(which signify that the MFN can be either "missing" or it
belongs to DOMID_IO) or the p2m(m2p(mfn)) != mfn, we check
the M2P override. If we fail the M2P override check, we reset
the PFN value to INVALID_P2M_ENTRY.

Next we try to find the MFN in the P2M using the MFN
value (not the PFN value) and if found, we know
that this MFN is an identity value and return it as so.

Otherwise we have exhausted all the posibilities and we
return the PFN, which at this stage can either be a real
PFN value found in the machine_to_phys.. array, or
INVALID_P2M_ENTRY value.

[v1: Added Review-by tag]

Reviewed-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
2011-03-14 11:17:14 -04:00
..
events.h xen: use our own eventchannel->irq path 2009-02-09 12:17:30 +01:00
grant_table.h x86: drop double underscores from header guards 2008-10-23 00:01:39 -07:00
hypercall.h xen: add variable hypercall caller 2010-10-20 16:22:27 -07:00
hypervisor.h xen: HVM X2APIC support 2011-01-07 10:03:50 -05:00
interface.h xen: implement XENMEM_machphys_mapping 2010-11-12 15:00:06 -08:00
interface_32.h xen: implement XENMEM_machphys_mapping 2010-11-12 15:00:06 -08:00
interface_64.h xen: implement XENMEM_machphys_mapping 2010-11-12 15:00:06 -08:00
page.h xen/m2p: Check whether the MFN has IDENTITY_FRAME bit set.. 2011-03-14 11:17:14 -04:00
pci.h xen: remap GSIs as pirqs when running as initial domain 2010-10-22 21:25:43 +01:00
swiotlb-xen.h pci-swiotlb-xen: Add glue code to setup dma_ops utilizing xen_swiotlb_* 2010-07-27 11:51:02 -04:00