From 2ea2f369eb3aae4a9bfaa86ce51c31a5258ee20f Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 22 Feb 2008 18:32:41 +0000 Subject: hvm: More emulation changes: push some of the realmode or HVM-emulate specific stuff into core x86_emulate(). Signed-off-by: Keir Fraser --- xen/arch/x86/hvm/io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xen/arch/x86/hvm/io.c') diff --git a/xen/arch/x86/hvm/io.c b/xen/arch/x86/hvm/io.c index 48415c7690..83d73a0e9e 100644 --- a/xen/arch/x86/hvm/io.c +++ b/xen/arch/x86/hvm/io.c @@ -262,8 +262,8 @@ int handle_mmio(void) ctxt.insn_buf[4], ctxt.insn_buf[5]); return 0; case X86EMUL_EXCEPTION: - if ( ctxt.flags.exn_pending ) - hvm_inject_exception(ctxt.exn_vector, 0, 0); + if ( ctxt.exn_pending ) + hvm_inject_exception(ctxt.exn_vector, ctxt.exn_error_code, 0); break; default: break; -- cgit v1.2.3