On Fri, 21 Sep 2007, Linus Torvalds wrote: > > So for example, if you actually want to use quicklists in the "generic" > TLB-gather implementation, you should replace the > > struct page *pages[FREE_PTE_NR]; > > entry in the "struct mmu_gather" with a set of quicklists instead. Side note: this would obviously require that the interfaces to the "quicklists" would have to be changed, and you'd have an actual head pointer rather than using explicitly numbered per-cpu variables, but that seems to be a good idea in itself. Another option is to just not use quicklists AT ALL, but just have a simple list of pages that is purely internal to mmu_gather, and just teach pgd/pmd/pud_alloc about that list. That actually sounds like the most straightforward and least confusing approach. The quicklists code is pretty damn ugly in its mixing of "struct page" and the virtual address. Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- x86_64: potential critical issue with quicklists and page table pages
- From: "Siddha, Suresh B" <suresh.b.siddha@intel.com>
- Re: x86_64: potential critical issue with quicklists and page table pages
- From: Linus Torvalds <torvalds@linux-foundation.org>
- Re: x86_64: potential critical issue with quicklists and page table pages
- From: Christoph Lameter <clameter@sgi.com>
- Re: x86_64: potential critical issue with quicklists and page table pages
- From: Linus Torvalds <torvalds@linux-foundation.org>
- Re: x86_64: potential critical issue with quicklists and page table pages
- From: Linus Torvalds <torvalds@linux-foundation.org>
- Re: x86_64: potential critical issue with quicklists and page table pages
- From: Christoph Lameter <clameter@sgi.com>
- Re: x86_64: potential critical issue with quicklists and page table pages
- From: Linus Torvalds <torvalds@linux-foundation.org>
- Re: x86_64: potential critical issue with quicklists and page table pages
- From: Christoph Lameter <clameter@sgi.com>
- Re: x86_64: potential critical issue with quicklists and page table pages
- From: Linus Torvalds <torvalds@linux-foundation.org>
- x86_64: potential critical issue with quicklists and page table pages
- Prev by Date: Re: X-freeze after clflush changes [Was: 2.6.23-rc6-mm1]
- Next by Date: Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec jump
- Previous by thread: Re: x86_64: potential critical issue with quicklists and page table pages
- Next by thread: Re: x86_64: potential critical issue with quicklists and page table pages
- Index(es):
![]() |