]> git.ipfire.org Git - thirdparty/qemu.git/commit
vdpa: factor out vhost_vdpa_last_dev
authorSi-Wei Liu <si-wei.liu@oracle.com>
Wed, 14 Feb 2024 11:27:53 +0000 (03:27 -0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 12 Mar 2024 21:56:55 +0000 (17:56 -0400)
commitc812b0655f8ccd1def48f14b89cec07e8fb68d83
treef85fc3f8fc23b32f9fcc2c0b3076a43f17bbb36d
parent573581b18dfd458ddac22f832bfb3f6fc9b585dc
vdpa: factor out vhost_vdpa_last_dev

Generalize duplicated condition check for the last vq of vdpa
device to a common function.

Message-Id: <1707910082-10243-4-git-send-email-si-wei.liu@oracle.com>
Reviewed-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Si-Wei Liu <si-wei.liu@oracle.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost-vdpa.c