]> git.ipfire.org Git - thirdparty/libvirt.git/commit
QEMU guest agent support
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 5 Oct 2011 17:31:54 +0000 (18:31 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 24 Jan 2012 11:19:51 +0000 (12:19 +0100)
commitc160ce3316852a797d7b06b4ee101233866e69a9
treeb0e75af48b32c7593c400aa4d65c2c8e25fdaa7b
parent2f5519dcb63de854315c331333ddbd7668a49bfc
QEMU guest agent support

There is now a standard QEMU guest agent that can be installed
and given a virtio serial channel

    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/f16x86_64.agent'/>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
    </channel>

The protocol that runs over the guest agent is JSON based and
very similar to the JSON monitor. We can't use exactly the same
code because there are some odd differences in the way messages
and errors are structured. The qemu_agent.c file is based on
a combination and simplification of qemu_monitor.c and
qemu_monitor_json.c

* src/qemu/qemu_agent.c, src/qemu/qemu_agent.h: Support for
  talking to the agent for shutdown
* src/qemu/qemu_domain.c, src/qemu/qemu_domain.h: Add thread
  helpers for talking to the agent
* src/qemu/qemu_process.c: Connect to agent whenever starting
  a guest
* src/qemu/qemu_monitor_json.c: Make variable static
docs/formatdomain.html.in
po/POTFILES.in
src/Makefile.am
src/qemu/qemu_agent.c [new file with mode: 0644]
src/qemu/qemu_agent.h [new file with mode: 0644]
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_process.c