|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] x86/xen: Disable APIC PM for Xen PV guests
On 03/03/2014 09:40 PM, Boris Ostrovsky wrote: 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). This touches generic APIC code so x86 maintainers' review would be appreciated. Thanks. -boris Signed-off-by: Boris Ostrovsky<boris.ostrovsky@xxxxxxxxxx> --- arch/x86/include/asm/apic.h | 2 ++ arch/x86/kernel/apic/apic.c | 6 ++++++ arch/x86/xen/smp.c | 4 ++++ 3 files changed, 12 insertions(+) An alternative could be to add another op to stuct apic. The advantage would be the fact that we never have a window of time when APIC PM is enabled. The downside is having yet another op (of which there are already plenty). We could also avoid loading lapic_syscore_ops but I couldn't think of a good way to figure out when not to do it. diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index 1d2091a..1f100f2 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h @@ -687,6 +687,8 @@ extern int default_cpu_present_to_apicid(int mps_cpu); extern int default_check_phys_apicid_present(int phys_apicid); #endif+extern void apic_pm_deactivate(void); _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |