[RFC] KVM MMU: thinking of shadow page cache
When we cached shadow page tables, one guest page table may have many shadow pages, take below case for example: (RO+U) ---> |------| __ |------| (W+U ) ---> | GP1 | | | GP2 | (W+P ) ---> |------| |--> |------| There have 3 kinds of permission mapping to GP1, so we should allocate 3 shadow pag... 30 Mar 2010 07:13
[patch] s390: potential buffer overflow
"len" hasn't been properly range checked so we shouldn't use it as an array offset. This can only be written to by root but it would still be annoying to accidentally write more than 3 characters and corrupt your memory. Signed-off-by: Dan Carpenter <error27(a)gmail.com> --- I don't have a cross compile environm... 30 Mar 2010 06:08
[PATCH 13/14] Do not compact within a preferred zone after a compaction failure
The fragmentation index may indicate that a failure is due to external fragmentation but after a compaction run completes, it is still possible for an allocation to fail. There are two obvious reasons as to why o Page migration cannot move all pages so fragmentation remains o A suitable page may exist but wat... 30 Mar 2010 06:08
[PATCH 04/14] Allow CONFIG_MIGRATION to be set without CONFIG_NUMA or memory hot-remove
CONFIG_MIGRATION currently depends on CONFIG_NUMA or on the architecture being able to hot-remove memory. The main users of page migration such as sys_move_pages(), sys_migrate_pages() and cpuset process migration are only beneficial on NUMA so it makes sense. As memory compaction will operate within a zone and i... 30 Mar 2010 06:08
[PATCH 07/14] Move definition for LRU isolation modes to a header
Currently, vmscan.c defines the isolation modes for __isolate_lru_page(). Memory compaction needs access to these modes for isolating pages for migration. This patch exports them. Signed-off-by: Mel Gorman <mel(a)csn.ul.ie> Acked-by: Christoph Lameter <cl(a)linux-foundation.org> --- include/linux/swap.h | 5 ++... 30 Mar 2010 06:08
[PATCH 14/14] mm,migration: Allow the migration of PageSwapCache pages
PageAnon pages that are unmapped may or may not have an anon_vma so are not currently migrated. However, a swap cache page can be migrated and fits this description. This patch identifies page swap caches and allows them to be migrated. Signed-off-by: Mel Gorman <mel(a)csn.ul.ie> --- mm/migrate.c | 15 ++++++++... 30 Mar 2010 06:08
[PATCH 02/14] mm,migration: Do not try to migrate unmapped anonymous pages
rmap_walk_anon() was triggering errors in memory compaction that look like use-after-free errors. The problem is that between the page being isolated from the LRU and rcu_read_lock() being taken, the mapcount of the page dropped to 0 and the anon_vma gets freed. This can happen during memory compaction if pages bei... 30 Mar 2010 06:08
net/wireless/libertas: do not call wiphy_unregister() w/o wiphy_register()
On Tue, Mar 30, 2010 at 08:49:07AM +0200, Holger Schurig wrote: The libertas driver calls wiphy_unregister() without a prior wiphy_register() when a devices fails initialization. Fix this by introducing a private flag. Nice. However, I wonder: do we really need a private variable? Does eac... 30 Mar 2010 13:52
[PATCH 03/15] x86 acpi/irq: pci device dev->irq is an isa irq not a gsi
From: Eric W. Biederman <ebiederm(a)xmission.com> Strictly speaking on x86 (where acpi is used) dev->irq must be a dual i8259 irq input aka an isa irq. Therefore we should translate that isa irq into a gsi before passing it to a function that takes a gsi. Signed-off-by: Eric W. Biederman <ebiederm(a)xmission.com>... 30 Mar 2010 05:02
[PATCH 04/15] x86 acpi/irq: Fix acpi_sci_ioapic_setup so it has both bus_irq and gsi
From: Eric W. Biederman <ebiederm(a)xmission.com> Currently acpi_sci_ioapic_setup calls mp_override_legacy_irq with bus_irq == gsi, which is wrong if we are comming from an override Instead pass the bus_irq into acpi_sci_ioapic_setup. This fix was inspired by a similar fix from: Yinghai Lu <yinghai(a)kernel.org> ... 30 Mar 2010 05:02