[PATCH] KVM: MMU: Write protect guest pages when a shadow is created for them
authorAvi Kivity <avi@qumranet.com>
Sat, 6 Jan 2007 00:36:43 +0000 (16:36 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 6 Jan 2007 07:55:25 +0000 (23:55 -0800)
commit374cbac0333ddf5cf1c6637efaf7f3adcc67fd75
tree0960a8c54aa6f592f5d1cb8a7dbc116c9cb3836e
parentcea0f0e7ea54753c3265dc77f605a6dad1912cfc
[PATCH] KVM: MMU: Write protect guest pages when a shadow is created for them

When we cache a guest page table into a shadow page table, we need to prevent
further access to that page by the guest, as that would render the cache
incoherent.

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/mmu.c
drivers/kvm/paging_tmpl.h