1. 11 8月, 2022 3 次提交
  2. 27 6月, 2022 1 次提交
    • S
      vhost-vdpa: call vhost_vdpa_cleanup during the release · 037d4305
      Stefano Garzarella 提交于
      Before commit 3d569879 ("vhost-vdpa: introduce asid based IOTLB")
      we call vhost_vdpa_iotlb_free() during the release to clean all regions
      mapped in the iotlb.
      
      That commit removed vhost_vdpa_iotlb_free() and added vhost_vdpa_cleanup()
      to do some cleanup, including deleting all mappings, but we forgot to call
      it in vhost_vdpa_release().
      
      This causes that if an application does not remove all mappings explicitly
      (or it crashes), the mappings remain in the iotlb and subsequent
      applications may fail if they map the same addresses.
      
      Calling vhost_vdpa_cleanup() also fixes a memory leak since we are not
      freeing `v->vdev.vqs` during the release from the same commit.
      
      Since vhost_vdpa_cleanup() calls vhost_dev_cleanup() we can remove its
      call from vhost_vdpa_release().
      
      Fixes: 3d569879 ("vhost-vdpa: introduce asid based IOTLB")
      Cc: gautam.dawar@xilinx.com
      Signed-off-by: NStefano Garzarella <sgarzare@redhat.com>
      Message-Id: <20220622151407.51232-1-sgarzare@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Tested-by: NEugenio Pérez <eperezma@redhat.com>
      Acked-by: NJason Wang <jasowang@redhat.com>
      037d4305
  3. 09 6月, 2022 1 次提交
  4. 01 6月, 2022 11 次提交
  5. 29 3月, 2022 4 次提交
  6. 05 3月, 2022 1 次提交
  7. 15 1月, 2022 7 次提交
  8. 09 12月, 2021 1 次提交
  9. 25 11月, 2021 1 次提交
  10. 01 11月, 2021 1 次提交
  11. 13 10月, 2021 2 次提交
  12. 15 9月, 2021 1 次提交
  13. 06 9月, 2021 6 次提交