]> git.itanic.dy.fi Git - linux-stable/commit
xen/pvcallsback: use lateeoi irq binding
authorJuergen Gross <jgross@suse.com>
Tue, 3 Nov 2020 14:29:06 +0000 (15:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 17:28:01 +0000 (18:28 +0100)
commit52e1da512fdd278773f566c1320cbbe12d212f21
tree5c29cc32d9fc95a237bc8cb0ed13393d830c5ec6
parent81432d5da7ec727f07bec1ed06bbcfce1f01e03c
xen/pvcallsback: use lateeoi irq binding

commit c8d647a326f06a39a8e5f0f1af946eacfa1835f8 upstream.

In order to reduce the chance for the system becoming unresponsive due
to event storms triggered by a misbehaving pvcallsfront use the lateeoi
irq binding for pvcallsback and unmask the event channel only after
handling all write requests, which are the ones coming in via an irq.

This requires modifying the logic a little bit to not require an event
for each write request, but to keep the ioworker running until no
further data is found on the ring page to be processed.

This is part of XSA-332.

Cc: stable@vger.kernel.org
Reported-by: Julien Grall <julien@xen.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Wei Liu <wl@xen.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/xen/pvcalls-back.c