aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-05-01 07:16:52 -0400
committerAvi Kivity <avi@qumranet.com>2007-07-16 05:05:38 -0400
commit09072daf37abbfe8e2d5018dd913f229c76190f7 (patch)
treedbccbe493a9412cb89bd48b7c0c8ec21f70cf091 /drivers/kvm/kvm.h
parent621358455ae043ab39bc3481f13b101bd6016c8d (diff)
KVM: Unify kvm_mmu_pre_write() and kvm_mmu_post_write()
Instead of calling two functions and repeating expensive checks, call one function and provide it with before/after information. Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index 7facebd1911d..11c519e8085a 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -525,8 +525,8 @@ int kvm_write_guest(struct kvm_vcpu *vcpu,
525 525
526unsigned long segment_base(u16 selector); 526unsigned long segment_base(u16 selector);
527 527
528void kvm_mmu_pre_write(struct kvm_vcpu *vcpu, gpa_t gpa, int bytes); 528void kvm_mmu_pte_write(struct kvm_vcpu *vcpu, gpa_t gpa,
529void kvm_mmu_post_write(struct kvm_vcpu *vcpu, gpa_t gpa, int bytes); 529 const u8 *old, const u8 *new, int bytes);
530int kvm_mmu_unprotect_page_virt(struct kvm_vcpu *vcpu, gva_t gva); 530int kvm_mmu_unprotect_page_virt(struct kvm_vcpu *vcpu, gva_t gva);
531void kvm_mmu_free_some_pages(struct kvm_vcpu *vcpu); 531void kvm_mmu_free_some_pages(struct kvm_vcpu *vcpu);
532 532