]> xenbits.xensource.com Git - xen.git/commitdiff
Partial revert of "x86/MCE: optional build of AMD/Intel MCE code"
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 29 May 2024 14:11:45 +0000 (16:11 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 29 May 2024 14:11:45 +0000 (16:11 +0200)
{cmci,lmce}_support are written during S3 resume, so cannot live in
__ro_after_init.  Move them back to being __read_mostly, as they were
originally.

Link: https://gitlab.com/xen-project/xen/-/jobs/6966698361
Fixes: 19b6e9f9149f ("x86/MCE: optional build of AMD/Intel MCE code")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Release-Acked-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
xen/arch/x86/cpu/mcheck/mce.c

index 1664ca6412ac4b52c1406dfb6a7f424c9aba2337..32c1b2756b904db632ebb0d2eaa2fdbe7b7eeadb 100644 (file)
@@ -38,10 +38,10 @@ DEFINE_PER_CPU_READ_MOSTLY(unsigned int, nr_mce_banks);
 unsigned int __read_mostly firstbank;
 unsigned int __read_mostly ppin_msr;
 uint8_t __read_mostly cmci_apic_vector;
-bool __ro_after_init cmci_support;
+bool __read_mostly cmci_support;
 
 /* If mce_force_broadcast == 1, lmce_support will be disabled forcibly. */
-bool __ro_after_init lmce_support;
+bool __read_mostly lmce_support;
 
 DEFINE_PER_CPU_READ_MOSTLY(struct mca_banks *, poll_bankmask);
 DEFINE_PER_CPU_READ_MOSTLY(struct mca_banks *, no_cmci_banks);