conf: allow hotplugging "legacy PCI" device to manually addressed PCIe slot
conf: allow hotplugging "legacy PCI" device to manually addressed PCIe slot

In a full domain config, libvirt allows overriding the normal PCI
vs. PCI Express rules when a device address is explicitly provided
(so, e.g., you can force a legacy PCI device to plug into a PCIe port,
although libvirt would never do that on its own). However, due to a
bug libvirt doesn't give this same leeway when hotplugging devices. On
top of that, current libvirt assumes that *all* devices are legacy
PCI. The result of all this is that it's impossible to hotplug a
device into a PCIe port, even if you manually add the PCI address.

This can all be traced to the function
virDomainPCIAddressEnsureAddr(), and the fact that it calls
virDomainPCIaddressReserveSlot() for manually set addresses, and that
function hardcodes the argument "fromConfig" to false (meaning "this
address was auto-assigned, so it should be subject to stricter
validation").

Since virDomainPCIAddressReserveSlot() is just a one line simple
wrapper around virDomainPCIAddressReserveAddr() (adding in a hardcoded
reserveEntireSlot = true and fromConfig = false), all that's needed to
solve the problem with no unwanted side effects is to replace that
call for virDomainPCIAddressReserveSlot() with a direct call to
virDomainPCIAddressReserveAddr(), but with reserveEntireSlot = true,
fromConfig = true. That's what this patch does.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1337490

jardasgit/libvirt,olafhering/libvirt,jfehlig/libvirt,andreabolognani/libvirt,taget/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,jfehlig/libvirt,datto/libvirt,datto/libvirt,zippy2/libvirt,eskultety/libvirt,crobinso/libvirt,zippy2/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,olafhering/libvirt,nertpinx/libvirt,andreabolognani/libvirt,libvirt/libvirt,taget/libvirt,crobinso/libvirt,libvirt/libvirt,nertpinx/libvirt,eskultety/libvirt,fabianfreyer/libvirt,datto/libvirt,eskultety/libvirt,libvirt/libvirt,taget/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,datto/libvirt,taget/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,eskultety/libvirt,crobinso/libvirt,olafhering/libvirt,jardasgit/libvirt,eskultety/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,nertpinx/libvirt,jardasgit/libvirt,olafhering/libvirt,crobinso/libvirt,fabianfreyer/libvirt,taget/libvirt,jardasgit/libvirt,andreabolognani/libvirt,datto/libvirt,jfehlig/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,libvirt/libvirt,zippy2/libvirt,zippy2/libvirt,andreabolognani/libvirt