Drivers: hv: vmbus: Base host signaling strictly on the ring state
authorK. Y. Srinivasan <kys@microsoft.com>
Sun, 6 Nov 2016 21:14:16 +0000 (13:14 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Nov 2016 09:01:17 +0000 (10:01 +0100)
commit74198eb4a42c4a3c4fbef08fa01a291a282f7c2e
tree896b7e4abbabdafdd892bbcdfeaff3dbb0258e90
parent0c38cda64aecb4a821210bb2d3d04092c181c0ae
Drivers: hv: vmbus: Base host signaling strictly on the ring state

One of the factors that can result in the host concluding that a given
guest in mounting a DOS attack is if the guest generates interrupts
to the host when the host is not expecting it. If these "spurious"
interrupts reach a certain rate, the host can throttle the guest to
minimize the impact. The host computation of the "expected number
of interrupts" is strictly based on the ring transitions. Until
the host logic is fixed, base the guest logic to interrupt solely
on the ring state.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel.c
drivers/hv/channel_mgmt.c
drivers/hv/ring_buffer.c