diff options
author | Tim Deegan <Tim.Deegan@citrix.com> | 2011-06-02 13:16:52 +0100 |
---|---|---|
committer | Tim Deegan <Tim.Deegan@citrix.com> | 2011-06-02 13:16:52 +0100 |
commit | 4ce6c4a45536f7e8094ef3f1cebfa048f23028f0 (patch) | |
tree | 93a99593392617e3cd4a608bf414ea15569e564a /xen/arch/x86/msi.c | |
parent | 8c7d0b26207932a07061b03e1873dc3c8987f568 (diff) | |
download | xen-4ce6c4a45536f7e8094ef3f1cebfa048f23028f0.tar.gz xen-4ce6c4a45536f7e8094ef3f1cebfa048f23028f0.tar.bz2 xen-4ce6c4a45536f7e8094ef3f1cebfa048f23028f0.zip |
x86/mm/p2m: Make p2m interfaces take struct domain arguments.
As part of the nested HVM patch series, many p2m functions were changed
to take pointers to p2m tables rather than to domains. This patch
reverses that for almost all of them, which:
- gets rid of a lot of "p2m_get_hostp2m(d)" in code which really
shouldn't have to know anything about how gfns become mfns.
- ties sharing and paging interfaces to a domain, which is
what they actually act on, rather than a particular p2m table.
In developing this patch it became clear that memory-sharing and nested
HVM are unlikely to work well together. I haven't tried to fix that
here beyond adding some assertions around suspect paths (as this patch
is big enough with just the interface changes)
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Diffstat (limited to 'xen/arch/x86/msi.c')
-rw-r--r-- | xen/arch/x86/msi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/msi.c b/xen/arch/x86/msi.c index 6b0d41ef8d..f5f6dd6108 100644 --- a/xen/arch/x86/msi.c +++ b/xen/arch/x86/msi.c @@ -663,7 +663,7 @@ static int msix_capability_init(struct pci_dev *dev, WARN(); if ( dev->domain ) - p2m_change_entry_type_global(p2m_get_hostp2m(dev->domain), + p2m_change_entry_type_global(dev->domain, p2m_mmio_direct, p2m_mmio_direct); if ( !dev->domain || !paging_mode_translate(dev->domain) ) { |