diff options
author | John Snow <jsnow@redhat.com> | 2014-08-01 11:38:58 -0400 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-09-08 11:12:43 +0100 |
commit | ec2f160538a24b72767e2afd1f0ba3085a35b79d (patch) | |
tree | b94718ea238b83be87eeabfdfa945f5b8130c664 /target-xtensa/gdbstub.c | |
parent | 53b33231f76e85984eb18a4c63fd132d0d4e3f40 (diff) | |
download | qemu-ec2f160538a24b72767e2afd1f0ba3085a35b79d.tar.gz qemu-ec2f160538a24b72767e2afd1f0ba3085a35b79d.tar.bz2 qemu-ec2f160538a24b72767e2afd1f0ba3085a35b79d.zip |
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>
Diffstat (limited to 'target-xtensa/gdbstub.c')
0 files changed, 0 insertions, 0 deletions