diff options
author | Avi Kivity <avi@qumranet.com> | 2007-11-20 19:57:59 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:53:10 -0500 |
commit | d835dfecd00fd770288dcd9a46c0e0966d526fdf (patch) | |
tree | 9e80c69f9024e45b39cf0d1eeda56ba4a57567a6 /drivers/kvm/x86.h | |
parent | 79539cec0c3c38d35a1e3e5310d2c562ae6e82b8 (diff) |
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>
Diffstat (limited to 'drivers/kvm/x86.h')
-rw-r--r-- | drivers/kvm/x86.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/x86.h b/drivers/kvm/x86.h index 71f2477d03fd..b1528c9f566f 100644 --- a/drivers/kvm/x86.h +++ b/drivers/kvm/x86.h | |||
@@ -299,6 +299,7 @@ int emulator_write_emulated(unsigned long addr, | |||
299 | 299 | ||
300 | unsigned long segment_base(u16 selector); | 300 | unsigned long segment_base(u16 selector); |
301 | 301 | ||
302 | void kvm_mmu_flush_tlb(struct kvm_vcpu *vcpu); | ||
302 | void kvm_mmu_pte_write(struct kvm_vcpu *vcpu, gpa_t gpa, | 303 | void kvm_mmu_pte_write(struct kvm_vcpu *vcpu, gpa_t gpa, |
303 | const u8 *new, int bytes); | 304 | const u8 *new, int bytes); |
304 | int kvm_mmu_unprotect_page_virt(struct kvm_vcpu *vcpu, gva_t gva); | 305 | int kvm_mmu_unprotect_page_virt(struct kvm_vcpu *vcpu, gva_t gva); |