diff options
author | Andres Lagar-Cavilla <andres@lagarcavilla.org> | 2012-02-02 12:22:34 +0000 |
---|---|---|
committer | Andres Lagar-Cavilla <andres@lagarcavilla.org> | 2012-02-02 12:22:34 +0000 |
commit | 58fdfc4602dafc7bd0d20b11cc2ad74680f50e74 (patch) | |
tree | 1d14ba933aa3ba28091cdf696264c7a2c81e11be /xen/common/memory.c | |
parent | 4b9686b36f778d0c97fc64fad9592a03207aabc8 (diff) | |
download | xen-58fdfc4602dafc7bd0d20b11cc2ad74680f50e74.tar.gz xen-58fdfc4602dafc7bd0d20b11cc2ad74680f50e74.tar.bz2 xen-58fdfc4602dafc7bd0d20b11cc2ad74680f50e74.zip |
x86/mm: Fix paging stats
There are several corner cases in which a page is paged back in, not by paging,
and the stats are not properly updated.
Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
Diffstat (limited to 'xen/common/memory.c')
-rw-r--r-- | xen/common/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/memory.c b/xen/common/memory.c index 53886cea3b..8793894b3f 100644 --- a/xen/common/memory.c +++ b/xen/common/memory.c @@ -166,7 +166,7 @@ int guest_remove_page(struct domain *d, unsigned long gmfn) if ( unlikely(p2m_is_paging(p2mt)) ) { guest_physmap_remove_page(d, gmfn, mfn, 0); - p2m_mem_paging_drop_page(d, gmfn); + p2m_mem_paging_drop_page(d, gmfn, p2mt); put_gfn(d, gmfn); return 1; } |