diff options
author | Avi Kivity <avi@qumranet.com> | 2007-05-01 11:16:52 (GMT) |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-07-16 09:05:38 (GMT) |
commit | 09072daf37abbfe8e2d5018dd913f229c76190f7 (patch) | |
tree | dbccbe493a9412cb89bd48b7c0c8ec21f70cf091 /drivers/kvm/kvm.h | |
parent | 621358455ae043ab39bc3481f13b101bd6016c8d (diff) | |
download | linux-fsl-qoriq-09072daf37abbfe8e2d5018dd913f229c76190f7.tar.xz |
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index 7facebd..11c519e 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h @@ -525,8 +525,8 @@ int kvm_write_guest(struct kvm_vcpu *vcpu, unsigned long segment_base(u16 selector); -void kvm_mmu_pre_write(struct kvm_vcpu *vcpu, gpa_t gpa, int bytes); -void kvm_mmu_post_write(struct kvm_vcpu *vcpu, gpa_t gpa, int bytes); +void kvm_mmu_pte_write(struct kvm_vcpu *vcpu, gpa_t gpa, + const u8 *old, const u8 *new, int bytes); int kvm_mmu_unprotect_page_virt(struct kvm_vcpu *vcpu, gva_t gva); void kvm_mmu_free_some_pages(struct kvm_vcpu *vcpu); |