|
@@ -479,6 +479,7 @@ int main(void)
|
|
|
DEFINE(VCPU_LAST_INST, offsetof(struct kvm_vcpu, arch.last_inst));
|
|
|
DEFINE(VCPU_TRAP, offsetof(struct kvm_vcpu, arch.trap));
|
|
|
DEFINE(VCPU_PTID, offsetof(struct kvm_vcpu, arch.ptid));
|
|
|
+ DEFINE(VCPU_CFAR, offsetof(struct kvm_vcpu, arch.cfar));
|
|
|
DEFINE(VCORE_ENTRY_EXIT, offsetof(struct kvmppc_vcore, entry_exit_count));
|
|
|
DEFINE(VCORE_NAP_COUNT, offsetof(struct kvmppc_vcore, nap_count));
|
|
|
DEFINE(VCORE_IN_GUEST, offsetof(struct kvmppc_vcore, in_guest));
|
|
@@ -558,6 +559,10 @@ int main(void)
|
|
|
DEFINE(IPI_PRIORITY, IPI_PRIORITY);
|
|
|
#endif /* CONFIG_KVM_BOOK3S_64_HV */
|
|
|
|
|
|
+#ifdef CONFIG_PPC_BOOK3S_64
|
|
|
+ HSTATE_FIELD(HSTATE_CFAR, cfar);
|
|
|
+#endif /* CONFIG_PPC_BOOK3S_64 */
|
|
|
+
|
|
|
#else /* CONFIG_PPC_BOOK3S */
|
|
|
DEFINE(VCPU_CR, offsetof(struct kvm_vcpu, arch.cr));
|
|
|
DEFINE(VCPU_XER, offsetof(struct kvm_vcpu, arch.xer));
|