]> xenbits.xensource.com Git - libvirt.git/commit
util: Introduce virHostGetDRMRenderNode helper
authorErik Skultety <eskultet@redhat.com>
Thu, 8 Nov 2018 10:47:09 +0000 (11:47 +0100)
committerErik Skultety <eskultet@redhat.com>
Mon, 3 Dec 2018 13:56:08 +0000 (14:56 +0100)
commit394809694a5bcb6e1e6890f360c60993c0b63a74
tree8d975106d0ac10c842d2a28baeb1a9987f9ec32c
parent8cb06b7f35858b33336bce43401b63138ef03baf
util: Introduce virHostGetDRMRenderNode helper

This is the first step towards libvirt picking the first available
render node instead of QEMU. It also makes sense for us to be able to do
that, since we allow specifying the node directly for SPICE, so if
there's no render node specified by the user, we should pick the first
available one. The algorithm used for that is essentially the same as
the one QEMU uses.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libvirt_private.syms
src/util/virutil.c
src/util/virutil.h