aboutsummaryrefslogtreecommitdiff
path: root/crypto/rng.c
diff options
context:
space:
mode:
authorEric Auger2023-01-17 10:15:18 -0500
committerGreg Kroah-Hartman2023-02-09 11:28:03 +0100
commitccbe22d4843da9aef2a9cf9ac7a6253430640b05 (patch)
treebde46d7332adbc0366c8c490c69b732380addd6a /crypto/rng.c
parent0b49da857d32b3162d9465cdfa93043b33b83352 (diff)
vhost/net: Clear the pending messages when the backend is removed
[ Upstream commit 9526f9a2b762af16be94a72aca5d65c677d28f50 ] When the vhost iotlb is used along with a guest virtual iommu and the guest gets rebooted, some MISS messages may have been recorded just before the reboot and spuriously executed by the virtual iommu after the reboot. As vhost does not have any explicit reset user API, VHOST_NET_SET_BACKEND looks a reasonable point where to clear the pending messages, in case the backend is removed. Export vhost_clear_msg() and call it in vhost_net_set_backend() when fd == -1. Signed-off-by: Eric Auger <eric.auger@redhat.com> Suggested-by: Jason Wang <jasowang@redhat.com> Fixes: 6b1e6cc7855b0 ("vhost: new device IOTLB API") Message-Id: <20230117151518.44725-3-eric.auger@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'crypto/rng.c')
0 files changed, 0 insertions, 0 deletions