diff options
author | Scott Wood <scottwood@freescale.com> | 2013-04-15 11:07:11 -0400 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-04-17 09:21:16 -0400 |
commit | be28a27c993ca6f806145d02dbe493baac83a8e9 (patch) | |
tree | d6b63bf3772faef4f0b41762ad792589f301ba87 /arch/powerpc | |
parent | c32498ee64165cfcbcac9c4318d537c97fd66428 (diff) |
kvm/ppc: don't call complete_mmio_load when it's a store
complete_mmio_load writes back the mmio result into the
destination register. Doing this on a store results in
register corruption.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kvm/powerpc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 16b45954511c..a822659db50a 100644 --- a/arch/powerpc/kvm/powerpc.c +++ b/arch/powerpc/kvm/powerpc.c | |||
@@ -683,7 +683,6 @@ int kvmppc_handle_store(struct kvm_run *run, struct kvm_vcpu *vcpu, | |||
683 | 683 | ||
684 | if (!kvm_io_bus_write(vcpu->kvm, KVM_MMIO_BUS, run->mmio.phys_addr, | 684 | if (!kvm_io_bus_write(vcpu->kvm, KVM_MMIO_BUS, run->mmio.phys_addr, |
685 | bytes, &run->mmio.data)) { | 685 | bytes, &run->mmio.data)) { |
686 | kvmppc_complete_mmio_load(vcpu, run); | ||
687 | vcpu->mmio_needed = 0; | 686 | vcpu->mmio_needed = 0; |
688 | return EMULATE_DONE; | 687 | return EMULATE_DONE; |
689 | } | 688 | } |