Re: [XEN PATCH v1 2/2] x86/amd: optional build of amd.c

2024-08-15 Thread Sergiy Kibrik
13.08.24 10:50, Jan Beulich: On 09.08.2024 12:11, Sergiy Kibrik wrote: --- a/xen/arch/x86/include/asm/amd.h +++ b/xen/arch/x86/include/asm/amd.h @@ -158,13 +158,21 @@ #define is_zen4_uarch() boot_cpu_has(X86_FEATURE_AUTO_IBRS) struct cpuinfo_x86; +#ifdef CONFIG_AMD int cpu_has_amd_er

Re: [XEN PATCH v1 2/2] x86/amd: optional build of amd.c

2024-08-13 Thread Jan Beulich
On 09.08.2024 12:11, Sergiy Kibrik wrote: > --- a/xen/arch/x86/include/asm/amd.h > +++ b/xen/arch/x86/include/asm/amd.h > @@ -158,13 +158,21 @@ > #define is_zen4_uarch() boot_cpu_has(X86_FEATURE_AUTO_IBRS) > > struct cpuinfo_x86; > +#ifdef CONFIG_AMD > int cpu_has_amd_erratum(const struct cp

[XEN PATCH v1 2/2] x86/amd: optional build of amd.c

2024-08-09 Thread Sergiy Kibrik
Similar to making Intel CPU support optional -- as we've got CONFIG_AMD option now, we can put arch/x86/cpu/amd.c under it and make it possible to build Xen without AMD CPU support. One possible use case is to dispose of dead code in Intel-only systems. Signed-off-by: Sergiy Kibrik --- xen/arch/