qemu/scsi
Paolo Bonzini b855f8d175 scsi: build qemu-pr-helper
Introduce a privileged helper to run persistent reservation commands.
This lets virtual machines send persistent reservations without using
CAP_SYS_RAWIO or out-of-tree patches.  The helper uses Unix permissions
and SCM_RIGHTS to restrict access to processes that can access its socket
and prove that they have an open file descriptor for a raw SCSI device.

The next patch will also correct the usage of persistent reservations
with multipath devices.

It would also be possible to support for Linux's IOC_PR_* ioctls in
the future, to support NVMe devices.  For now, however, only SCSI is
supported.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2017-09-22 21:07:24 +02:00
..
Makefile.objs scsi, file-posix: add support for persistent reservation management 2017-09-22 01:06:51 +02:00
pr-helper.h scsi: build qemu-pr-helper 2017-09-22 21:07:24 +02:00
pr-manager.c scsi, file-posix: add support for persistent reservation management 2017-09-22 01:06:51 +02:00
qemu-pr-helper.c scsi: build qemu-pr-helper 2017-09-22 21:07:24 +02:00
trace-events scsi, file-posix: add support for persistent reservation management 2017-09-22 01:06:51 +02:00
utils.c scsi: move block/scsi.h to include/scsi/constants.h 2017-09-19 14:09:31 +02:00