Re: [libvirt] [PATCH v2 0/4] qemu: assign vfio devices to PCIe addresses when appropriate

2016-11-25 Thread Andrea Bolognani
On Mon, 2016-11-21 at 00:01 -0500, Laine Stump wrote:
> Patches 1 and 4 were originally added to the end of the "more PCIe
> less legacy PCI" patchset in its final incarnation, but all the other
> patches were ACKed and pushed, while this needed a bit more work,
> resulting in this "faux V2" - although it's the 2nd time I've posted
> these patches, their "V1" was really inside the "V11666" of a larger
> series.

Forgot to mention yesterday: the NEWS file will need to
contain an entry for this. You can add a single entry that
covers both this series and the previous PCIe-related
series, or just document the previous one if this one
somehow doesn't make it into the release.

-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH v2 0/4] qemu: assign vfio devices to PCIe addresses when appropriate

2016-11-20 Thread Laine Stump
Patches 1 and 4 were originally added to the end of the "more PCIe
less legacy PCI" patchset in its final incarnation, but all the other
patches were ACKed and pushed, while this needed a bit more work,
resulting in this "faux V2" - although it's the 2nd time I've posted
these patches, their "V1" was really inside the "V11666" of a larger
series.

In order to implement Alex's suggestion of checking the length of a
PCI device's config file to determine if it's an Express device, I
first made a utility function to return the length of a file, and then
another to return the name of the config file of a virPCIDevice -
those are the new patches 2 and 3.

I'm open to suggestions about additional checks to put in
virFileLength(), as long as they don't involve opening the file. For
now I've kept it as simple as possible. (Just keep in mind that I'll be away 
from my keyboard from Wednesday through Sunday this week).

Laine Stump (4):
  util: new function virFileLength()
  util: new function virPCIDeviceGetConfigPath()
  qemu: propagate virQEMUDriver object to
qemuDomainDeviceCalculatePCIConnectFlags
  qemu: assign vfio devices to PCIe addresses when appropriate

 src/libvirt_private.syms   |   2 +
 src/qemu/qemu_domain.c |   2 +-
 src/qemu/qemu_domain_address.c | 117 -
 src/qemu/qemu_domain_address.h |   7 ++-
 src/qemu/qemu_hotplug.c|  19 +++
 src/qemu/qemu_process.c|  13 +++--
 src/util/virfile.c |  13 +
 src/util/virfile.h |   2 +
 src/util/virpci.c  |   6 +++
 src/util/virpci.h  |   1 +
 tests/qemuhotplugtest.c|   4 +-
 11 files changed, 157 insertions(+), 29 deletions(-)

-- 
2.9.3

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list