Re: [libvirt] [PATCH 2/2] virpci, qemu_domain_address: adding virPCIDeviceSetAddress

2019-09-20 Thread Daniel Henrique Barboza
On 9/20/19 6:25 AM, Erik Skultety wrote: On Thu, Sep 19, 2019 at 05:04:47PM -0300, Daniel Henrique Barboza wrote: A common operation in qemu_domain_address is comparing a virPCIDeviceAddress and assigning domain, bus, slot and function to a specific value. The former can be done with the

Re: [libvirt] [PATCH 2/2] virpci, qemu_domain_address: adding virPCIDeviceSetAddress

2019-09-20 Thread Erik Skultety
On Thu, Sep 19, 2019 at 05:04:47PM -0300, Daniel Henrique Barboza wrote: > A common operation in qemu_domain_address is comparing a > virPCIDeviceAddress and assigning domain, bus, slot and function > to a specific value. The former can be done with the existing > virPCIDeviceAddressEqual()

[libvirt] [PATCH 2/2] virpci, qemu_domain_address: adding virPCIDeviceSetAddress

2019-09-19 Thread Daniel Henrique Barboza
A common operation in qemu_domain_address is comparing a virPCIDeviceAddress and assigning domain, bus, slot and function to a specific value. The former can be done with the existing virPCIDeviceAddressEqual() helper. A new virpci helper called virPCIDeviceSetAddress() was created to make it