diff options
Diffstat (limited to 'arch/powerpc/kvm/e500mc.c')
-rw-r--r-- | arch/powerpc/kvm/e500mc.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/e500mc.c b/arch/powerpc/kvm/e500mc.c index 2f4baa074b2e..753cc99eff2b 100644 --- a/arch/powerpc/kvm/e500mc.c +++ b/arch/powerpc/kvm/e500mc.c | |||
@@ -177,6 +177,8 @@ int kvmppc_core_check_processor_compat(void) | |||
177 | r = 0; | 177 | r = 0; |
178 | else if (strcmp(cur_cpu_spec->cpu_name, "e5500") == 0) | 178 | else if (strcmp(cur_cpu_spec->cpu_name, "e5500") == 0) |
179 | r = 0; | 179 | r = 0; |
180 | else if (strcmp(cur_cpu_spec->cpu_name, "e6500") == 0) | ||
181 | r = 0; | ||
180 | else | 182 | else |
181 | r = -ENOTSUPP; | 183 | r = -ENOTSUPP; |
182 | 184 | ||
@@ -260,6 +262,20 @@ int kvmppc_core_set_sregs(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs) | |||
260 | return kvmppc_set_sregs_ivor(vcpu, sregs); | 262 | return kvmppc_set_sregs_ivor(vcpu, sregs); |
261 | } | 263 | } |
262 | 264 | ||
265 | int kvmppc_get_one_reg(struct kvm_vcpu *vcpu, u64 id, | ||
266 | union kvmppc_one_reg *val) | ||
267 | { | ||
268 | int r = kvmppc_get_one_reg_e500_tlb(vcpu, id, val); | ||
269 | return r; | ||
270 | } | ||
271 | |||
272 | int kvmppc_set_one_reg(struct kvm_vcpu *vcpu, u64 id, | ||
273 | union kvmppc_one_reg *val) | ||
274 | { | ||
275 | int r = kvmppc_set_one_reg_e500_tlb(vcpu, id, val); | ||
276 | return r; | ||
277 | } | ||
278 | |||
263 | struct kvm_vcpu *kvmppc_core_vcpu_create(struct kvm *kvm, unsigned int id) | 279 | struct kvm_vcpu *kvmppc_core_vcpu_create(struct kvm *kvm, unsigned int id) |
264 | { | 280 | { |
265 | struct kvmppc_vcpu_e500 *vcpu_e500; | 281 | struct kvmppc_vcpu_e500 *vcpu_e500; |