]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vmx: check for present/enabled devices earlier
authorPino Toscano <ptoscano@redhat.com>
Wed, 28 Mar 2018 11:40:18 +0000 (13:40 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Sun, 1 Apr 2018 10:43:42 +0000 (12:43 +0200)
commit5d5430e1fc6f853f79da39fbef08e97bebffc8eb
tree9d6870dbd69d3596680f8b7c7e340c7dbcb2e01b
parentc4c32cb300beba41ecbca3ee4884c65630bde861
vmx: check for present/enabled devices earlier

When parsing filesystems, network interfaces, serial ports, and
parallel ports, check earlier whether they are present/enabled, delaying
the allocation of the objects.

This is mostly a small optimization, with no behaviour change.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
src/vmx/vmx.c