summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorAvi Kivity2010-12-13 16:24:53 +0100
committerAvi Kivity2011-01-12 10:30:52 +0100
commit61cfab2e83263ea294a034b12079476a917299f4 (patch)
treebf0f6124cb79fbd65a4614cf17d4465fd734f0c8 /arch/x86
parentKVM: MMU: Fix incorrect direct page write protection due to ro host page (diff)
downloadkernel-qcow2-linux-61cfab2e83263ea294a034b12079476a917299f4.tar.gz
kernel-qcow2-linux-61cfab2e83263ea294a034b12079476a917299f4.tar.xz
kernel-qcow2-linux-61cfab2e83263ea294a034b12079476a917299f4.zip
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')
-rw-r--r--arch/x86/kvm/x86.c4
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,
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;