mbox series

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

Message ID 20221224114848.3062-1-longpeng2@huawei.com (mailing list archive)
Headers show
Series Fix the init path of generic vhost-vdpa device | expand

Message

Zhijian Li (Fujitsu)" via Dec. 24, 2022, 11:48 a.m. UTC
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(-)