All of lore.kernel.org
 help / color / mirror / Atom feed
* [XEN PATCH v1 0/2] x86/CPU: optional build of Intel/AMD CPUs support
@ 2024-08-09 10:07 Sergiy Kibrik
  2024-08-09 10:09 ` [XEN PATCH v1 1/2] x86/intel: optional build of intel.c Sergiy Kibrik
  2024-08-09 10:11 ` [XEN PATCH v1 2/2] x86/amd: optional build of amd.c Sergiy Kibrik
  0 siblings, 2 replies; 12+ messages in thread
From: Sergiy Kibrik @ 2024-08-09 10:07 UTC (permalink / raw)
  To: xen-devel
  Cc: Sergiy Kibrik, Jan Beulich, Andrew Cooper, Roger Pau Monné,
	Stefano Stabellini

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



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-08-15 10:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-09 10:07 [XEN PATCH v1 0/2] x86/CPU: optional build of Intel/AMD CPUs support Sergiy Kibrik
2024-08-09 10:09 ` [XEN PATCH v1 1/2] x86/intel: optional build of intel.c Sergiy Kibrik
2024-08-09 10:36   ` Alejandro Vallejo
2024-08-12  9:40     ` Sergiy Kibrik
2024-08-12  9:58       ` Jan Beulich
2024-08-12 12:24         ` Alejandro Vallejo
2024-08-12 14:14           ` Sergiy Kibrik
2024-08-13  7:40   ` Jan Beulich
2024-08-15 10:58     ` Sergiy Kibrik
2024-08-09 10:11 ` [XEN PATCH v1 2/2] x86/amd: optional build of amd.c Sergiy Kibrik
2024-08-13  7:50   ` Jan Beulich
2024-08-15 10:13     ` Sergiy Kibrik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.