Re: [PATCH 6/7] qemu: Do sensible auto allocation of SPICE port numbers

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

 



On 04/23/2013 07:46 AM, Peter Krempa wrote:
> With this patch, if the autoport attribute is used, the code will
> sensibly auto allocate the ports only if needed.
> ---
>  src/qemu/qemu_process.c | 66 ++++++++++++++++++++++++++++++++++++++-----------
>  1 file changed, 52 insertions(+), 14 deletions(-)
> 
> diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
> index 20978e0..db80626 100644
> --- a/src/qemu/qemu_process.c
> +++ b/src/qemu/qemu_process.c
> @@ -3275,44 +3275,82 @@ qemuProcessSPICEAllocatePorts(virQEMUDriverPtr driver,
>                                virQEMUDriverConfigPtr cfg,
>                                virDomainGraphicsDefPtr graphics)
>  {
> -    int ret = -1;
>      unsigned short port = 0;
>      unsigned short tlsPort;
> +    int i;
> +    int defaultMode = graphics->data.spice.defaultMode;
> +
> +    bool needTLSPort = false;
> +    bool needPort = false;
> +
> +    if (graphics->data.spice.autoport) {
> +        /* check if tlsPort or port are needed to be alocated */

s/are needed to be alocated/need allocation/

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[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]