Commit Message

From: Matt Renzelmann <mjr@cs.wisc.edu>
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 <mjr@cs.wisc.edu>
---
Alex Williamson <alex.williamson@redhat.com> wrote:
> I think you could just search every 4th byte. In fact, this whole used> byte-map could be turned into a single uint64_t bitmap for standard> config space. Thanks,
I've not tested this version of the patch, in contrast to the last, so
I'm a bit less confident of its correctness. I did not reimplement it
as suggested as I'm not that familiar with this code, and instead just
applied the every 4th byte strategy.
hw/pci.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)