]> xenbits.xensource.com Git - libvirt.git/commit
virPCIDevice: Make @name dynamically allocated
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 30 Jul 2019 09:37:43 +0000 (11:37 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 5 Aug 2019 17:42:15 +0000 (19:42 +0200)
commita0a341e82a4061272eaa91b4d6dd205067bef0d2
treec9e5f7c834cf73275c113a0402f116e9e75eec7d
parent1ab3d8b49e092a9dfe5475034ba0be2777deeb53
virPCIDevice: Make @name dynamically allocated

In near future, the length restriction of PCI domain is going to
be lifted. This means that our assumption that PCI address is 13
bytes long is no longer true. We can avoid this problem by making
@name dynamically allocated and thus not bother with actual
length of stringified PCI address.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virpci.c