[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 06/10] scsi, file-posix: add support for persist
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH 06/10] scsi, file-posix: add support for persistent reservation management |
Date: |
Thu, 24 Aug 2017 10:37:59 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 08/22/2017 08:18 AM, Paolo Bonzini wrote:
> It is a common requirement for virtual machine to send persistent
> reservations, but this currently requires either running QEMU with
> CAP_SYS_RAWIO, or using out-of-tree patches that let an unprivileged
> QEMU bypass Linux's filter on SG_IO commands.
>
> As an alternative mechanism, the next patches will introduce a
> privileged helper to run persistent reservation commands without
> expanding QEMU's attack surface unnecessarily.
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
> +++ b/qapi/block-core.json
> @@ -2191,6 +2191,9 @@
> # Driver specific block device options for the file backend.
> #
> # @filename: path to the image file
> +# @pr-manager: the if for the object that will handle persistent
> reservations
s/if/interface/ for legibility
> +# for this device (default: forward the commands via SG_IO,
> +# since 2.11)
> # @aio: AIO backend (default: threads) (since: 2.8)
> # @locking: whether to enable file locking. If set to 'auto', only enable
> # when Open File Descriptor (OFD) locking API is available
> @@ -2200,6 +2203,7 @@
> ##
> { 'struct': 'BlockdevOptionsFile',
> 'data': { 'filename': 'str',
> + '*pr-manager': 'str',
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [PATCH 04/10] scsi: introduce sg_io_sense_from_errno, (continued)
- [Qemu-devel] [PATCH 05/10] scsi: move block/scsi.h to include/scsi/constants.h, Paolo Bonzini, 2017/08/22
- [Qemu-devel] [PATCH 02/10] scsi: move non-emulation specific code to scsi/, Paolo Bonzini, 2017/08/22
- [Qemu-devel] [PATCH 06/10] scsi, file-posix: add support for persistent reservation management, Paolo Bonzini, 2017/08/22
- Re: [Qemu-devel] [PATCH 06/10] scsi, file-posix: add support for persistent reservation management, Fam Zheng, 2017/08/23
- Re: [Qemu-devel] [PATCH 06/10] scsi, file-posix: add support for persistent reservation management,
Eric Blake <=
- Re: [Qemu-devel] [PATCH 06/10] scsi, file-posix: add support for persistent reservation management, Daniel P. Berrange, 2017/08/30
- Re: [Qemu-devel] [Qemu-block] [PATCH 06/10] scsi, file-posix: add support for persistent reservation management, Stefan Hajnoczi, 2017/08/30
- [Qemu-devel] [PATCH 07/10] io: add qio_channel_read/write_all, Paolo Bonzini, 2017/08/22
- [Qemu-devel] [PATCH 10/10] scsi: add persistent reservation manager using qemu-pr-helper, Paolo Bonzini, 2017/08/22