From: "Christoph Egger" <Christoph.Egger@amd.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH][HVM][SVM] Fix machine check intercept correctly
Date: Mon, 1 Oct 2007 17:33:13 +0200 [thread overview]
Message-ID: <200710011733.13803.Christoph.Egger@amd.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 629 bytes --]
Hi!
Attached patch fixes machine check interception
for HVM guests.
Keir: Please apply this patch to xen-staging *and* to Xen 3.1.1
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
--
AMD Saxony, Dresden, Germany
Operating System Research Center
Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
Dr. Hans-R. Deppe, Thomas McCoy
[-- Attachment #2: xen_svm_mc.diff --]
[-- Type: text/plain, Size: 791 bytes --]
diff -r 5c7afb32df99 xen/arch/x86/hvm/svm/svm.c
--- a/xen/arch/x86/hvm/svm/svm.c Mon Oct 01 06:39:00 2007 +0100
+++ b/xen/arch/x86/hvm/svm/svm.c Mon Oct 01 15:29:14 2007 +0200
@@ -2166,7 +2166,6 @@ asmlinkage void svm_vmexit_handler(struc
case VMEXIT_EXCEPTION_MC:
HVMTRACE_0D(MCE, v);
- do_machine_check(regs);
break;
case VMEXIT_VINTR:
diff -r 5c7afb32df99 xen/arch/x86/hvm/svm/vmcb.c
--- a/xen/arch/x86/hvm/svm/vmcb.c Mon Oct 01 06:39:00 2007 +0100
+++ b/xen/arch/x86/hvm/svm/vmcb.c Wed Sep 26 13:32:24 2007 +0200
@@ -252,6 +252,7 @@ static int construct_vmcb(struct vcpu *v
{
vmcb->exception_intercepts = HVM_TRAP_MASK | (1U << TRAP_page_fault);
}
+ vmcb->exception_intercepts |= 1U << TRAP_machine_check;
return 0;
}
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next reply other threads:[~2007-10-01 15:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-01 15:33 Christoph Egger [this message]
2007-10-01 16:10 ` [PATCH][HVM][SVM] Fix machine check intercept correctly Keir Fraser
2007-10-01 16:17 ` Woller, Thomas
2007-10-02 5:37 ` Keir Fraser
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=200710011733.13803.Christoph.Egger@amd.com \
--to=christoph.egger@amd.com \
--cc=xen-devel@lists.xensource.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.