]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virhostdev: introduce virHostdevResetAllPCIDevices
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Tue, 23 Jul 2019 17:35:39 +0000 (14:35 -0300)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 5 Aug 2019 17:42:58 +0000 (19:42 +0200)
commit7929a48b43d4837d920aa3d28cabe70afbac1871
tree3afea87025903ec93d8216459accf930d8c47441
parentd19c21429fd1acfdade23c903804d6e279d1e00e
virhostdev: introduce virHostdevResetAllPCIDevices

This code that executes virPCIDeviceReset in all virPCIDevicePtr
objects of a given virPCIDeviceListPtr list is replicated twice
in the code. Putting it in a helper function helps with
readability.

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virhostdev.c