1. 29 9月, 2020 3 次提交
    • L
      virtio-mem: detach the element from the virtqueue when error occurs · 0c404e45
      Li Qiang 提交于
      If error occurs while processing the virtio request we should call
      'virtqueue_detach_element' to detach the element from the virtqueue
      before free the elem.
      Signed-off-by: NLi Qiang <liq3ea@163.com>
      Message-Id: <20200816142245.17556-1-liq3ea@163.com>
      Fixes: 910b2576 ("virtio-mem: Paravirtualized memory hot(un)plug")
      Acked-by: NDavid Hildenbrand <david@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      0c404e45
    • J
      vhost-vdpa: batch updating IOTLB mappings · a5bd0580
      Jason Wang 提交于
      To speed up the memory mapping updating between vhost-vDPA and vDPA
      device driver, this patch passes the IOTLB batching flags via IOTLB
      API. Two new flags was introduced, VHOST_IOTLB_BATCH_BEGIN is a hint
      that a bathced IOTLB updating may be initiated from the
      userspace. VHOST_IOTLB_BATCH_END is a hint that userspace has finished
      the updating:
      
      VHOST_IOTLB_BATCH_BEGIN
      VHOST_IOTLB_UPDATE/VHOST_IOTLB_INVALIDATE
      ...
      VHOST_IOTLB_BATCH_END
      
      Vhost-vDPA can then know that all mappings has been set and can do
      optimization like passing all the mappings to the vDPA device driver.
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Message-Id: <20200907104903.31551-4-jasowang@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      a5bd0580
    • J
      vhost: switch to use IOTLB v2 format · b37556ed
      Jason Wang 提交于
      This patch tries to switch to use new kernel IOTLB format V2. Previous
      version may have inconsistent ABI between 32bit and 64bit machines
      because of the hole after type field. Refer kernel commit
      ("429711aec282 vhost: switch to use new message format") for more
      information.
      
      To enable this feature, qemu need to use a new ioctl
      VHOST_SET_BACKEND_FEATURE with VHOST_BACKEND_F_IOTLB_MSG_V2 bit. A new
      vhost setting backend features ops was introduced. And when we try to
      set features for vhost dev, we will examine the support of new IOTLB
      format and enable it. This process is total transparent to guest,
      which means we can have different IOTLB message type in src and dst
      during migration.
      
      The conversion of IOTLB message is straightforward, just check the
      type and behave accordingly.
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Message-Id: <20200907104903.31551-3-jasowang@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      b37556ed
  2. 26 9月, 2020 2 次提交
  3. 24 9月, 2020 3 次提交
  4. 23 9月, 2020 12 次提交
  5. 21 9月, 2020 3 次提交
  6. 19 9月, 2020 7 次提交
  7. 18 9月, 2020 4 次提交
  8. 17 9月, 2020 6 次提交