find_ram_offset optimization

The ram_offset allocator searches the smalest gap in the ram_offset address space.
This is slow especialy in combination with many allocation (i.e. snapshots). When
it is known that there is no gap, this is now optimized.
This commit is contained in:
Takacs, Philipp
2023-02-28 16:09:45 +01:00
parent 550265f3c1
commit e54cf7ee03
2 changed files with 21 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ typedef struct {
// This struct is originally from qemu/include/exec/ramlist.h
typedef struct RAMList {
bool freed;
RAMBlock *mru_block;
QLIST_HEAD(, RAMBlock) blocks;
} RAMList;