Prev: [PATCH 08/13] drivers/staging/rtl8192e: Hoist assign from if
Next: PL330: Add PL330 DMA controller driver
From: Nick Piggin on 25 Mar 2010 01:30 On Wed, Mar 24, 2010 at 06:56:31PM +1100, Benjamin Herrenschmidt wrote: > Some powerpc code needs to ensure that all previous iounmap/vunmap has > really been flushed out of the MMU hash table. Without that, various > hotplug operations may fail when trying to return those pieces to > the hypervisor due to existing active mappings. > > This exports purge_vmap_area_lazy() to allow the powerpc code to perform > that purge when unplugging devices. You want vm_unmap_aliases(), which also flushes entries in the per-cpu vmap allocator (and is already exported for other code that has similar problems). Thanks, Nick -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Benjamin Herrenschmidt on 25 Mar 2010 04:30 > You want vm_unmap_aliases(), which also flushes entries in the > per-cpu vmap allocator (and is already exported for other code > that has similar problems). Ok, I missed that one. I'll update my patch. Thanks. Cheers, Ben. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: MJ embd on 25 Mar 2010 04:50
On Wed, Mar 24, 2010 at 1:26 PM, Benjamin Herrenschmidt <benh(a)kernel.crashing.org> wrote: > Some powerpc code needs to ensure that all previous iounmap/vunmap has > really been flushed out of the MMU hash table. Without that, various > hotplug operations may fail when trying to return those pieces to > the hypervisor due to existing active mappings. Are you talking about KVM or any other hypervisor ? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |