summaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2012-09-03 15:24:26 +0300
committerAvi Kivity <avi@redhat.com>2012-09-06 18:06:37 +0300
commit716d51abff06f48425cef15d78ca6f36093f6dbf (patch)
tree15449b877468b066a7f2b43fcdb9c459c748cbee /arch/x86/include
parent3b4dc3a031110753b9ba36432dbd21f989fcee56 (diff)
downloadlinux-716d51abff06f48425cef15d78ca6f36093f6dbf.tar.gz
linux-716d51abff06f48425cef15d78ca6f36093f6dbf.tar.bz2
linux-716d51abff06f48425cef15d78ca6f36093f6dbf.zip
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>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/kvm_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index fc0e752e7564..64adb6117e19 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -414,6 +414,7 @@ struct kvm_vcpu_arch {
struct x86_emulate_ctxt emulate_ctxt;
bool emulate_regs_need_sync_to_vcpu;
bool emulate_regs_need_sync_from_vcpu;
+ int (*complete_userspace_io)(struct kvm_vcpu *vcpu);
gpa_t time;
struct pvclock_vcpu_time_info hv_clock;