提交 61cfab2e 编写于 作者: A Avi Kivity

KVM: Correct kvm_pio tracepoint count field

Currently, we record '1' for count regardless of the real count.  Fix.
Signed-off-by: NAvi Kivity <avi@redhat.com>
上级 d3c422bd
...@@ -3948,7 +3948,7 @@ static int emulator_pio_in_emulated(int size, unsigned short port, void *val, ...@@ -3948,7 +3948,7 @@ static int emulator_pio_in_emulated(int size, unsigned short port, void *val,
if (vcpu->arch.pio.count) if (vcpu->arch.pio.count)
goto data_avail; 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.port = port;
vcpu->arch.pio.in = 1; vcpu->arch.pio.in = 1;
...@@ -3976,7 +3976,7 @@ static int emulator_pio_out_emulated(int size, unsigned short port, ...@@ -3976,7 +3976,7 @@ static int emulator_pio_out_emulated(int size, unsigned short port,
const void *val, unsigned int count, const void *val, unsigned int count,
struct kvm_vcpu *vcpu) 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.port = port;
vcpu->arch.pio.in = 0; vcpu->arch.pio.in = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册