aboutsummaryrefslogtreecommitdiff
path: root/arch/ia64/kvm/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/kvm/misc.h')
-rw-r--r--arch/ia64/kvm/misc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/ia64/kvm/misc.h b/arch/ia64/kvm/misc.h
index e585c460734..dd979e00b57 100644
--- a/arch/ia64/kvm/misc.h
+++ b/arch/ia64/kvm/misc.h
@@ -27,7 +27,8 @@
*/
static inline uint64_t *kvm_host_get_pmt(struct kvm *kvm)
{
- return (uint64_t *)(kvm->arch.vm_base + KVM_P2M_OFS);
+ return (uint64_t *)(kvm->arch.vm_base +
+ offsetof(struct kvm_vm_data, kvm_p2m));
}
static inline void kvm_set_pmt_entry(struct kvm *kvm, gfn_t gfn,