mbox series

[XEN,v3,0/6] x86: make Intel/AMD vPMU & MCE support configurable

Message ID cover.1715673586.git.Sergiy_Kibrik@epam.com (mailing list archive)
Headers show
Series x86: make Intel/AMD vPMU & MCE support configurable | expand

Message

Sergiy Kibrik May 14, 2024, 8:16 a.m. UTC
This series aims to separate support of Intel & AMD CPUs in Xen build.
The code to drive both platforms used to be built unconditionally, until recent
introduction of CONFIG_{AMD,INTEL} Kconfig options.

This series extends coverage of these options on vpmu and mcheck subsystems,
which allows not to build Intel or AMD vpmu/mcheck support if CPU vendor's support
was explicitly disabled.

Since v2 series one patch had been split into two patches for more clarity,
hence series became one piece longer, and last patch changed significantly.
Other changes are mostly cosmetic and tags addition.
Specific changes since v2 are provided per-patch.

v2 series here:
https://lore.kernel.org/xen-devel/cover.1714640459.git.Sergiy_Kibrik@epam.com/

  -Sergiy

Sergiy Kibrik (6):
  x86/vpmu: separate amd/intel vPMU code
  x86/intel: move vmce_has_lmce() routine to header
  x86/MCE: guard access to Intel/AMD-specific MCA MSRs
  x86/MCE: guard {intel/amd}_mcheck_init() calls
  x86/MCE: add default switch case in init_nonfatal_mce_checker()
  x86/MCE: optional build of AMD/Intel MCE code

 xen/arch/x86/cpu/Makefile           |  4 +++-
 xen/arch/x86/cpu/mcheck/Makefile    |  8 ++++----
 xen/arch/x86/cpu/mcheck/mce.c       |  8 ++++++++
 xen/arch/x86/cpu/mcheck/mce.h       |  5 +++++
 xen/arch/x86/cpu/mcheck/mce_intel.c |  8 --------
 xen/arch/x86/cpu/mcheck/non-fatal.c |  8 ++++++++
 xen/arch/x86/cpu/mcheck/vmce.c      | 13 ++++++++++---
 xen/arch/x86/cpu/vpmu.c             |  4 ++++
 xen/arch/x86/include/asm/mce.h      |  1 -
 xen/arch/x86/msr.c                  |  2 ++
 10 files changed, 44 insertions(+), 17 deletions(-)