[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-4.1-testing] X86-MCE: fix a bug of xen-mceinj tool



# HG changeset patch
# User Liu, Jinsong <jinsong.liu@xxxxxxxxx>
# Date 1324219708 0
# Node ID e2af3c4e4c1d065e41fe1bb57923856f2b357172
# Parent  6ccf1820fb942ddf8b54bd4dc1ddb2eae4667d3d
X86-MCE: fix a bug of xen-mceinj tool

Fix a bug of xen-mceinj tool which used to test mce by software way.

Signed-off-by: Liu, Jinsong <jinsong.liu@xxxxxxxxx>
Committed-by: Keir Fraser <keir@xxxxxxx>
xen-unstable changeset:   24429:9587ccc2ae31
xen-unstable date:        Sun Dec 18 14:40:00 2011 +0000
---


diff -r 6ccf1820fb94 -r e2af3c4e4c1d tools/tests/mce-test/tools/xen-mceinj.c
--- a/tools/tests/mce-test/tools/xen-mceinj.c   Sun Dec 18 14:47:23 2011 +0000
+++ b/tools/tests/mce-test/tools/xen-mceinj.c   Sun Dec 18 14:48:28 2011 +0000
@@ -134,8 +134,12 @@
 {
     struct xen_mc mc;
 
+    memset(&mc, 0, sizeof(struct xen_mc));
+
     mc.cmd = XEN_MC_physcpuinfo;
-    if (xc_mca_op(xc_handle, &mc))
+    mc.interface_version = XEN_MCA_INTERFACE_VERSION;
+
+    if (!xc_mca_op(xc_handle, &mc))
         return mc.u.mc_physcpuinfo.ncpus;
     else
         return 0;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.