Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be28a27c authored by Scott Wood's avatar Scott Wood Committed by Alexander Graf
Browse files

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: default avatarScott Wood <scottwood@freescale.com>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent c32498ee
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -683,7 +683,6 @@ int kvmppc_handle_store(struct kvm_run *run, struct kvm_vcpu *vcpu,


	if (!kvm_io_bus_write(vcpu->kvm, KVM_MMIO_BUS, run->mmio.phys_addr,
	if (!kvm_io_bus_write(vcpu->kvm, KVM_MMIO_BUS, run->mmio.phys_addr,
			      bytes, &run->mmio.data)) {
			      bytes, &run->mmio.data)) {
		kvmppc_complete_mmio_load(vcpu, run);
		vcpu->mmio_needed = 0;
		vcpu->mmio_needed = 0;
		return EMULATE_DONE;
		return EMULATE_DONE;
	}
	}