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

[Xen-devel] [PATCH v2 00/12] Add LMCE support



v1 and test instructions can be found at
https://lists.xenproject.org/archives/html/xen-devel/2017-02/msg02084.html

Note: the xl config for LMCE is changed from "lmce=1" to "mca_caps=[ "lmce" ]".

Other changes are logged in each patch separately.

This patch series is organized as below:
 * Patch 1 - 3 are new in this series and for code cleanup.
 * Patch 4 & 5 correspond to v1 patch 12 & 13, which add host-side
   LMCE support, including detecting, enabling and handling LMCE.
 * Patch 6 - 9 correspond to v1 patch 14 - 17, which add guest-side
   LMCE support (only HVM domain so far), including emulating LMCE
   feature and injecting LMCE to HVM domain.
 * Patch 10 - 12 correspond to v1 patch 18 & 19, which add xen-mceinj
   support to inject LMCE for test purpose.

Haozhong Zhang (12):
  01/12 xen/mce: switch bool_t/1/0 to bool/true/false
  02/12 x86/mce_intel: refine messages of MCA capabilities
  03/12 xen/mce: add blank lines between non-fall-through switch case blocks
  04/12 x86/mce: handle LMCE locally
  05/12 x86/mce_intel: detect and enable LMCE on Intel host
  06/12 x86/vmx: expose LMCE feature via guest MSR_IA32_FEATURE_CONTROL
  07/12 x86/vmce: emulate MSR_IA32_MCG_EXT_CTL
  08/12 x86/vmce: enable injecting LMCE to guest on Intel host
  09/12 x86/vmce, tools/libxl: expose LMCE capability in guest MSR_IA32_MCG_CAP
  10/12 xen/mce: add support of vLMCE injection to XEN_MC_inject_v2
  11/12 tools/libxc: add support of injecting MC# to specified CPUs
  12/12 tools/xen-mceinj: add support of injecting LMCE

 docs/man/xl.cfg.pod.5.in                |  24 ++++++
 tools/libxc/include/xenctrl.h           |   2 +
 tools/libxc/xc_misc.c                   |  52 +++++++++++-
 tools/libxl/libxl_dom.c                 |  30 +++++++
 tools/libxl/libxl_types.idl             |   1 +
 tools/tests/mce-test/tools/xen-mceinj.c |  50 ++++++++++-
 tools/xl/xl_parse.c                     |   4 +
 xen/arch/x86/acpi/power.c               |   2 +-
 xen/arch/x86/cpu/common.c               |   4 +-
 xen/arch/x86/cpu/mcheck/barrier.c       |  14 ++--
 xen/arch/x86/cpu/mcheck/barrier.h       |  14 +++-
 xen/arch/x86/cpu/mcheck/mcaction.c      |  26 ++++--
 xen/arch/x86/cpu/mcheck/mcaction.h      |   2 +-
 xen/arch/x86/cpu/mcheck/mce-apei.c      |   2 +-
 xen/arch/x86/cpu/mcheck/mce.c           | 100 +++++++++++++++-------
 xen/arch/x86/cpu/mcheck/mce.h           |  26 +++---
 xen/arch/x86/cpu/mcheck/mce_amd.c       |  24 +++---
 xen/arch/x86/cpu/mcheck/mce_amd.h       |   4 +-
 xen/arch/x86/cpu/mcheck/mce_intel.c     | 143 ++++++++++++++++++++++----------
 xen/arch/x86/cpu/mcheck/mctelem.c       |   6 +-
 xen/arch/x86/cpu/mcheck/mctelem.h       |   2 +-
 xen/arch/x86/cpu/mcheck/vmce.c          |  82 +++++++++++++++++-
 xen/arch/x86/cpu/mcheck/vmce.h          |   2 +-
 xen/arch/x86/cpu/mcheck/x86_mca.h       |  13 ++-
 xen/arch/x86/hvm/hvm.c                  |   5 ++
 xen/arch/x86/hvm/vmx/vmx.c              |   9 ++
 xen/arch/x86/hvm/vmx/vvmx.c             |   4 -
 xen/include/asm-x86/mce.h               |   3 +
 xen/include/asm-x86/msr-index.h         |   2 +
 xen/include/public/arch-x86/hvm/save.h  |   2 +
 xen/include/public/arch-x86/xen-mca.h   |   1 +
 xen/include/public/domctl.h             |   2 +-
 xen/include/public/hvm/params.h         |   7 +-
 33 files changed, 526 insertions(+), 138 deletions(-)

-- 
2.10.1


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

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