qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] QMP's chardev-add less capable than HMP's


From: Paolo Bonzini
Subject: Re: [Qemu-devel] QMP's chardev-add less capable than HMP's
Date: Wed, 06 Feb 2013 16:28:08 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

Il 06/02/2013 15:35, Markus Armbruster ha scritto:
> HMP commands must be built on top of the QMP API.
> Luiz and others have worked long & hard to make HMP conform to this
> rule.
> 
> However, a new command has crept in that violates it.
> 
> QMP's chardev-add runs qmp_chardev_add(), which supports backends
> 
> * file with parameters in, out
> 
> * port with parameters type (serial, parallel), device
> 
> * socket with parameters addr, server, wait, nodelay, telnet
> 
> * pty
> 
> * null
> 
> HMP's chardev-add runs hmp_chardev_add(), which is *not* built on to of
> QMP.  Instead, it uses qemu_chr_new_from_opts(), which looks more
> powerful to me.  Additional backends: udp, msmouse, vc, memory, pipe,
> stdio, braille, tty, spicevmc, spiceport.  I haven't checked whether the
> backends that are available in QMP support all the parameters that HMP
> does.
> 
> If we're 100% serious about the rule, we need to disable HMP chardev-add
> for the release.
> 
> Are we?

It is not hmp_chardev_add() that is not built on QMP, it is
qemu_chr_new_from_opts().

It is qemu_chr_new_from_opts() that we want to convert to the QMP API
once the QMP API is powerful enough.  The implementation of HMP
shouldn't need any change.

Something along these lines is the reason why the more-powerful HMP
command was "allowed" by Luiz.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]