KVM: Provide userspace IO exit completion callback
authorGleb Natapov <gleb@redhat.com>
Mon, 3 Sep 2012 12:24:26 +0000 (15:24 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 6 Sep 2012 15:06:37 +0000 (18:06 +0300)
commit716d51abff06f48425cef15d78ca6f36093f6dbf
tree15449b877468b066a7f2b43fcdb9c459c748cbee
parent3b4dc3a031110753b9ba36432dbd21f989fcee56
KVM: Provide userspace IO exit completion callback

Current code assumes that IO exit was due to instruction emulation
and handles execution back to emulator directly. This patch adds new
userspace IO exit completion callback that can be set by any other code
that caused IO exit to userspace.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c