Lines Matching defs:vcpu
33 bool load_vcpu_state(struct kvm_vcpu *vcpu,
35 void store_vcpu_state(struct kvm_vcpu *vcpu);
37 void restore_p9_host_os_sprs(struct kvm_vcpu *vcpu,
39 void switch_pmu_to_guest(struct kvm_vcpu *vcpu,
41 void switch_pmu_to_host(struct kvm_vcpu *vcpu,
45 void accumulate_time(struct kvm_vcpu *vcpu, struct kvmhv_tb_accumulator *next);
46 #define start_timing(vcpu, next) accumulate_time(vcpu, next)
47 #define end_timing(vcpu) accumulate_time(vcpu, NULL)
49 #define accumulate_time(vcpu, next) do {} while (0)
50 #define start_timing(vcpu, next) do {} while (0)
51 #define end_timing(vcpu) do {} while (0)
54 static inline void __kvmppc_set_msr_hv(struct kvm_vcpu *vcpu, u64 val)
56 vcpu->arch.shregs.msr = val;
59 static inline u64 __kvmppc_get_msr_hv(struct kvm_vcpu *vcpu)
61 return vcpu->arch.shregs.msr;
65 static inline void kvmppc_set_##reg ##_hv(struct kvm_vcpu *vcpu, u##size val) \
67 vcpu->arch.reg = val; \
71 static inline u##size kvmppc_get_##reg ##_hv(struct kvm_vcpu *vcpu) \
73 return vcpu->arch.reg; \
81 static inline void kvmppc_set_##reg ##_hv(struct kvm_vcpu *vcpu, int i, u##size val) \
83 vcpu->arch.reg[i] = val; \
87 static inline u##size kvmppc_get_##reg ##_hv(struct kvm_vcpu *vcpu, int i) \
89 return vcpu->arch.reg[i]; \