All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][HVM][SVM] Fix machine check intercept correctly
@ 2007-10-01 15:33 Christoph Egger
  2007-10-01 16:10 ` Keir Fraser
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Egger @ 2007-10-01 15:33 UTC (permalink / raw)
  To: xen-devel

[-- 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-10-02  5:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-01 15:33 [PATCH][HVM][SVM] Fix machine check intercept correctly Christoph Egger
2007-10-01 16:10 ` Keir Fraser
2007-10-01 16:17   ` Woller, Thomas
2007-10-02  5:37     ` Keir Fraser

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.