Skip to content

Commit

Permalink
KVM: Fix pio trace direction
Browse files Browse the repository at this point in the history
out = write, in = read, not the other way round.

Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Avi Kivity committed Oct 24, 2010
1 parent 8e0e8af commit c41a15d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -3743,7 +3743,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(1, port, size, 1);
trace_kvm_pio(0, port, size, 1);

vcpu->arch.pio.port = port;
vcpu->arch.pio.in = 1;
Expand Down Expand Up @@ -3771,7 +3771,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(0, port, size, 1);
trace_kvm_pio(1, port, size, 1);

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

0 comments on commit c41a15d

Please sign in to comment.