• J
    libqos: add a simple first-fit memory allocator · ec2f1605
    John Snow 提交于
    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: NJohn Snow <jsnow@redhat.com>
    Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
    ec2f1605
malloc-pc.c 7.8 KB