Optimize TLB flush in kvm_mmu_slot_remove_write_access.
authorKai Huang <kai.huang@linux.intel.com>
Mon, 12 Jan 2015 07:28:54 +0000 (15:28 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Jan 2015 10:09:37 +0000 (11:09 +0100)
commitd91ffee9ec633c6523ef1ea39c36ace578760258
treea07fcaed7d217743a0a79aa0e8d4915b0fe770f9
parent0c55d6d931484a747dbba5c9766379c7720a8520
Optimize TLB flush in kvm_mmu_slot_remove_write_access.

No TLB flush is needed when there's no valid rmap in memory slot.

Signed-off-by: Kai Huang <kai.huang@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c