KVM: Portability: Move pio emulation functions to x86.c
authorCarsten Otte <cotte@de.ibm.com>
Tue, 30 Oct 2007 17:44:25 +0000 (18:44 +0100)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:52:59 +0000 (17:52 +0200)
commitde7d789acd7f373268194bb48dc0690c975ab8e6
treec2e9c4e1bb8d127e7a53459f9ed83c711901f31d
parentbbd9b64e37aff5aa715ec5e168425790f5983bf1
KVM: Portability: Move pio emulation functions to x86.c

This patch moves implementation of the following functions from
kvm_main.c to x86.c:
free_pio_guest_pages, vcpu_find_pio_dev, pio_copy_data, complete_pio,
kernel_pio, pio_string_write, kvm_emulate_pio, kvm_emulate_pio_string

The function inject_gp, which was duplicated by yesterday's patch
series, is removed from kvm_main.c now because it is not needed anymore.

Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Acked-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm_main.c
drivers/kvm/x86.c
drivers/kvm/x86.h