Re: [XEN PATCH v2 2/5] x86/intel: move vmce_has_lmce() routine to header

2024-05-13 Thread Sergiy Kibrik
06.05.24 14:18, Jan Beulich: On 02.05.2024 11:14, Sergiy Kibrik wrote: Moving this function out of mce_intel.c would make it possible to disable build of Intel MCE code later on, because the function gets called from common x86 code. Add internal check for CONFIG_INTEL option, as MCG_LMCE_P bit

Re: [XEN PATCH v2 2/5] x86/intel: move vmce_has_lmce() routine to header

2024-05-06 Thread Jan Beulich
On 02.05.2024 11:14, Sergiy Kibrik wrote: > Moving this function out of mce_intel.c would make it possible to disable > build of Intel MCE code later on, because the function gets called from > common x86 code. > > Add internal check for CONFIG_INTEL option, as MCG_LMCE_P bit is currently > specif

[XEN PATCH v2 2/5] x86/intel: move vmce_has_lmce() routine to header

2024-05-02 Thread Sergiy Kibrik
Moving this function out of mce_intel.c would make it possible to disable build of Intel MCE code later on, because the function gets called from common x86 code. Add internal check for CONFIG_INTEL option, as MCG_LMCE_P bit is currently specific to Intel CPUs only. Also replace boilerplate code