projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e0e8af
)
KVM: Fix pio trace direction
author
Avi Kivity
<avi@redhat.com>
Mon, 30 Aug 2010 07:46:56 +0000
(10:46 +0300)
committer
Avi Kivity
<avi@redhat.com>
Sun, 24 Oct 2010 08:51:49 +0000
(10:51 +0200)
out = write, in = read, not the other way round.
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index bdba1d09a97e52ac680c9983784a73753ee0f923..d0ba857cd7cf1a3d8541888dc36e46e0917cc605 100644
(file)
--- 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,
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;
@@
-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;