[PATCH] KVM: MMU: If emulating an instruction fails, try unprotecting the page
authorAvi Kivity <avi@qumranet.com>
Sat, 6 Jan 2007 00:36:45 +0000 (16:36 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 6 Jan 2007 07:55:25 +0000 (23:55 -0800)
commita436036baf331703b4d2c8e8a45f02c597bf6913
treeba134b0b42ca42c53e818073af8d51d73771c56b
parent9b7a032567ee1128daeebebfc14d3acedfe28c8c
[PATCH] KVM: MMU: If emulating an instruction fails, try unprotecting the page

A page table may have been recycled into a regular page, and so any
instruction can be executed on it.  Unprotect the page and let the cpu do its
thing.

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