Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
xen
24429-mceinj-tool.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 24429-mceinj-tool.patch of Package xen
# HG changeset patch # User Liu, Jinsong <jinsong.liu@intel.com> # Date 1324219200 0 # Node ID 9587ccc2ae3192fd5625a87fa58e840377471867 # Parent 5b4b7e565ab82b06940889f2be7e30042b2881fc 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@intel.com> Committed-by: Keir Fraser <keir@xen.org> --- a/tools/tests/mce-test/tools/xen-mceinj.c +++ b/tools/tests/mce-test/tools/xen-mceinj.c @@ -134,8 +134,12 @@ static int mca_cpuinfo(xc_interface *xc_ { 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;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor