summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2012-09-03 12:24:26 (GMT)
committerAvi Kivity <avi@redhat.com>2012-09-06 15:06:37 (GMT)
commit716d51abff06f48425cef15d78ca6f36093f6dbf (patch)
tree15449b877468b066a7f2b43fcdb9c459c748cbee /arch/x86/include/asm/kvm_host.h
parent3b4dc3a031110753b9ba36432dbd21f989fcee56 (diff)
downloadlinux-fsl-qoriq-716d51abff06f48425cef15d78ca6f36093f6dbf.tar.xz
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/asm/kvm_host.h')
-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 fc0e752..64adb61 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;