]> xenbits.xensource.com Git - libvirt.git/commit
docs, conf, schema: add support for shmem device
authorMartin Kletzander <mkletzan@redhat.com>
Mon, 22 Sep 2014 08:49:39 +0000 (10:49 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 3 Oct 2014 20:43:08 +0000 (22:43 +0200)
commit540a84ec89c1634d5e17ba7b8d96049c960bb1b4
tree8436e0a82657a4b7936cb40426a9dea50cad114b
parente9392e48d4e3b29809da7883b697d5caf3a09680
docs, conf, schema: add support for shmem device

This patch adds parsing/formatting code as well as documentation for
shared memory devices.  This will currently be only accessible in QEMU
using it's ivshmem device, but is designed as generic as possible to
allow future expansion for other hypervisors.

In the devices section in the domain XML users may specify:

- For shmem device using a server:

 <shmem name='shmem0'>
   <server path='/tmp/socket-ivshmem0'/>
   <size unit='M'>32</size>
   <msi vectors='32' ioeventfd='on'/>
 </shmem>

- For ivshmem device not using an ivshmem server:

 <shmem name='shmem1'>
   <size unit='M'>32</size>
 </shmem>

Most of the configuration is made optional so it also allows
specifications like:

 <shmem name='shmem1/>
 <shmem name='shmem2'>
   <server/>
 </shmem>

Signed-off-by: Maxime Leroy <maxime.leroy@6wind.com>
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_hotplug.c
tests/qemuxml2argvdata/qemuxml2argv-shmem-msi-only.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-shmem.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmltest.c