qemu-e2k/tests/libqos
Markus Armbruster 998261726a tests/libqos/pci-pc: Fix qpci_pc_iomap() to map BARs aligned
qpci_pc_iomap() maps BARs one after the other, without padding.  This
is wrong.  PCI Local Bus Specification Revision 3.0, 6.2.5.1. Address
Maps: "all address spaces used are a power of two in size and are
naturally aligned".  That's because the size of a BAR is given by the
number of address bits the device decodes, and the BAR needs to be
mapped at a multiple of that size to ensure the address decoding
works.

Fix qpci_pc_iomap() accordingly.  This takes care of a FIXME in
ivshmem-test.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <1458066895-20632-7-git-send-email-armbru@redhat.com>
2016-03-21 21:28:59 +01:00
..
ahci.c ide: Clean up includes 2016-01-29 15:07:23 +00:00
ahci.h all: Clean up includes 2016-02-23 12:43:05 +00:00
fw_cfg.c tests: Clean up includes 2016-02-16 14:29:27 +00:00
fw_cfg.h all: Clean up includes 2016-02-23 12:43:05 +00:00
i2c-imx.c tests: Clean up includes 2016-02-16 14:29:27 +00:00
i2c-omap.c tests: Clean up includes 2016-02-16 14:29:27 +00:00
i2c.c tests: Clean up includes 2016-02-16 14:29:27 +00:00
i2c.h all: Clean up includes 2016-02-23 12:43:05 +00:00
libqos-pc.c tests: Clean up includes 2016-02-16 14:29:27 +00:00
libqos-pc.h qtest/ahci: Allow override of default CLI options 2015-04-28 15:27:51 -04:00
libqos.c tests: Clean up includes 2016-02-16 14:29:27 +00:00
libqos.h libqos: add qemu-img presence check 2015-11-13 14:31:42 -05:00
malloc-generic.c tests: Clean up includes 2016-02-16 14:29:27 +00:00
malloc-generic.h libqos: Add malloc generic 2015-03-10 14:02:20 +01:00
malloc-pc.c tests: Clean up includes 2016-02-16 14:29:27 +00:00
malloc-pc.h libqos: Convert malloc-pc allocator to a generic allocator 2015-01-13 11:47:57 +00:00
malloc.c tests: Clean up includes 2016-02-16 14:29:27 +00:00
malloc.h all: Clean up includes 2016-02-23 12:43:05 +00:00
pci-pc.c tests/libqos/pci-pc: Fix qpci_pc_iomap() to map BARs aligned 2016-03-21 21:28:59 +01:00
pci-pc.h libqos: Fixes a small memory leak. 2014-08-15 18:03:13 +01:00
pci.c tests: Clean up includes 2016-02-16 14:29:27 +00:00
pci.h all: Clean up includes 2016-02-23 12:43:05 +00:00
usb.c tests: Clean up includes 2016-02-16 14:29:27 +00:00
usb.h tests: usb: Generic usb device hotplug 2014-10-15 05:03:13 +02:00
virtio-mmio.c tests: Clean up includes 2016-02-16 14:29:27 +00:00
virtio-mmio.h libqos: Add virtio MMIO support 2015-03-10 14:02:20 +01:00
virtio-pci.c tests: Clean up includes 2016-02-16 14:29:27 +00:00
virtio-pci.h libqos: Remove PCI assumptions in constants of virtio driver 2015-03-10 14:02:20 +01:00
virtio.c tests: Clean up includes 2016-02-16 14:29:27 +00:00
virtio.h libqos: Complete virtio device ID definition list 2015-06-17 16:03:47 +02:00