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/debug.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/debug.c')
-rw-r--r-- | xen/arch/x86/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/debug.c b/xen/arch/x86/debug.c index 449f5bd5b0..e66d7081f8 100644 --- a/xen/arch/x86/debug.c +++ b/xen/arch/x86/debug.c @@ -58,7 +58,7 @@ dbg_hvm_va2mfn(dbgva_t vaddr, struct domain *dp, int toaddr) return INVALID_MFN; } - mfn = mfn_x(gfn_to_mfn(p2m_get_hostp2m(dp), gfn, &gfntype)); + mfn = mfn_x(gfn_to_mfn(dp, gfn, &gfntype)); if ( p2m_is_readonly(gfntype) && toaddr ) { DBGP2("kdb:p2m_is_readonly: gfntype:%x\n", gfntype); |