xen-devel
[Xen-devel] Re: [patch 06/21] Xen-paravirt: remove ctor for pgd cache
Jeremy Fitzhardinge wrote:
@@ -261,10 +261,12 @@ void pgd_ctor(void *pgd, struct kmem_cac
spin_unlock_irqrestore(&pgd_lock, flags);
}
-/* never called when PTRS_PER_PMD > 1 */
-void pgd_dtor(void *pgd, struct kmem_cache *cache, unsigned long unused)
+static void pgd_dtor(pgd_t *pgd)
{
unsigned long flags; /* can be called from interrupt context */
+
+ if (PTRS_PER_PMD == 1)
+ return;
paravirt_release_pd(__pa(pgd) >> PAGE_SHIFT);
spin_lock_irqsave(&pgd_lock, flags);
Acked, with exceptions. This bit breaks VMI. The paravirt_release_pd
must happen unconditionally. But I would rather fix it after patches
get applied just to make sure the entire allocation / deallocation order
constraints are intact.
Zach
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [patch 05/21] Xen-paravirt: paravirt_ops: allocate a fixmap slot, (continued)
[Xen-devel] [patch 09/21] Xen-paravirt: add hooks to intercept mm creation and destruction, Jeremy Fitzhardinge
[Xen-devel] [patch 07/21] Xen-paravirt: Allow paravirt backend to choose kernel PMD sharing, Jeremy Fitzhardinge
[Xen-devel] [patch 06/21] Xen-paravirt: remove ctor for pgd cache, Jeremy Fitzhardinge
- [Xen-devel] Re: [patch 06/21] Xen-paravirt: remove ctor for pgd cache,
Zachary Amsden <=
[Xen-devel] [patch 11/21] Xen-paravirt: Add apply_to_page_range() which applies a function to a pte range., Jeremy Fitzhardinge
[Xen-devel] [patch 12/21] Xen-paravirt: Allocate and free vmalloc areas, Jeremy Fitzhardinge
[Xen-devel] [patch 10/21] Xen-paravirt: Name: dont export paravirt_ops structure, do individual functions, Jeremy Fitzhardinge
- [Xen-devel] Re: [patch 10/21] Xen-paravirt: Name: dont export paravirt_ops structure, do individual functions, Zachary Amsden
- [Xen-devel] Re: [patch 10/21] Xen-paravirt: Name: dont export paravirt_ops structure, do individual functions, Jeremy Fitzhardinge
- [Xen-devel] Re: [patch 10/21] Xen-paravirt: Name: dont export paravirt_ops structure, do individual functions, Zachary Amsden
- [Xen-devel] Re: [patch 10/21] Xen-paravirt: Name: dont export paravirt_ops structure, do individual functions, Jeremy Fitzhardinge
- [Xen-devel] Re: [patch 10/21] Xen-paravirt: Name: dont export paravirt_ops structure, do individual functions, Zachary Amsden
- [Xen-devel] Re: [patch 10/21] Xen-paravirt: Name: dont export paravirt_ops structure, do individual functions, Jeremy Fitzhardinge
[Xen-devel] Re: [patch 10/21] Xen-paravirt: Name: dont export paravirt_ops structure, do individual functions, Rusty Russell
|
|
|