[PATCH 0/2] Fix the init path of generic vhost-vdpa device

Longpeng(Mike) via posted 2 patches 2 years, 8 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20221224114848.3062-1-longpeng2@huawei.com
Maintainers: "Michael S. Tsirkin" <mst@redhat.com>, Jason Wang <jasowang@redhat.com>
hw/virtio/vdpa-dev.c           |  9 +++++++++
hw/virtio/vhost-vdpa.c         |  7 +++++++
include/hw/virtio/vhost-vdpa.h |  2 ++
net/vhost-vdpa.c               | 16 +++++++---------
4 files changed, 25 insertions(+), 9 deletions(-)
[PATCH 0/2] Fix the init path of generic vhost-vdpa device
Posted by Longpeng(Mike) via 2 years, 8 months ago
From: Longpeng <longpeng2@huawei.com>

The generic vhost-vdpa device and the commit a585fad26b ("vdpa: request
iova_range only once") are merged in the same pull request, and the later
would cause the generic vhost-vdpa device work improperly.

Patch 1 fixes the problem and patch 2 hardens the error path of vdpa/net.

Longpeng (Mike) (2):
  vdpa-dev: get iova range explicitly
  vdpa: harden the error path if get_iova_range failed

 hw/virtio/vdpa-dev.c           |  9 +++++++++
 hw/virtio/vhost-vdpa.c         |  7 +++++++
 include/hw/virtio/vhost-vdpa.h |  2 ++
 net/vhost-vdpa.c               | 16 +++++++---------
 4 files changed, 25 insertions(+), 9 deletions(-)

-- 
2.23.0