]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Create arch-specific kvm_cpu__emulate_{mm}io()
authorMatt Evans <matt@ozlabs.org>
Tue, 13 Dec 2011 06:21:47 +0000 (17:21 +1100)
committerPekka Enberg <penberg@kernel.org>
Tue, 13 Dec 2011 15:16:25 +0000 (17:16 +0200)
commitf9f09f7c33bfa2f9c2115105d501f566912a37e1
tree11464570f90b4fed8dad9014808e15bbd4d3b0ed
parent378ee7e6dd301347c6bf2c740cb1fb40174bcb8b
kvm tools: Create arch-specific kvm_cpu__emulate_{mm}io()

Different architectures will deal with MMIO exits differently.  For example,
KVM_EXIT_IO is x86-specific, and I/O cycles are often synthesised by steering
into windows in PCI bridges on other architectures.

This patch calls arch-specific kvm_cpu__emulate_io() and kvm_cpu__emulate_mmio()
from the main runloop's IO and MMIO exit handlers.  For x86, these directly
call kvm__emulate_io() and kvm__emulate_mmio() but other architectures will
perform some address munging before passing on the call.

Signed-off-by: Matt Evans <matt@ozlabs.org>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/kvm-cpu.c
tools/kvm/x86/include/kvm/kvm-cpu-arch.h