[libvirt] [PATCH] graphics: add support for action_if_connected in qemu
Eric Blake
eblake at redhat.com
Tue May 31 22:06:20 UTC 2011
On 05/31/2011 03:09 PM, Eric Blake wrote:
>>
>> + if (connected) {
>> + int action = virDomainGraphicsAuthConnectedTypeFromString(connected);
>> + if (action < 0) {
>> + virDomainReportError(VIR_ERR_CONFIG_UNSUPPORTED,
>> + _("unknown connected value %s"),
>
> Do we want to allow parsing "default"? If not, then change this to 'if
> (action <= 0)'.
Still applicable to v2.
>
>> @@ -1755,7 +1760,7 @@ qemuDomainChangeGraphicsPasswords(struct qemud_driver *driver,
>> ret = qemuMonitorSetPassword(priv->mon,
>> type,
>> auth->passwd ? auth->passwd : defaultPasswd,
>> - NULL);
>> + auth->connected ? virDomainGraphicsAuthConnectedTypeToString(auth->connected) : NULL);
>
> Style - this results in a long line. It might be nicer to do:
>
> const char *connected = NULL;
> if (auth->connected)
> connected = virDomainGraphicsAuthConnectedTypeToString(auth->connected);
> ...
> qemuMonitorSetPassword(priv->mon, type,
> auth->passwd ? auth->passwd : defaultPasswd,
> connected);
>
> This is a new XML feature, but has missed the rc1 freeze, so v2 should
> not be applied until after the 0.9.2 release, although you can post it
> for review before then.
Serves me right for reading my inbox in order - I see you already posted
v2: https://www.redhat.com/archives/libvir-list/2011-May/msg01871.html
And now I'm wavering on whether this is a completely new feature, or
enough of a bug-fix that we could get it into 0.9.2 anyways, since it is
certainly minimal impact; so opinions from others would be helpful here.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110531/18d7224f/attachment-0001.sig>
More information about the libvir-list
mailing list