mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
map_domain_page per-vcpu cache still seems broken. Disable
while I fix it. Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
ab8eb5a3ef
commit
5ccd14f4cc
1 file changed
+3
-1
@@ -40,6 +40,7 @@ void *map_domain_page(unsigned long pfn)
|
||||
cache = &d->arch.mapcache;
|
||||
|
||||
hashent = &cache->vcpu_maphash[vcpu].hash[MAPHASH_HASHFN(pfn)];
|
||||
#if 0
|
||||
if ( hashent->pfn == pfn )
|
||||
{
|
||||
idx = hashent->idx;
|
||||
@@ -48,6 +49,7 @@ void *map_domain_page(unsigned long pfn)
|
||||
ASSERT(l1e_get_pfn(cache->l1tab[idx]) == pfn);
|
||||
goto out;
|
||||
}
|
||||
#endif
|
||||
|
||||
spin_lock(&cache->lock);
|
||||
|
||||
@@ -90,7 +92,7 @@ void *map_domain_page(unsigned long pfn)
|
||||
|
||||
cache->l1tab[idx] = l1e_from_pfn(pfn, __PAGE_HYPERVISOR);
|
||||
|
||||
out:
|
||||
/*out:*/
|
||||
va = MAPCACHE_VIRT_START + (idx << PAGE_SHIFT);
|
||||
return (void *)va;
|
||||
}
|
||||
|
||||