[XEN PATCH v1 0/7] x86: make Intel/AMD vPMU & MCE support configurable

Sergiy Kibrik posted 7 patches 1 week, 6 days ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/cover.1713860310.git.Sergiy._5FKibrik@epam.com
There is a newer version of this series
xen/arch/x86/cpu/Makefile           |  4 +++-
xen/arch/x86/cpu/mcheck/Makefile    |  6 ++----
xen/arch/x86/cpu/mcheck/mce.c       | 13 ++++++++-----
xen/arch/x86/cpu/mcheck/non-fatal.c |  6 ++++++
xen/arch/x86/cpu/mcheck/vmce.c      | 18 +++++++++++-------
xen/arch/x86/cpu/mcheck/vmce.h      |  1 +
xen/arch/x86/include/asm/vpmu.h     | 19 +++++++++++++++++++
xen/arch/x86/msr.c                  |  2 +-
8 files changed, 51 insertions(+), 18 deletions(-)
[XEN PATCH v1 0/7] x86: make Intel/AMD vPMU & MCE support configurable
Posted by Sergiy Kibrik 1 week, 6 days ago
Here's an attempt to further 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,
that is not building Intel or AMD vpmu/mcheck support if CPU vendor's support
was explicitly disabled.

Sergiy Kibrik (7):
  x86/vpmu: separate amd/intel vPMU code
  x86/intel: guard vmce_has_lmce() with INTEL option
  x86/MCE: guard access to Intel/AMD-specific MCA MSRs
  x86/MCE: guard lmce_support/cmci_support
  x86/MCE: guard {intel/amd}_mcheck_init() calls
  x86/MCE: guard call to Intel-specific intel_get_extended_msrs()
  x86/MCE: optional build of AMD/Intel MCE code

 xen/arch/x86/cpu/Makefile           |  4 +++-
 xen/arch/x86/cpu/mcheck/Makefile    |  6 ++----
 xen/arch/x86/cpu/mcheck/mce.c       | 13 ++++++++-----
 xen/arch/x86/cpu/mcheck/non-fatal.c |  6 ++++++
 xen/arch/x86/cpu/mcheck/vmce.c      | 18 +++++++++++-------
 xen/arch/x86/cpu/mcheck/vmce.h      |  1 +
 xen/arch/x86/include/asm/vpmu.h     | 19 +++++++++++++++++++
 xen/arch/x86/msr.c                  |  2 +-
 8 files changed, 51 insertions(+), 18 deletions(-)

-- 
2.25.1