aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/x86_emulate.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2007-11-25 18:05:10 +0000
committerKeir Fraser <keir.fraser@citrix.com>2007-11-25 18:05:10 +0000
commitb8e219e001243b570045935b0476ee026e9c43b9 (patch)
treeb14abfae1418deaf3b400b921c4bbfd6b2379358 /xen/include/asm-x86/x86_emulate.h
parentd0b01f6dd89534b49fa92645fe560908e7e1bfbb (diff)
downloadxen-b8e219e001243b570045935b0476ee026e9c43b9.tar.gz
xen-b8e219e001243b570045935b0476ee026e9c43b9.tar.bz2
xen-b8e219e001243b570045935b0476ee026e9c43b9.zip
x86_emulate: Allow emulated injection of exceptions and interrupts.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/include/asm-x86/x86_emulate.h')
-rw-r--r--xen/include/asm-x86/x86_emulate.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/xen/include/asm-x86/x86_emulate.h b/xen/include/asm-x86/x86_emulate.h
index b11ec957fd..eab9a513ae 100644
--- a/xen/include/asm-x86/x86_emulate.h
+++ b/xen/include/asm-x86/x86_emulate.h
@@ -274,6 +274,17 @@ struct x86_emulate_ops
/* wbinvd: Write-back and invalidate cache contents. */
int (*wbinvd)(
struct x86_emulate_ctxt *ctxt);
+
+ /* inject_hw_exception */
+ int (*inject_hw_exception)(
+ uint8_t vector,
+ struct x86_emulate_ctxt *ctxt);
+
+ /* inject_sw_interrupt */
+ int (*inject_sw_interrupt)(
+ uint8_t vector,
+ uint8_t insn_len,
+ struct x86_emulate_ctxt *ctxt);
};
struct cpu_user_regs;