[PATCH 72/80] qemuDomainValidateStorageSource: Remove QEMU_CAPS_BLOCKDEV validation

Pavel Hrdina phrdina at redhat.com
Fri Aug 5 07:52:20 UTC 2022


On Tue, Jul 26, 2022 at 04:37:50PM +0200, Peter Krempa wrote:
> While we assume that -blockdev is supported the validator had also some
> corner cases for -drive. Since we use '-drive' exclusively for the
> extremely rarely used SD cards it makes no sense to have the validation.
> 
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---
>  src/qemu/qemu_domain.c | 60 +++---------------------------------------
>  1 file changed, 3 insertions(+), 57 deletions(-)
> 
> diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
> index 8997041b34..0839744660 100644
> --- a/src/qemu/qemu_domain.c
> +++ b/src/qemu/qemu_domain.c

[...]

> @@ -4961,11 +4922,9 @@ qemuDomainValidateStorageSource(virStorageSource *src,
>          return -1;
>      }
> 
> -    /* TFTP protocol was not supported for some time, lock it out at least with
> -     * -blockdev */
> +    /* TFTP protocol was not supported */

I would change the comment to 'TFTP protocol is not supported since QEMU
2.8.0'

>      if (actualType == VIR_STORAGE_TYPE_NETWORK &&
> -        src->protocol == VIR_STORAGE_NET_PROTOCOL_TFTP &&
> -        blockdev) {
> +        src->protocol == VIR_STORAGE_NET_PROTOCOL_TFTP) {
>          virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
>                         _("'tftp' protocol is not supported with this QEMU binary"));
>          return -1;

Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20220805/3dcae66f/attachment-0001.sig>


More information about the libvir-list mailing list