diff options
author | Mike Day <ncmike@ncultra.org> | 2015-01-21 13:45:24 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-02-16 17:30:20 +0100 |
commit | 0d53d9fe8a0dcb849bc7c9836e9e6a287f9aa787 (patch) | |
tree | b1009b26af43d5e840058a8ab6600f2f367d0de8 /include | |
parent | ae3a7047d00cfa7ed221beda08f98487b7e17501 (diff) | |
download | hqemu-0d53d9fe8a0dcb849bc7c9836e9e6a287f9aa787.zip hqemu-0d53d9fe8a0dcb849bc7c9836e9e6a287f9aa787.tar.gz |
exec: convert ram_list to QLIST
QLIST has RCU-friendly primitives, so switch to it.
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Mike Day <ncmike@ncultra.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/exec/cpu-all.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h index f7a3625..87b8658 100644 --- a/include/exec/cpu-all.h +++ b/include/exec/cpu-all.h @@ -282,7 +282,7 @@ struct RAMBlock { /* Reads can take either the iothread or the ramlist lock. * Writes must take both locks. */ - QTAILQ_ENTRY(RAMBlock) next; + QLIST_ENTRY(RAMBlock) next; int fd; }; @@ -299,7 +299,7 @@ typedef struct RAMList { unsigned long *dirty_memory[DIRTY_MEMORY_NUM]; RAMBlock *mru_block; /* Protected by the ramlist lock. */ - QTAILQ_HEAD(, RAMBlock) blocks; + QLIST_HEAD(, RAMBlock) blocks; uint32_t version; } RAMList; extern RAMList ram_list; |