]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Introduce new hostdev device type mdev
authorErik Skultety <eskultet@redhat.com>
Tue, 31 Jan 2017 16:26:36 +0000 (17:26 +0100)
committerErik Skultety <eskultet@redhat.com>
Mon, 27 Mar 2017 13:39:35 +0000 (15:39 +0200)
commitec783d7c7781da3dcfff538b9032868f13e2915a
treec846b2bf5c41a62ea253a37ad5c5720ddc6eea4e
parente1ec4f88ff00091c7de98fb080d4424651a51a95
conf: Introduce new hostdev device type mdev

A mediated device will be identified by a UUID (with 'model' now being
a mandatory <hostdev> attribute to represent the mediated device API) of
the user pre-created mediated device. We also need to make sure that if
user explicitly provides a guest address for a mdev device, the address
type will be matching the device API supported on that specific mediated
device and error out with an incorrect XML message.

The resulting device XML:
<devices>
  <hostdev mode='subsystem' type='mdev' model='vfio-pci'>
    <source>
      <address uuid='c2177883-f1bb-47f0-914d-32a22e3a8804'>
    </source>
  </hostdev>
</devices>

Signed-off-by: Erik Skultety <eskultet@redhat.com>
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_domain.c
src/qemu/qemu_hotplug.c
src/security/security_apparmor.c
src/security/security_dac.c
src/security/security_selinux.c
tests/domaincapsschemadata/full.xml