[libvirt] [PATCH v2 07/12] qemu_capabilites: add QEMU_CAPS_SPICE_UNIX

Marc-André Lureau marcandre.lureau at gmail.com
Wed May 11 18:13:46 UTC 2016


Hi

On Wed, May 11, 2016 at 5:08 PM, Pavel Hrdina <phrdina at redhat.com> wrote:
> Add a new capability to detect support of unix sockets for spice
> graphics.
>
> Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
> ---
>  src/qemu/qemu_capabilities.c | 2 ++
>  src/qemu/qemu_capabilities.h | 1 +
>  2 files changed, 3 insertions(+)
>
> diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
> index 1bddf43..4efb8c2 100644
> --- a/src/qemu/qemu_capabilities.c
> +++ b/src/qemu/qemu_capabilities.c
> @@ -328,6 +328,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
>                "device-tray-moved-event",
>                "nec-usb-xhci-ports",
>                "virtio-scsi-pci.iothread",
> +              "spice-unix",
>      );
>
>
> @@ -2666,6 +2667,7 @@ static struct virQEMUCapsCommandLineProps virQEMUCapsCommandLine[] = {
>      { "spice", "gl", QEMU_CAPS_SPICE_GL },
>      { "chardev", "logfile", QEMU_CAPS_CHARDEV_LOGFILE },
>      { "name", "debug-threads", QEMU_CAPS_NAME_DEBUG_THREADS },
> +    { "spice", "unix", QEMU_CAPS_SPICE_UNIX },
>  };
>
>  static int
> diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h
> index e7d0a60..3ae4a46 100644
> --- a/src/qemu/qemu_capabilities.h
> +++ b/src/qemu/qemu_capabilities.h
> @@ -359,6 +359,7 @@ typedef enum {
>      QEMU_CAPS_DEVICE_TRAY_MOVED, /* DEVICE_TRAY_MOVED event */
>      QEMU_CAPS_NEC_USB_XHCI_PORTS, /* -device nec-usb-xhci.p3 ports setting */
>      QEMU_CAPS_VIRTIO_SCSI_IOTHREAD, /* virtio-scsi-{pci,ccw}.iothread */
> +    QEMU_CAPS_SPICE_UNIX, /* -spice unix */
>
>      QEMU_CAPS_LAST /* this must always be the last item */
>  } virQEMUCapsFlags;
> --
> 2.8.2
>
> --
> libvir-list mailing list
> libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list

Reviewed-by: Marc-André Lureau <marcandre.lureau at redhat.com>



-- 
Marc-André Lureau




More information about the libvir-list mailing list