[PATCH] KVM: MMU: Flush guest tlb when reducing permissions on a pte
authorAvi Kivity <avi@qumranet.com>
Sat, 6 Jan 2007 00:36:55 +0000 (16:36 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 6 Jan 2007 07:55:27 +0000 (23:55 -0800)
commit40907d5768ab8cadd4cad97bef350820ded20338
treec3e18c9197c3ccbc8e57e42aa870f1e9d5740a94
parente2dec939db126989808853d218e426daaeebc9e2
[PATCH] KVM: MMU: Flush guest tlb when reducing permissions on a pte

If we reduce permissions on a pte, we must flush the cached copy of the pte
from the guest's tlb.

This is implemented at the moment by flushing the entire guest tlb, and can be
improved by flushing just the relevant virtual address, if it is known.

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