From: Bernhard Kauer <kauer@os.inf.tu-dresden.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] fix SVM event injection
Date: Wed, 23 Jan 2008 23:42:38 +0100 [thread overview]
Message-ID: <20080123224238.GA3150@chrom.inf.tu-dresden.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 116 bytes --]
The SVM event injection mechanism for NMI and INTRs should not
be handled as software interrupts.
Bernhard Kauer
[-- Attachment #2: qemu_eventinj.diff --]
[-- Type: text/x-diff, Size: 914 bytes --]
Index: target-i386/helper.c
--- target-i386/helper.c 24 Dec 2007 13:36:00 -0000 1.98
+++ target-i386/helper.c 23 Jan 2008 22:37:49 -0000
@@ -4124,7 +4193,7 @@
case SVM_EVTINJ_TYPE_INTR:
env->exception_index = vector;
env->error_code = event_inj_err;
- env->exception_is_int = 1;
+ env->exception_is_int = 0;
env->exception_next_eip = -1;
if (loglevel & CPU_LOG_TB_IN_ASM)
fprintf(logfile, "INTR");
@@ -4132,7 +4201,7 @@
case SVM_EVTINJ_TYPE_NMI:
env->exception_index = vector;
env->error_code = event_inj_err;
- env->exception_is_int = 1;
+ env->exception_is_int = 0;
env->exception_next_eip = EIP;
if (loglevel & CPU_LOG_TB_IN_ASM)
fprintf(logfile, "NMI");
reply other threads:[~2008-01-23 22:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080123224238.GA3150@chrom.inf.tu-dresden.de \
--to=kauer@os.inf.tu-dresden.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).