KVM: nSVM: Set correct port for IOIO interception evaluation
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 30 Jun 2014 10:52:55 +0000 (12:52 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Jul 2014 16:09:56 +0000 (18:09 +0200)
commit6cbc5f5a80a9ae5a80bc81efc574b5a85bfd4a84
tree28fd708a956079f5fcb8cef3ff3bcd8c4c085e58
parent6493f1574e898b46370e2b2315836d76a1980f2c
KVM: nSVM: Set correct port for IOIO interception evaluation

Obtaining the port number from DX is bogus as a) there are immediate
port accesses and b) user space may have changed the register content
while processing the PIO access. Forward the correct value from the
instruction emulator instead.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/emulate.c
arch/x86/kvm/svm.c