[PATCH 1/3] mmu_notifier: Add mmu_notifier_invalidate_range()

2014-10-28 Thread Joerg Roedel
From: Joerg Roedel jroe...@suse.de This notifier closes an important gap in the current mmu_notifier implementation, the existing call-backs are called too early or too late to reliably manage a non-CPU TLB. Specifically, invalidate_range_start() is called when all pages are still mapped and

[PATCH 1/3] mmu_notifier: Add mmu_notifier_invalidate_range()

2014-09-09 Thread Joerg Roedel
From: Joerg Roedel jroe...@suse.de This notifier closes two important gaps with the current invalidate_range_start()/end() notifiers. The _start() part is called when all pages are still mapped while the _end() notifier is called when all pages are potentially unmapped and already freed. This

[PATCH 1/3] mmu_notifier: Add mmu_notifier_invalidate_range()

2014-07-29 Thread Joerg Roedel
From: Joerg Roedel jroe...@suse.de This notifier closes two important gaps with the current invalidate_range_start()/end() notifiers. The _start() part is called when all pages are still mapped while the _end() notifier is called when all pages are potentially unmapped and already freed. This

Re: [PATCH 1/3] mmu_notifier: Add mmu_notifier_invalidate_range()

2014-07-25 Thread Jesse Barnes
On Thu, 24 Jul 2014 16:35:39 +0200 Joerg Roedel j...@8bytes.org wrote: From: Joerg Roedel jroe...@suse.de This notifier closes an important gap with the current invalidate_range_start()/end() notifiers. The _start() part is called when all pages are still mapped while the _end() notifier

Re: [PATCH 1/3] mmu_notifier: Add mmu_notifier_invalidate_range()

2014-07-25 Thread Jerome Glisse
On Fri, Jul 25, 2014 at 01:16:39PM -0700, Jesse Barnes wrote: On Thu, 24 Jul 2014 16:35:39 +0200 Joerg Roedel j...@8bytes.org wrote: From: Joerg Roedel jroe...@suse.de This notifier closes an important gap with the current invalidate_range_start()/end() notifiers. The _start() part

Re: [PATCH 1/3] mmu_notifier: Add mmu_notifier_invalidate_range()

2014-07-25 Thread Jesse Barnes
On Fri, 25 Jul 2014 23:38:06 +0200 Joerg Roedel j...@8bytes.org wrote: On Fri, Jul 25, 2014 at 01:16:39PM -0700, Jesse Barnes wrote: To allow managing external TLBs the MMU-notifiers need to catch the moment when pages are unmapped but not yet freed. This new notifier catches that

Re: [PATCH 1/3] mmu_notifier: Add mmu_notifier_invalidate_range()

2014-07-25 Thread Jerome Glisse
On Fri, Jul 25, 2014 at 11:38:06PM +0200, Joerg Roedel wrote: On Fri, Jul 25, 2014 at 01:16:39PM -0700, Jesse Barnes wrote: To allow managing external TLBs the MMU-notifiers need to catch the moment when pages are unmapped but not yet freed. This new notifier catches that moment and

Re: [PATCH 1/3] mmu_notifier: Add mmu_notifier_invalidate_range()

2014-07-25 Thread Joerg Roedel
On Fri, Jul 25, 2014 at 02:42:13PM -0700, Jesse Barnes wrote: On Fri, 25 Jul 2014 23:38:06 +0200 Joerg Roedel j...@8bytes.org wrote: I though about removing the need for invalidate_range_end too when writing the patches, and possible solutions are 1) Add

[PATCH 1/3] mmu_notifier: Add mmu_notifier_invalidate_range()

2014-07-24 Thread Joerg Roedel
From: Joerg Roedel jroe...@suse.de This notifier closes an important gap with the current invalidate_range_start()/end() notifiers. The _start() part is called when all pages are still mapped while the _end() notifier is called when all pages are potentially unmapped and already freed. This does