diff options
author | Avi Kivity <avi@redhat.com> | 2010-12-13 10:24:53 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-01-12 04:30:52 -0500 |
commit | 61cfab2e83263ea294a034b12079476a917299f4 (patch) | |
tree | bf0f6124cb79fbd65a4614cf17d4465fd734f0c8 /arch/x86/kvm | |
parent | d3c422bd33388e6fe6777bde0e9bd20152133083 (diff) |
KVM: Correct kvm_pio tracepoint count field
Currently, we record '1' for count regardless of the real count. Fix.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-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 cd71d210c409..386cab9b5c68 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -3948,7 +3948,7 @@ static int emulator_pio_in_emulated(int size, unsigned short port, void *val, | |||
3948 | if (vcpu->arch.pio.count) | 3948 | if (vcpu->arch.pio.count) |
3949 | goto data_avail; | 3949 | goto data_avail; |
3950 | 3950 | ||
3951 | trace_kvm_pio(0, port, size, 1); | 3951 | trace_kvm_pio(0, port, size, count); |
3952 | 3952 | ||
3953 | vcpu->arch.pio.port = port; | 3953 | vcpu->arch.pio.port = port; |
3954 | vcpu->arch.pio.in = 1; | 3954 | vcpu->arch.pio.in = 1; |
@@ -3976,7 +3976,7 @@ static int emulator_pio_out_emulated(int size, unsigned short port, | |||
3976 | const void *val, unsigned int count, | 3976 | const void *val, unsigned int count, |
3977 | struct kvm_vcpu *vcpu) | 3977 | struct kvm_vcpu *vcpu) |
3978 | { | 3978 | { |
3979 | trace_kvm_pio(1, port, size, 1); | 3979 | trace_kvm_pio(1, port, size, count); |
3980 | 3980 | ||
3981 | vcpu->arch.pio.port = port; | 3981 | vcpu->arch.pio.port = port; |
3982 | vcpu->arch.pio.in = 0; | 3982 | vcpu->arch.pio.in = 0; |