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