[XEN PATCH v1 0/2] x86/CPU: optional build of Intel/AMD CPUs support

Sergiy Kibrik posted 2 patches 3 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/cover.1723196909.git.Sergiy._5FKibrik@epam.com
There is a newer version of this series
xen/arch/x86/cpu/Makefile            | 10 +++++-----
xen/arch/x86/cpu/common.c            |  8 ++++++--
xen/arch/x86/include/asm/amd.h       | 22 ++++++++++++++++++++++
xen/arch/x86/include/asm/processor.h |  7 ++++---
xen/arch/x86/spec_ctrl.c             |  2 ++
5 files changed, 39 insertions(+), 10 deletions(-)
[XEN PATCH v1 0/2] x86/CPU: optional build of Intel/AMD CPUs support
Posted by Sergiy Kibrik 3 months, 2 weeks ago
This series is one more step towards separation of Intel/AMD support in Xen.
With all preparation work is mostly done now, it becomes possible to make build
of arch/x86/cpu/{amd.c,intel.c} files optional, depending on whether
CONFIG_{AMD,INTEL} are enabled or not.

This can be useful for builds tuned for specific platform -- by reducing dead
code that won't ever be executed on that platform anyway.

Note: this series (namely its Intel part) depends on optional PSR support patch:
https://lore.kernel.org/xen-devel/20240801084453.1163506-1-Sergiy_Kibrik@epam.com/

  -Sergiy
  
Sergiy Kibrik (2):
  x86/intel: optional build of intel.c
  x86/amd: optional build of amd.c

 xen/arch/x86/cpu/Makefile            | 10 +++++-----
 xen/arch/x86/cpu/common.c            |  8 ++++++--
 xen/arch/x86/include/asm/amd.h       | 22 ++++++++++++++++++++++
 xen/arch/x86/include/asm/processor.h |  7 ++++---
 xen/arch/x86/spec_ctrl.c             |  2 ++
 5 files changed, 39 insertions(+), 10 deletions(-)

-- 
2.25.1