]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: implement support for Fibre Channel VMID
authorPavel Hrdina <phrdina@redhat.com>
Mon, 2 Aug 2021 18:26:57 +0000 (20:26 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 17 Aug 2021 11:51:40 +0000 (13:51 +0200)
commit6cbb1865d8f009a47775199489aecb0bcead31e2
tree8f4bd564bda1bb18020c997d1c02210fbe0ac925
parent38b5f4faabccf681439d99e5394954c6ef7a5a40
qemu: implement support for Fibre Channel VMID

Based on kernel commit messages the interface is

    /sys/class/fc/fc_udev_device/appid_store

where we need to write the following string "$INODE:$APPID".

$INODE is the VM root cgroup inode in hexadecimal and $APPID is user
provided string that will be attached to each FC frame for the VM
within the cgroup identified by inode and has limit 128 bytes.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_cgroup.c