[PATCH] KVM: MMU: Handle misaligned accesses to write protected guest page tables
authorAvi Kivity <avi@qumranet.com>
Sat, 6 Jan 2007 00:36:48 +0000 (16:36 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 6 Jan 2007 07:55:26 +0000 (23:55 -0800)
commit0e7bc4b9610ed9fde0fa14f0b7a7f939805e5ae9
tree7466256bb2117e1ef5cbb42d2f9a405e80baf5c9
parent73f7198e738004671b885c443eb6f88df021c07f
[PATCH] KVM: MMU: Handle misaligned accesses to write protected guest page tables

A misaligned access affects two shadow ptes instead of just one.

Since a misaligned access is unlikely to occur on a real page table, just zap
the page out of existence, avoiding further trouble.

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