aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2012-09-03 08:24:26 -0400
committerAvi Kivity <avi@redhat.com>2012-09-06 11:06:37 -0400
commit716d51abff06f48425cef15d78ca6f36093f6dbf (patch)
tree15449b877468b066a7f2b43fcdb9c459c748cbee /arch/x86/include
parent3b4dc3a031110753b9ba36432dbd21f989fcee56 (diff)
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 {
414 struct x86_emulate_ctxt emulate_ctxt; 414 struct x86_emulate_ctxt emulate_ctxt;
415 bool emulate_regs_need_sync_to_vcpu; 415 bool emulate_regs_need_sync_to_vcpu;
416 bool emulate_regs_need_sync_from_vcpu; 416 bool emulate_regs_need_sync_from_vcpu;
417 int (*complete_userspace_io)(struct kvm_vcpu *vcpu);
417 418
418 gpa_t time; 419 gpa_t time;
419 struct pvclock_vcpu_time_info hv_clock; 420 struct pvclock_vcpu_time_info hv_clock;