|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN PATCH v1 2/7] x86/intel: guard vmce_has_lmce() with INTEL option
29.04.24 18:34, Jan Beulich: On 23.04.2024 10:50, Sergiy Kibrik wrote:Since MCG_LMCE_P bit is specific to Intel CPUsThat's the case now. It could change going forward, and an underlying hypervisor might also have (obscure?) reasons to surface it elsewhere.the code to check it can possibly be excluded from build if !CONFIG_INTEL. With these guards calls to vmce_has_lmce() are eliminated and mce_intel.c can end up not being built. Also replace boilerplate code that checks for MCG_LMCE_P flag with vmce_has_lmce(), which might contribute to readability a bit.Alternatively, have you considered making that function an inline one in a suitable header? Besides addressing your build issue (I think), ... I think I'll move vmce_has_lmce() to arch/x86/cpu/mcheck/mce.h then, if no objections. -Sergiy
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |