1. 28 7月, 2009 1 次提交
    • B
      mm: Pass virtual address to [__]p{te,ud,md}_free_tlb() · 9e1b32ca
      Benjamin Herrenschmidt 提交于
      mm: Pass virtual address to [__]p{te,ud,md}_free_tlb()
      
      Upcoming paches to support the new 64-bit "BookE" powerpc architecture
      will need to have the virtual address corresponding to PTE page when
      freeing it, due to the way the HW table walker works.
      
      Basically, the TLB can be loaded with "large" pages that cover the whole
      virtual space (well, sort-of, half of it actually) represented by a PTE
      page, and which contain an "indirect" bit indicating that this TLB entry
      RPN points to an array of PTEs from which the TLB can then create direct
      entries. Thus, in order to invalidate those when PTE pages are deleted,
      we need the virtual address to pass to tlbilx or tlbivax instructions.
      
      The old trick of sticking it somewhere in the PTE page struct page sucks
      too much, the address is almost readily available in all call sites and
      almost everybody implemets these as macros, so we may as well add the
      argument everywhere. I added it to the pmd and pud variants for consistency.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Acked-by: David Howells <dhowells@redhat.com> [MN10300 & FRV]
      Acked-by: NNick Piggin <npiggin@suse.de>
      Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com> [s390]
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9e1b32ca
  2. 15 6月, 2009 1 次提交
  3. 11 4月, 2009 1 次提交
  4. 10 4月, 2009 1 次提交
  5. 28 2月, 2009 1 次提交
  6. 07 9月, 2008 1 次提交
  7. 12 8月, 2008 1 次提交
  8. 08 7月, 2008 2 次提交
    • J
      x86: preallocate and prepopulate separately · d8d5900e
      Jeremy Fitzhardinge 提交于
      Jan Beulich points out that vmalloc_sync_all() assumes that the
      kernel's pmd is always expected to be present in the pgd.  The current
      pgd construction code will add the pgd to the pgd_list before its pmds
      have been pre-populated, thereby making it visible to
      vmalloc_sync_all().
      
      However, because pgd_prepopulate_pmd also does the allocation, it may
      block and cannot be done under spinlock.
      
      The solution is to preallocate the pmds out of the spinlock, then
      populate them while holding the pgd_list lock.
      
      This patch also pulls the pmd preallocation and mop-up functions out
      to be common, assuming that the compiler will generate no code for
      them when PREALLOCTED_PMDS is 0.  Also, there's no need for pgd_ctor
      to clear the pgd again, since it's allocated as a zeroed page.
      Signed-off-by: NJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
      Cc: xen-devel <xen-devel@lists.xensource.com>
      Cc: Stephen Tweedie <sct@redhat.com>
      Cc: Eduardo Habkost <ehabkost@redhat.com>
      Cc: Mark McLoughlin <markmc@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Cc: Jan Beulich <jbeulich@novell.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      d8d5900e
    • J
      x86/paravirt: add a pgd_alloc/free hooks · eba0045f
      Jeremy Fitzhardinge 提交于
      Add hooks which are called at pgd_alloc/free time.  The pgd_alloc hook
      may return an error code, which if non-zero, causes the pgd allocation
      to be failed.  The hooks may be used to allocate/free auxillary
      per-pgd information.
      
      also fix:
      
      > * Ingo Molnar <mingo@elte.hu> wrote:
      >
      >  include/asm/pgalloc.h: In function ‘paravirt_pgd_free':
      >  include/asm/pgalloc.h:14: error: parameter name omitted
      >  arch/x86/kernel/entry_64.S: In file included from
      >  arch/x86/kernel/traps_64.c:51:include/asm/pgalloc.h: In function ‘paravirt_pgd_free':
      >  include/asm/pgalloc.h:14: error: parameter name omitted
      Signed-off-by: NJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
      Cc: xen-devel <xen-devel@lists.xensource.com>
      Cc: Stephen Tweedie <sct@redhat.com>
      Cc: Eduardo Habkost <ehabkost@redhat.com>
      Cc: Mark McLoughlin <markmc@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      eba0045f
  9. 20 6月, 2008 4 次提交
  10. 25 5月, 2008 1 次提交
  11. 25 4月, 2008 13 次提交