xenpaging: remove confusing comment from p2m_mem_paging_populate
authorOlaf Hering <olaf@aepfle.de>
Thu, 6 Oct 2011 11:33:17 +0000 (12:33 +0100)
committerOlaf Hering <olaf@aepfle.de>
Thu, 6 Oct 2011 11:33:17 +0000 (12:33 +0100)
Currently there is no way to avoid the double check of the p2mt
because p2m_mem_paging_populate() is called from many places without
the p2m_lock held. Upcoming changes will move the function into
gfn_to_mfn(), so its interface could be changed and the extra
p2m_lock/get_entry can be removed.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/p2m.c

index 49eebb6854e1381be22aa5191fc235d720ce2053..e9266e53228453397a4432370516e8f1b29e5032 100644 (file)
@@ -792,8 +792,6 @@ void p2m_mem_paging_populate(struct domain *d, unsigned long gfn)
     req.type = MEM_EVENT_TYPE_PAGING;
 
     /* Fix p2m mapping */
-    /* XXX: It seems inefficient to have this here, as it's only needed
-     *      in one case (ept guest accessing paging out page) */
     p2m_lock(p2m);
     p2m->get_entry(p2m, gfn, &p2mt, &a, p2m_query, NULL);
     if ( p2mt == p2m_ram_paged )