KVM: Don't bother the mmu if cr3 load doesn't change cr3
authorAvi Kivity <avi@qumranet.com>
Wed, 21 Nov 2007 00:57:59 +0000 (02:57 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:10 +0000 (17:53 +0200)
If the guest requests just a tlb flush, don't take the vm lock and
drop the mmu context pointlessly.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/mmu.c
drivers/kvm/x86.c
drivers/kvm/x86.h

Simple merge
Simple merge
Simple merge