diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2007-10-10 21:08:41 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:52:51 -0500 |
commit | 4a4c99248713e878e1e2880015d01049aec805f3 (patch) | |
tree | a847d398faafef4ccbd44de13cfe5d1040fd1df1 /drivers/kvm/kvm.h | |
parent | f67a46f4aa1212b38696ac6b6a82b4323cea61aa (diff) |
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); | |||
554 | void kvm_mmu_zap_all(struct kvm *kvm); | 554 | void kvm_mmu_zap_all(struct kvm *kvm); |
555 | void kvm_mmu_change_mmu_pages(struct kvm *kvm, unsigned int kvm_nr_mmu_pages); | 555 | void kvm_mmu_change_mmu_pages(struct kvm *kvm, unsigned int kvm_nr_mmu_pages); |
556 | 556 | ||
557 | hpa_t gpa_to_hpa(struct kvm_vcpu *vcpu, gpa_t gpa); | 557 | hpa_t gpa_to_hpa(struct kvm *kvm, gpa_t gpa); |
558 | #define HPA_MSB ((sizeof(hpa_t) * 8) - 1) | 558 | #define HPA_MSB ((sizeof(hpa_t) * 8) - 1) |
559 | #define HPA_ERR_MASK ((hpa_t)1 << HPA_MSB) | 559 | #define HPA_ERR_MASK ((hpa_t)1 << HPA_MSB) |
560 | static inline int is_error_hpa(hpa_t hpa) { return hpa >> HPA_MSB; } | 560 | static inline int is_error_hpa(hpa_t hpa) { return hpa >> HPA_MSB; } |