Re: [PATCH 16/19] qemu: if -display dbus capability is supported, accept rdp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 29, 2025 at 05:40:38PM +0400, marcandre.lureau@xxxxxxxxxx wrote:
> From: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>
> 
> We may want to check qemu-rdp presence, instead of failing later?

Yes, we should validate qemu-rdp, because the capabilities get
advertized to client apps in domain capabilities, as well as
being the thing that checks XML configs in qemuDomainValidate.
So if qemu-rdp is missing, we must not claim the capabilty.

> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>
> ---
>  src/qemu/qemu_capabilities.c                             | 7 +++++--
>  tests/domaincapsdata/qemu_10.0.0.s390x.xml               | 1 +
>  tests/domaincapsdata/qemu_7.0.0-q35.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_7.0.0-tcg.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_7.0.0.x86_64.xml               | 1 +
>  tests/domaincapsdata/qemu_7.1.0-q35.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_7.1.0-tcg.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_7.1.0.x86_64.xml               | 1 +
>  tests/domaincapsdata/qemu_7.2.0-hvf.x86_64+hvf.xml       | 1 +
>  tests/domaincapsdata/qemu_7.2.0-q35.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_7.2.0-tcg.x86_64+hvf.xml       | 1 +
>  tests/domaincapsdata/qemu_7.2.0-tcg.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_7.2.0.ppc.xml                  | 1 +
>  tests/domaincapsdata/qemu_7.2.0.x86_64.xml               | 1 +
>  tests/domaincapsdata/qemu_8.0.0-q35.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_8.0.0-tcg.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_8.0.0.x86_64.xml               | 1 +
>  tests/domaincapsdata/qemu_8.1.0-q35.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_8.1.0-tcg.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_8.1.0.s390x.xml                | 1 +
>  tests/domaincapsdata/qemu_8.1.0.x86_64.xml               | 1 +
>  tests/domaincapsdata/qemu_8.2.0-q35.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_8.2.0-tcg-virt.loongarch64.xml | 1 +
>  tests/domaincapsdata/qemu_8.2.0-tcg.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_8.2.0-virt.aarch64.xml         | 1 +
>  tests/domaincapsdata/qemu_8.2.0-virt.loongarch64.xml     | 1 +
>  tests/domaincapsdata/qemu_8.2.0.aarch64.xml              | 1 +
>  tests/domaincapsdata/qemu_8.2.0.armv7l.xml               | 1 +
>  tests/domaincapsdata/qemu_8.2.0.s390x.xml                | 1 +
>  tests/domaincapsdata/qemu_8.2.0.x86_64.xml               | 1 +
>  tests/domaincapsdata/qemu_9.0.0-q35.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_9.0.0-tcg.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_9.0.0.sparc.xml                | 1 +
>  tests/domaincapsdata/qemu_9.0.0.x86_64.xml               | 1 +
>  tests/domaincapsdata/qemu_9.1.0-q35.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_9.1.0-tcg-virt.riscv64.xml     | 1 +
>  tests/domaincapsdata/qemu_9.1.0-tcg.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_9.1.0-virt.riscv64.xml         | 1 +
>  tests/domaincapsdata/qemu_9.1.0.s390x.xml                | 1 +
>  tests/domaincapsdata/qemu_9.1.0.x86_64.xml               | 1 +
>  tests/domaincapsdata/qemu_9.2.0-q35.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_9.2.0-tcg.x86_64.xml           | 1 +
>  tests/domaincapsdata/qemu_9.2.0.s390x.xml                | 1 +
>  tests/domaincapsdata/qemu_9.2.0.x86_64.xml               | 1 +
>  44 files changed, 48 insertions(+), 2 deletions(-)
> 
> diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
> index 490f5b28fd..43669aa27d 100644
> --- a/src/qemu/qemu_capabilities.c
> +++ b/src/qemu/qemu_capabilities.c
> @@ -6497,8 +6497,11 @@ virQEMUCapsFillDomainDeviceGraphicsCaps(virQEMUCaps *qemuCaps,
>          VIR_DOMAIN_CAPS_ENUM_SET(dev->type, VIR_DOMAIN_GRAPHICS_TYPE_SPICE);
>      if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_EGL_HEADLESS))
>          VIR_DOMAIN_CAPS_ENUM_SET(dev->type, VIR_DOMAIN_GRAPHICS_TYPE_EGL_HEADLESS);
> -    if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_DISPLAY_DBUS))
> -        VIR_DOMAIN_CAPS_ENUM_SET(dev->type, VIR_DOMAIN_GRAPHICS_TYPE_DBUS);
> +    if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_DISPLAY_DBUS)) {
> +        VIR_DOMAIN_CAPS_ENUM_SET(dev->type,
> +                                 VIR_DOMAIN_GRAPHICS_TYPE_DBUS,
> +                                 VIR_DOMAIN_GRAPHICS_TYPE_RDP);
> +    }
>  }


With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux