From: "Daniel P. Berrange" <berrange@redhat.com>
To: Chris Wright <chrisw@redhat.com>
Cc: libvir-list@redhat.com, Jiri Denemark <jdenemar@redhat.com>,
kvm@vger.kernel.org, qemu-devel@nongnu.org
Subject: Re: [libvirt] [Qemu-devel] KVM call minutes for Mar 15
Date: Thu, 17 Mar 2011 10:34:27 +0000 [thread overview]
Message-ID: <20110317103427.GA24807@redhat.com> (raw)
In-Reply-To: <20110315190606.GM20456@x200.localdomain>
On Tue, Mar 15, 2011 at 12:06:06PM -0700, Chris Wright wrote:
> * Anthony Liguori (anthony@codemonkey.ws) wrote:
> > On 03/15/2011 09:53 AM, Chris Wright wrote:
> > > QAPI
> <snip>
> > >- c library implementation is critical to have unit tests and test
> > > driven development
> > > - thread safe?
> > > - no shared state, no statics.
> > > - threading model requires lock for the qmp session
> > > - licensiing?
> > > - LGPL
> > > - forwards/backwards compat?
> > > - designed with that in mind see wiki:
> > >
> > > http://wiki.qemu.org/Features/QAPI
> >
> > One neat feature of libqmp is that once libvirt has a better QMP
> > passthrough interface, we can create a QmpSession that uses libvirt.
> >
> > It would look something like:
> >
> > QmpSession *libqmp_session_new_libvirt(virDomainPtr dom);
>
> Looks like you mean this?
>
> -> request QmpSession ->
> client libvirt
> <- return QmpSession <-
>
> client -> QmpSession -> QMP -> QEMU
>
> So bypassing libvirt completely to actually use the session?
>
> Currently, it's more like:
>
> client -> QemuMonitorCommand -> libvirt -> QMP -> QEMU
>
> > The QmpSession returned by this call can then be used with all of
> > the libqmp interfaces. This means we can still exercise our test
> > suite with a guest launched through libvirt. It also should make
> > the libvirt pass through interface a bit easier to consume by third
> > parties.
>
> This sounds like it's something libvirt folks should be involved with.
> At the very least, this mode is there now and considered basically
> unstable/experimental/developer use:
>
> "Qemu monitor command '%s' executed; libvirt results may be unpredictable!"
>
> So likely some concern about making it easier to use, esp. assuming
> that third parties above are mgmt apps, not just developers.
Although we provide monitor and command line passthrough in libvirt,
our recommendation is that mgmt apps do not develop against these
APIs. Our goal / policy is that apps should be able todo anything
they need using the formally modelled libvirt public APIs.
The primary intended usage for the monitor/command line passthrough
is debugging & experimentation, and as a very short term hack/workaround
for mgmt apps while formal APIs are added to libvirt. In other words,
we provide the feature because we don't want libvirt to be a roadblock,
but we still strongly discourage their usage untill all other options
have been exhausted.
In same way as loading binary only modules into the kernels sets a
'tainted' flag, we plan that direct usage of monitor/command line
passthrough will set a tainted flag against a VM. This is allow distro
maintainers to identify usage & decide how they wish to support these
features in products (if at all).
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
prev parent reply other threads:[~2011-03-17 10:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-15 14:53 [Qemu-devel] KVM call minutes for Mar 15 Chris Wright
2011-03-15 16:28 ` Anthony Liguori
2011-03-15 19:06 ` Chris Wright
2011-03-15 21:05 ` Anthony Liguori
2011-03-17 10:34 ` Daniel P. Berrange [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110317103427.GA24807@redhat.com \
--to=berrange@redhat.com \
--cc=chrisw@redhat.com \
--cc=jdenemar@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=libvir-list@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).