Jonathon Jongsma 9691440ecb nodedev: add mdev support to virNodeDeviceCreateXML()
With recent additions to the node device xml schema, an xml schema can
now describe a mdev device sufficiently for libvirt to create and start
the device using the mdevctl utility.

Note that some of the the configuration for a mediated device must be
passed to mdevctl as a JSON-formatted file. In order to avoid creating
and cleaning up temporary files, the JSON is instead fed to stdin and we
pass the filename /dev/stdin to mdevctl. While this may not be portable,
neither are mediated devices, so I don't believe it should cause any
problems.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2020-06-19 10:39:55 +02:00
..
2017-05-26 11:37:44 +02:00
2018-08-06 11:50:53 +02:00
2019-04-15 11:09:10 +02:00
2018-06-05 14:32:03 +02:00
2013-08-22 16:17:35 +02:00
2019-04-12 09:16:08 +02:00
2019-07-08 12:01:27 +02:00