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

Commit 61cfab2e authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: Correct kvm_pio tracepoint count field



Currently, we record '1' for count regardless of the real count.  Fix.

Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent d3c422bd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3948,7 +3948,7 @@ static int emulator_pio_in_emulated(int size, unsigned short port, void *val,
	if (vcpu->arch.pio.count)
		goto data_avail;

	trace_kvm_pio(0, port, size, 1);
	trace_kvm_pio(0, port, size, count);

	vcpu->arch.pio.port = port;
	vcpu->arch.pio.in = 1;
@@ -3976,7 +3976,7 @@ static int emulator_pio_out_emulated(int size, unsigned short port,
			      const void *val, unsigned int count,
			      struct kvm_vcpu *vcpu)
{
	trace_kvm_pio(1, port, size, 1);
	trace_kvm_pio(1, port, size, count);

	vcpu->arch.pio.port = port;
	vcpu->arch.pio.in = 0;