virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] vhost/net: Clear the pending messages when the backend is removed
@ 2023-01-17 15:15 Eric Auger
  2023-01-17 15:15 ` [PATCH 1/2] vhost: Remove the enabled parameter from vhost_init_device_iotlb Eric Auger
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Eric Auger @ 2023-01-17 15:15 UTC (permalink / raw)
  To: eric.auger.pro, eric.auger, mst, jasowang, kvm, netdev,
	virtualization
  Cc: lvivier

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. This is due to the fact
the pending messages are not cleared.

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 (fd = -1).

This version is a follow-up on the discussions held in [1].

The first patch removes an unused 'enabled' parameter in
vhost_init_device_iotlb().

Best Regards

Eric

History:
[1] RFC: [RFC] vhost: Clear the pending messages on vhost_init_device_iotlb()
https://lore.kernel.org/all/20221107203431.368306-1-eric.auger@redhat.com/

Eric Auger (2):
  vhost: Remove the enabled parameter from vhost_init_device_iotlb
  vhost/net: Clear the pending messages when the backend is removed

 drivers/vhost/net.c   | 5 ++++-
 drivers/vhost/vhost.c | 5 +++--
 drivers/vhost/vhost.h | 3 ++-
 3 files changed, 9 insertions(+), 4 deletions(-)

-- 
2.31.1

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-29 22:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-17 15:15 [PATCH 0/2] vhost/net: Clear the pending messages when the backend is removed Eric Auger
2023-01-17 15:15 ` [PATCH 1/2] vhost: Remove the enabled parameter from vhost_init_device_iotlb Eric Auger
2023-01-17 15:15 ` [PATCH 2/2] vhost/net: Clear the pending messages when the backend is removed Eric Auger
2023-01-29 17:58 ` [PATCH 0/2] " Eric Auger
2023-01-29 22:33   ` Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).