qemu: fix failure to start with spice graphics and no tls
qemu: fix failure to start with spice graphics and no tls

Commit eca3fdf inadvertantly caused a failure to start for any domain
with the following in its config:

    <graphics type='spice' autoport='yes'/>

The problem is that when tlsPort == 0 and defaultMode == "any" (which
is the default for defaultMode), this would be flagged in the code as
"needTLSPort", and if there was then no spice tls config, the new
error+fail would happen.

This patch checks for the case of defaultMode == "any", and in that
case simply doesn't allocate a TLS port (since that's probably not
what the user wanted, and it would have failed later anyway.). It does
leave the error in place for cases when the user specifically asked to
use tls in one way or another, though.

zippy2/libvirt,andreabolognani/libvirt,jardasgit/libvirt,eskultety/libvirt,agx/libvirt,eskultety/libvirt,rlaager/libvirt,datto/libvirt,fabianfreyer/libvirt,elmarco/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,crobinso/libvirt,datto/libvirt,cbosdo/libvirt,zhlcindy/libvirt-1.1.4-maintain,fabianfreyer/libvirt,taget/libvirt,libvirt/libvirt,cbosdo/libvirt,fabianfreyer/libvirt,rlaager/libvirt,zippy2/libvirt,olafhering/libvirt,datto/libvirt,nertpinx/libvirt,VenkatDatta/libvirt,jfehlig/libvirt,agx/libvirt,taget/libvirt,andreabolognani/libvirt,shugaoye/libvirt,datto/libvirt,jardasgit/libvirt,rlaager/libvirt,nertpinx/libvirt,elmarco/libvirt,jardasgit/libvirt,taget/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,agx/libvirt,VenkatDatta/libvirt,jfehlig/libvirt,cbosdo/libvirt,andreabolognani/libvirt,jardasgit/libvirt,eskultety/libvirt,jfehlig/libvirt,taget/libvirt,eskultety/libvirt,taget/libvirt,VenkatDatta/libvirt,jfehlig/libvirt,eskultety/libvirt,zhlcindy/libvirt-1.1.4-maintain,nertpinx/libvirt,libvirt/libvirt,olafhering/libvirt,crobinso/libvirt,crobinso/libvirt,olafhering/libvirt,crobinso/libvirt,zhlcindy/libvirt-1.1.4-maintain,andreabolognani/libvirt,shugaoye/libvirt,shugaoye/libvirt,cbosdo/libvirt,libvirt/libvirt,nertpinx/libvirt,zippy2/libvirt,agx/libvirt,nertpinx/libvirt,zippy2/libvirt,elmarco/libvirt,rlaager/libvirt,zhlcindy/libvirt-1.1.4-maintain,elmarco/libvirt,elmarco/libvirt,agx/libvirt,zhlcindy/libvirt-1.1.4-maintain,shugaoye/libvirt,datto/libvirt,libvirt/libvirt,cbosdo/libvirt,shugaoye/libvirt,rlaager/libvirt,olafhering/libvirt,jardasgit/libvirt