Olaf Hering
2011-Nov-08 17:34 UTC
[Xen-devel] [PATCH] xenpaging: compare domain pointer in p2m_mem_paging_populate
# HG changeset patch # User Olaf Hering <olaf@aepfle.de> # Date 1320773636 -3600 # Node ID c6f1423918baecb7a11eb7a151b9d5fb00888228 # Parent a7e49740fbfe3a4ec0a21186e2a4c579a30e0838 xenpaging: compare domain pointer in p2m_mem_paging_populate Compare just the domain pointer instead of the domain_id number. Signed-off-by: Olaf Hering <olaf@aepfle.de> diff -r a7e49740fbfe -r c6f1423918ba xen/arch/x86/mm/p2m.c --- a/xen/arch/x86/mm/p2m.c +++ b/xen/arch/x86/mm/p2m.c @@ -906,7 +906,7 @@ void p2m_mem_paging_populate(struct doma p2m_unlock(p2m); /* Pause domain if request came from guest and gfn has paging type */ - if ( p2m_is_paging(p2mt) && v->domain->domain_id == d->domain_id ) + if ( p2m_is_paging(p2mt) && v->domain == d ) { vcpu_pause_nosync(v); req.flags |= MEM_EVENT_FLAG_VCPU_PAUSED; _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel