]> xenbits.xensource.com Git - libvirt.git/commit
util: mdev: Improve the error msg on non-existent mdev prior to VM start
authorErik Skultety <eskultet@redhat.com>
Fri, 16 Mar 2018 09:06:04 +0000 (10:06 +0100)
committerErik Skultety <eskultet@redhat.com>
Mon, 19 Mar 2018 10:14:40 +0000 (11:14 +0100)
commit3d2e4c3e53a179057552f0dc9a861657df62d303
treecb368b5edc82b698d4b63d05067d5bfa82481bfa
parent29d6bb7045b22af61c4853c439b2c0a7f75d1a0b
util: mdev: Improve the error msg on non-existent mdev prior to VM start

What one currently gets is:
failed to read '/sys/bus/mdev/devices/<UUID>/mdev_type/device_api': No
such file or directory

This indicates that something is missing within the device's sysfs tree
which likely might be not be the case here because the device simply
doesn't exist yet. So, when creating our internal mdev obj, let's check
whether the device exists first prior to trying to verify the
user-provided model within domain XML.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/util/virmdev.c