[Qemu-devel] [PATCH v3] Align PCI capabilities in pci_find_space

2012-09-26 Thread mjr
From: Matt Renzelmann The current implementation of pci_find_space does not correctly align PCI capabilities in the PCI configuration space. It also does not distinguish PCI and PCI-Express devices. This patch fixes these issues. Thanks to Alex Williamson for continuing feedback. Signed-off-b

[Qemu-devel] [PATCH v2] Align PCI capabilities in pci_find_space

2012-09-25 Thread mjr
From: Matt Renzelmann The current implementation of pci_find_space does not correctly align PCI capabilities in the PCI configuration space. This patch fixes this issue. Signed-off-by: Matt Renzelmann --- Alex Williamson wrote: > I think you could just search every 4th byte. In fact, this w

[Qemu-devel] [PATCH] Align PCI capabilities in pci_find_space

2012-09-25 Thread mjr
From: Matt Renzelmann The current implementation of pci_find_space does not properly align PCI capabilities in the PCI configuration space. This patch fixes this issue. Signed-off-by: Matt Renzelmann --- This is my first patch to QEMU so I hope I'm not screwing up too much. The purpose of thi