KVM: x86 emulator: Move string pio emulation into emulator.c
authorGleb Natapov <gleb@redhat.com>
Thu, 18 Mar 2010 13:20:24 +0000 (15:20 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:16:26 +0000 (12:16 +0300)
commit7972995b0c346de76fe260ce0fd6bcc8ffab724a
treea2522988d8cd465b836c0a32399d8eeb7a3ed545
parentcf8f70bfe38b326bb80b10f76d6544f571040229
KVM: x86 emulator: Move string pio emulation into emulator.c

Currently emulation is done outside of emulator so things like doing
ins/outs to/from mmio are broken it also makes it hard (if not impossible)
to implement single stepping in the future. The implementation in this
patch is not efficient since it exits to userspace for each IO while
previous implementation did 'ins' in batches. Further patch that
implements pio in string read ahead address this problem.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/emulate.c
arch/x86/kvm/x86.c