diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2007-10-11 05:08:41 +0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 18:52:51 +0300 |
commit | 4a4c99248713e878e1e2880015d01049aec805f3 (patch) | |
tree | a847d398faafef4ccbd44de13cfe5d1040fd1df1 /drivers/kvm/kvm.h | |
parent | f67a46f4aa1212b38696ac6b6a82b4323cea61aa (diff) | |
download | linux-4a4c99248713e878e1e2880015d01049aec805f3.tar.xz |
KVM: MMU: More struct kvm_vcpu -> struct kvm cleanups
This time, the biggest change is gpa_to_hpa. The translation of GPA to HPA does
not depend on the VCPU state unlike GVA to GPA so there's no need to pass in
the kvm_vcpu.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r-- | drivers/kvm/kvm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index 9c9c1d7f5b30..d56962d49aa6 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h @@ -554,7 +554,7 @@ void kvm_mmu_slot_remove_write_access(struct kvm *kvm, int slot); void kvm_mmu_zap_all(struct kvm *kvm); void kvm_mmu_change_mmu_pages(struct kvm *kvm, unsigned int kvm_nr_mmu_pages); -hpa_t gpa_to_hpa(struct kvm_vcpu *vcpu, gpa_t gpa); +hpa_t gpa_to_hpa(struct kvm *kvm, gpa_t gpa); #define HPA_MSB ((sizeof(hpa_t) * 8) - 1) #define HPA_ERR_MASK ((hpa_t)1 << HPA_MSB) static inline int is_error_hpa(hpa_t hpa) { return hpa >> HPA_MSB; } |