diff options
author | Avi Kivity <avi@redhat.com> | 2010-08-30 03:46:56 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 04:51:49 -0400 |
commit | c41a15dd4632499b9c1a00871e160276999767d9 (patch) | |
tree | 83dfc01138a41549a4dc493b2f438e0a656cb8e0 /arch/x86 | |
parent | 8e0e8afa82018a3c751ea474eb47dfc65f00f4c3 (diff) |
KVM: Fix pio trace direction
out = write, in = read, not the other way round.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kvm/x86.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index bdba1d09a97e..d0ba857cd7cf 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -3743,7 +3743,7 @@ static int emulator_pio_in_emulated(int size, unsigned short port, void *val, | |||
3743 | if (vcpu->arch.pio.count) | 3743 | if (vcpu->arch.pio.count) |
3744 | goto data_avail; | 3744 | goto data_avail; |
3745 | 3745 | ||
3746 | trace_kvm_pio(1, port, size, 1); | 3746 | trace_kvm_pio(0, port, size, 1); |
3747 | 3747 | ||
3748 | vcpu->arch.pio.port = port; | 3748 | vcpu->arch.pio.port = port; |
3749 | vcpu->arch.pio.in = 1; | 3749 | vcpu->arch.pio.in = 1; |
@@ -3771,7 +3771,7 @@ static int emulator_pio_out_emulated(int size, unsigned short port, | |||
3771 | const void *val, unsigned int count, | 3771 | const void *val, unsigned int count, |
3772 | struct kvm_vcpu *vcpu) | 3772 | struct kvm_vcpu *vcpu) |
3773 | { | 3773 | { |
3774 | trace_kvm_pio(0, port, size, 1); | 3774 | trace_kvm_pio(1, port, size, 1); |
3775 | 3775 | ||
3776 | vcpu->arch.pio.port = port; | 3776 | vcpu->arch.pio.port = port; |
3777 | vcpu->arch.pio.in = 0; | 3777 | vcpu->arch.pio.in = 0; |