Xen PV guests support only few APIC registers and writes to
unsupported registers result in WARN_ONs. Most APIC accesses in these
guests have been eliminated; however, lapic_suspend/resume are still
called (on 32-bit kernels).
We can disable APIC power management in xen_smp_prepare_boot_cpu()
(which is called after APIC has been initialized).
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
extern int default_check_phys_apicid_present(int phys_apicid);
#endif
+extern void apic_pm_deactivate(void);
+
#endif /* CONFIG_X86_LOCAL_APIC */
extern void irq_enter(void);
extern void irq_exit(void);
apic_pm_state.active = 1;
}
+void apic_pm_deactivate(void)
+{
+ apic_pm_state.active = 0;
+}
+
static int __init init_lapic_sysfs(void)
{
/* XXX: remove suspend/resume procs if !apic_pm_state.active? */
#else /* CONFIG_PM */
static void apic_pm_activate(void) { }
+void apic_pm_deactivate(void) { }
#endif /* CONFIG_PM */
xen_filter_cpu_maps();
xen_setup_vcpu_info_placement();
+
+#ifdef CONFIG_X86_LOCAL_APIC
+ apic_pm_deactivate();
+#endif
}
/*
* The alternative logic (which patches the unlock/lock) runs before