Skip to content

block/blkio: support fd passing for virtio-blk-vhost-vdpa driver

Stefano Garzarella requested to merge sgarzarella/qemu-kvm-c-9-s:bz2180076 into c9s

Merge Request Required Information

Summary of Changes

The virtio-blk-vhost-vdpa driver in libblkio 1.3.0 supports the new 'fd' property. Let's expose this to the user, so the management layer can pass the file descriptor of an already opened vhost-vdpa character device. This is useful especially when the device can only be accessed with certain privileges.

$ git backport-diff -u upstream/master -r c9s..HEAD 
Key:
[----] : patches are identical
[####] : number of functional differences between upstream/downstream patch
[down] : patch is downstream-only
The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively

001/2:[----] [--] 'block/blkio: use qemu_open() to support fd passing for virtio-blk'
002/2:[----] [--] 'qapi: add '@fdset' feature for BlockdevOptionsVirtioBlkVhostVdpa'

Approved Development Ticket

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2180076

Signed-off-by: Stefano Garzarella sgarzare@redhat.com

Merge request reports