diff -r f7f6fa8665e7 xen/arch/x86/mm/hap/p2m-ept.c --- a/xen/arch/x86/mm/hap/p2m-ept.c Thu Feb 03 11:56:05 2011 +0000 +++ b/xen/arch/x86/mm/hap/p2m-ept.c Mon Feb 07 14:34:20 2011 +0000 @@ -395,10 +395,6 @@ int i; int ret = 0; mfn_t mfn = _mfn(INVALID_MFN); - int do_locking = !p2m_locked_by_me(d->arch.p2m); - - if ( do_locking ) - p2m_lock(d->arch.p2m); *t = p2m_mmio_dm; @@ -476,8 +472,6 @@ } out: - if ( do_locking ) - p2m_unlock(d->arch.p2m); unmap_domain_page(table); return mfn; }