qemu-e2k/tests/libqos
John Snow ec2f160538 libqos: add a simple first-fit memory allocator
Implement a simple first-fit memory allocator that
attempts to keep track of leased blocks of memory
in order to be able to re-use blocks.

Additionally, allow the user to specify when
initializing the device that upon cleanup,
we would like to assert that there are no
blocks in use. This may be useful for identifying
problems in qtests that use more complicated
set-up and tear-down routines.

This functionality is used in my upcoming ahci-test v2
patch set, but I didn't see fit to enable it for any
existing tests, which will continue to operate the
same as they have prior.

Signed-off-by: John Snow <jsnow@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-09-08 11:12:43 +01:00
..
fw_cfg.c
fw_cfg.h
i2c-omap.c
i2c.c
i2c.h
malloc-pc.c libqos: add a simple first-fit memory allocator 2014-09-08 11:12:43 +01:00
malloc-pc.h libqos: add a simple first-fit memory allocator 2014-09-08 11:12:43 +01:00
malloc.h libqos: Change free function called in malloc 2014-08-15 18:03:14 +01:00
pci-pc.c libqos: allow qpci_iomap to return BAR mapping size 2014-08-15 18:03:13 +01:00
pci-pc.h libqos: Fixes a small memory leak. 2014-08-15 18:03:13 +01:00
pci.c libqos: Added MSI-X support 2014-09-08 11:12:43 +01:00
pci.h libqos: Added MSI-X support 2014-09-08 11:12:43 +01:00
virtio-pci.c libqos: Added EVENT_IDX support 2014-09-08 11:12:43 +01:00
virtio-pci.h libqos: Added MSI-X support 2014-09-08 11:12:43 +01:00
virtio.c libqos: Added EVENT_IDX support 2014-09-08 11:12:43 +01:00
virtio.h libqos: Added EVENT_IDX support 2014-09-08 11:12:43 +01:00