[Top][All Lists]

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

Re: [Qemu-devel] [PATCH 01/11] QMP: Introduce specification file

From: Jamie Lokier
Subject: Re: [Qemu-devel] [PATCH 01/11] QMP: Introduce specification file
Date: Wed, 24 Jun 2009 22:47:30 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Filip Navara wrote:
> > Looks to me like "works with libvirt and other management programs"
> > implies that you can use it from scripts, because many management
> > programs are, in fact, scripts.
> If that was true then certainly a text/line-based protocol would make
> sense (possibly in addition to a simple RPC one, if desired). The
> thing I am worried about is that several corner cases are currently
> not defined in the proposed protocol and it introduces asynchronous
> events, which is actually harder to get right in shell scripts than
> the human protocol.

I generally agree, and to be honest the most useful API for scripts is
probably a "qemu-control [OPTIONS] CMD [ARGS...]" _program_ which they
can run, along the same lines as apachectl for Apache, smbcontrol for
Samba, ntpdc for NTPd, etc.

Such a program can be third party or not, once the monitor behaviour
is reliable for a program to use.

-- Jamie

reply via email to

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