xen/events/fifo: reset control block and local HEADs on resume
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 31 Jul 2014 15:22:24 +0000 (16:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Sep 2014 16:19:20 +0000 (09:19 -0700)
commitbd15e8aa93ffb83a2f0ea49c7838664b32c1e005
treede37cd325cf6b008b3be211d7039037e69d7d0ce
parent4df052078015216d52dd1357d82c131059ebfb18
xen/events/fifo: reset control block and local HEADs on resume

commit c12784c3d14a2110468ec4d1383f60cfd2665576 upstream.

When using the FIFO-based event channel ABI, if the control block or
the local HEADs are not reset after resuming the guest may see stale
HEAD values and will fail to traverse the FIFO correctly.

This may prevent one or more VCPUs from receiving any events following
a resume.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/xen/events/events_fifo.c