Go to the documentation of this file.
20 #ifndef __ASM_KVM_BOOKE_H__
21 #define __ASM_KVM_BOOKE_H__
23 #include <linux/types.h>
27 #define KVMPPC_NR_LPIDS 64
34 static inline ulong kvmppc_get_gpr(
struct kvm_vcpu *vcpu,
int num)
36 return vcpu->
arch.gpr[num];
44 static inline u32 kvmppc_get_cr(
struct kvm_vcpu *vcpu)
54 static inline u32 kvmppc_get_xer(
struct kvm_vcpu *vcpu)
56 return vcpu->
arch.xer;
59 static inline u32 kvmppc_get_last_inst(
struct kvm_vcpu *vcpu)
61 return vcpu->
arch.last_inst;
71 return vcpu->
arch.ctr;
94 static inline ulong kvmppc_get_fault_dar(
struct kvm_vcpu *vcpu)
96 return vcpu->
arch.fault_dear;
101 return vcpu->
arch.shared->msr;