Return the actual host SVR.  On e500, qemu currently pretends in the device
tree to be an mpc8544 regardless of what the host is, but that's something
that ought to be changed.

Signed-off-by: Scott Wood <[email protected]>
---
 arch/powerpc/kvm/emulate.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/kvm/emulate.c b/arch/powerpc/kvm/emulate.c
index c64fd29..56f875b 100644
--- a/arch/powerpc/kvm/emulate.c
+++ b/arch/powerpc/kvm/emulate.c
@@ -249,6 +249,8 @@ int kvmppc_emulate_instruction(struct kvm_run *run, struct 
kvm_vcpu *vcpu)
                                break;
                        case SPRN_PVR:
                                kvmppc_set_gpr(vcpu, rt, vcpu->arch.pvr); break;
+                       case SPRN_SVR:
+                               kvmppc_set_gpr(vcpu, rt, mfspr(SPRN_SVR)); 
break;
                        case SPRN_PIR:
                                kvmppc_set_gpr(vcpu, rt, vcpu->vcpu_id); break;
                        case SPRN_MSSSR0:
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to