]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virhostdev: Unify virDomainHostdevDef to virPCIDevice translation
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 19 Aug 2019 09:04:05 +0000 (11:04 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 23 Aug 2019 08:48:34 +0000 (10:48 +0200)
commit85b938c666f1be4a65071ecbbebbdb3833ff3650
tree27b51311d024b200a2b37ccadb6afbe4da310f6b
parent05004165e4da948e418d5e06afe6db583bf7316d
virhostdev: Unify virDomainHostdevDef to virPCIDevice translation

There are two places where we need to create virPCIDevice from
given virDomainHostdevDef. In both places the code is duplicated.
Move them into a single function and call it from those two
places.

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