[PATCH] KVM: MMU: Page table write flood protection
authorAvi Kivity <avi@qumranet.com>
Sat, 6 Jan 2007 00:36:50 +0000 (16:36 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 6 Jan 2007 07:55:26 +0000 (23:55 -0800)
commit86a5ba025d0a0b251817d0efbeaf7037d4175d21
tree35dbc71edaa0d242ba4c0ca429c41cff67df38d0
parent139bdb2d9e410d448281057a37b53770324ccac8
[PATCH] KVM: MMU: Page table write flood protection

In fork() (or when we protect a page that is no longer a page table), we can
experience floods of writes to a page, which have to be emulated.  This is
expensive.

So, if we detect such a flood, zap the page so subsequent writes can proceed
natively.

Signed-off-by: Avi Kivity <avi@qumranet.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/kvm/kvm.h
drivers/kvm/mmu.c