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)
commitd835dfecd00fd770288dcd9a46c0e0966d526fdf
tree9e80c69f9024e45b39cf0d1eeda56ba4a57567a6
parent79539cec0c3c38d35a1e3e5310d2c562ae6e82b8
KVM: Don't bother the mmu if cr3 load doesn't change cr3

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