qemu-devel
[Top][All Lists]
Advanced

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

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


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH 01/11] QMP: Introduce specification file
Date: Thu, 25 Jun 2009 10:10:21 -0500
User-agent: Thunderbird 2.0.0.21 (X11/20090320)

Avi Kivity wrote:
On 06/25/2009 04:07 PM, Stefano Stabellini 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.

Having the possibility of using it from scripts would be nice but I
wouldn't make it a requirement.
With an rpc interface and the right scripting language you can still use
the rpc interface from a very very  short script.

I'd go further and make shell script support a non-goal. Maybe the majority of qemu control programs are scripts, but only a tiny minority of VMs are controlled by shell scripts. It is nearly impossible to write a correct nontrivial program in bash; and scripts will be slow due to the need to constantly fork/exec/connect.

Serious management programs will be written in real languages, and that's what we should optimize for.

I'm still inclined to stick with the text-based protocol. libvirt likes it. If Serious Management Programs want an RPC interface they can use libvirt.

An RPC is overkill unless you also introduce things like life cycle management. Otherwise, you could never realistically interact with QEMU without a intermediary that handled life cycle management (e.g. libvirt).

Regards,

Anthony Liguori





reply via email to

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