projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2981fb7
)
x86/mm: Revert changeset 24582:f6c33cfe7333
author
Andres Lagar-Cavilla
<andres@lagarcavilla.org>
Fri, 10 Feb 2012 16:07:07 +0000
(16:07 +0000)
committer
Andres Lagar-Cavilla
<andres@lagarcavilla.org>
Fri, 10 Feb 2012 16:07:07 +0000
(16:07 +0000)
With synchronized p2m lookups this is no longer needed, and we can lock the p2m
up-front.
Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Acked-by: Tim Deegan <tjd-xen@phlegethon.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/p2m.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/mm/p2m.c
b/xen/arch/x86/mm/p2m.c
index 8bbcce04e55df830b38fca8002d6f4a45eb1dad2..645c7f90f672f592945d4b543bd138c083dc79ad 100644
(file)
--- a/
xen/arch/x86/mm/p2m.c
+++ b/
xen/arch/x86/mm/p2m.c
@@
-361,6
+361,8
@@
void p2m_teardown(struct p2m_domain *p2m)
if (p2m == NULL)
return;
+ p2m_lock(p2m);
+
#ifdef __x86_64__
for ( gfn=0; gfn < p2m->max_mapped_pfn; gfn++ )
{
@@
-374,8
+376,6
@@
void p2m_teardown(struct p2m_domain *p2m)
}
#endif
- p2m_lock(p2m);
-
p2m->phys_table = pagetable_null();
while ( (pg = page_list_remove_head(&p2m->pages)) )