diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2012-11-14 15:45:02 +0100 |
|---|---|---|
| committer | Juan Quintela <quintela@redhat.com> | 2012-12-20 23:08:40 +0100 |
| commit | 0d6d3c87a232cc27641dde3491d75c8021745d02 (patch) | |
| tree | 7868a1d6e1818cb15f0c3543dd3d02d5ea6fb8ba /include/exec | |
| parent | 803ef03257a9ee375f08ca7a89e009ea12bc17a4 (diff) | |
| download | focaccia-qemu-0d6d3c87a232cc27641dde3491d75c8021745d02.tar.gz focaccia-qemu-0d6d3c87a232cc27641dde3491d75c8021745d02.zip | |
exec: change ramlist from MRU order to a 1-item cache
Most of the time, only 2 items will be active (from/to for a string operation, or code/data). But TCG guests likely won't have gigabytes of memory, so this actually goes down to 1 item. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include/exec')
| -rw-r--r-- | include/exec/cpu-all.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h index c12e35f54d..9fe6fc0751 100644 --- a/include/exec/cpu-all.h +++ b/include/exec/cpu-all.h @@ -495,6 +495,7 @@ typedef struct RAMBlock { typedef struct RAMList { uint8_t *phys_dirty; + RAMBlock *mru_block; QLIST_HEAD(, RAMBlock) blocks; } RAMList; extern RAMList ram_list; |