summaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorAnthony Liguori2007-10-11 03:08:41 +0200
committerAvi Kivity2008-01-30 16:52:51 +0100
commit4a4c99248713e878e1e2880015d01049aec805f3 (patch)
treea847d398faafef4ccbd44de13cfe5d1040fd1df1 /drivers/kvm/kvm.h
parentKVM: MMU: Clean up MMU functions to take struct kvm when appropriate (diff)
downloadkernel-qcow2-linux-4a4c99248713e878e1e2880015d01049aec805f3.tar.gz
kernel-qcow2-linux-4a4c99248713e878e1e2880015d01049aec805f3.tar.xz
kernel-qcow2-linux-4a4c99248713e878e1e2880015d01049aec805f3.zip
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.h2
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; }