Re: [XEN PATCH v4 1/3] x86/intel: move vmce_has_lmce() routine to header

2024-05-27 Thread Jan Beulich
On 22.05.2024 10:40, Sergiy Kibrik wrote: > --- a/xen/arch/x86/msr.c > +++ b/xen/arch/x86/msr.c > @@ -24,6 +24,8 @@ > > #include > > +#include "cpu/mcheck/mce.h" Considering that I asked about this before, I'm a little irritated that this is is entirely unadorned. Such an unusual #include wa

[XEN PATCH v4 1/3] x86/intel: move vmce_has_lmce() routine to header

2024-05-22 Thread Sergiy Kibrik
Moving this function out of mce_intel.c will make it possible to disable build of Intel MCE code later on, because the function gets called from common x86 code. Also replace boilerplate code that checks for MCG_LMCE_P flag with vmce_has_lmce(), which might contribute to readability a bit. Signed