]> git.baikalelectronics.ru Git - kernel.git/commit
x86/xen: resume timer irqs early
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 7 Aug 2014 16:06:06 +0000 (17:06 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 11 Aug 2014 10:59:34 +0000 (11:59 +0100)
commit65b97d90c716e3cf435eb03512ddfd0d7a394437
tree38fcf034dcaba3286bd00fe9ac662876cf7aa893
parent6ddd3926173cfc07d310a943a85eecf1232c57b1
x86/xen: resume timer irqs early

If the timer irqs are resumed during device resume it is possible in
certain circumstances for the resume to hang early on, before device
interrupts are resumed.  For an Ubuntu 14.04 PVHVM guest this would
occur in ~0.5% of resume attempts.

It is not entirely clear what is occuring the point of the hang but I
think a task necessary for the resume calls schedule_timeout(),
waiting for a timer interrupt (which never arrives).  This failure may
require specific tasks to be running on the other VCPUs to trigger
(processes are not frozen during a suspend/resume if PREEMPT is
disabled).

Add IRQF_EARLY_RESUME to the timer interrupts so they are resumed in
syscore_resume().

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: stable@vger.kernel.org
arch/x86/xen/time.c