hv: do not lose pending heartbeat vmbus packets
authorLong Li <longli@microsoft.com>
Wed, 5 Oct 2016 23:57:46 +0000 (16:57 -0700)
committerSasha Levin <alexander.levin@verizon.com>
Thu, 24 Nov 2016 01:59:49 +0000 (20:59 -0500)
commit1f7ff6f7910efeb370e8382bfd15e8acb1dcf003
tree3a78c8f468c92f4e431c1cb3c53a02dbe8761ecd
parent9662d19bab684d86a09db80dabd2c7f17c6afe61
hv: do not lose pending heartbeat vmbus packets

[ Upstream commit 407a3aee6ee2d2cb46d9ba3fc380bc29f35d020c ]

The host keeps sending heartbeat packets independent of the
guest responding to them.  Even though we respond to the heartbeat messages at
interrupt level, we can have situations where there maybe multiple heartbeat
messages pending that have not been responded to. For instance this occurs when the
VM is paused and the host continues to send the heartbeat messages.
Address this issue by draining and responding to all
the heartbeat messages that maybe pending.

Signed-off-by: Long Li <longli@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/hv/hv_util.c