You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/util
Peter Xu cedb70eafb migration: Use non-atomic ops for clear log bitmap
Since we already have bitmap_mutex to protect either the dirty bitmap or
the clear log bitmap, we don't need atomic operations to set/clear/test on
the clear log bitmap.  Switching all ops from atomic to non-atomic
versions, meanwhile touch up the comments to show which lock is in charge.

Introduced non-atomic version of bitmap_test_and_clear_atomic(), mostly the
same as the atomic version but simplified a few places, e.g. dropped the
"old_bits" variable, and also the explicit memory barriers.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
2 years ago
..
aio-posix.c util/event-loop-base: Introduce options to set the thread pool size 3 years ago
aio-posix.h aio-posix: fix spurious ->poll_ready() callbacks in main loop 3 years ago
aio-wait.c aio_wait_kick: add missing memory barrier 2 years ago
aio-win32.c util/aio-win32: Correct the event array size in aio_poll() 2 years ago
aiocb.c
async-teardown.c os-posix: asynchronous teardown for shutdown on Linux 2 years ago
async.c replay: notify vCPU when BH is scheduled 2 years ago
atomic64.c osdep: Move memalign-related functions to their own header 3 years ago
base64.c nomaintainer: Fix Lesser GPL version number 4 years ago
bitmap.c migration: Use non-atomic ops for clear log bitmap 2 years ago
bitops.c avoid TABs in files that only contain a few 6 years ago
block-helpers.c block: move logical block size check function to a common utility function 4 years ago
block-helpers.h block: move logical block size check function to a common utility function 4 years ago
buffer.c nomaintainer: Fix Lesser GPL version number 4 years ago
bufferiszero.c cpuid: use unsigned for max cpuid 3 years ago
cacheflush.c util/cacheflush: Optimize flushing when ppc host has coherent icache 2 years ago
compatfd.c util: replace pipe()+cloexec with g_unix_open_pipe() 3 years ago
coroutine-sigaltstack.c Remove qemu-common.h include from most units 3 years ago
coroutine-ucontext.c coroutine-ucontext: use QEMU_DEFINE_STATIC_CO_TLS() 3 years ago
coroutine-win32.c coroutine-win32: use QEMU_DEFINE_STATIC_CO_TLS() 3 years ago
crc-ccitt.c util: Add CRC16 (CCITT) calculation routines 4 years ago
crc32c.c Include qemu-common.h exactly where needed 6 years ago
cutils.c cutils: Add missing dyld(3) include on macOS 2 years ago
dbus.c util: add dbus helper unit 5 years ago
drm.c util/drm: make portable by avoiding struct dirent d_type 4 years ago
envlist.c Use g_new() & friends where that makes obvious sense 3 years ago
error-report.c error-report: fix g_date_time_format assertion 3 years ago
error.c error: make Error **errp const where it is appropriate 5 years ago
event_notifier-posix.c Replace qemu_pipe() with g_unix_open_pipe() 3 years ago
event_notifier-win32.c Remove qemu-common.h include from most units 3 years ago
fdmon-epoll.c qemu/atomic.h: rename atomic_ to qatomic_ 4 years ago
fdmon-io_uring.c aio-posix: fix build failure io_uring 2.2 3 years ago
fdmon-poll.c fdmon-poll: reset npfd when upgrading to fdmon-epoll 4 years ago
fifo8.c utils/fifo8: change fatal errors from abort() to assert() 4 years ago
filemonitor-inotify.c nomaintainer: Fix Lesser GPL version number 4 years ago
filemonitor-stub.c nomaintainer: Fix Lesser GPL version number 4 years ago
getauxval.c util/getauxval: Porting to FreeBSD getauxval feature 4 years ago
guest-random.c util/guest-random: Fix size arg to tail memcpy 3 years ago
hbitmap.c block: simplify handling of try to merge different sized bitmaps 2 years ago
hexdump.c include: move C/util-related declarations to cutils.h 3 years ago
host-utils.c host-utils: Implemented signed 256-by-128 division 2 years ago
id.c net: Use id_generate() in the network subsystem, too 4 years ago
int128.c qemu/int128: addition of div/rem 128-bit operations 3 years ago
iov.c util: make do_send_recv work with partial send/recv 2 years ago
iova-tree.c util: accept iova_tree_remove_parameter by value 2 years ago
keyval.c include: add qemu/keyval.h 3 years ago
lockcnt.c qemu/atomic.h: rename atomic_ to qatomic_ 4 years ago
log.c util/log: Ignore per-thread flag if global file already there 2 years ago
main-loop.c util/main-loop: Avoid adding the same HANDLE twice 2 years ago
memalign.c osdep: Move memalign-related functions to their own header 3 years ago
memfd.c linux-user: add memfd_create 5 years ago
meson.build qga: Allow building of the guest agent without system emulators or tools 2 years ago
mmap-alloc.c util/mmap-alloc: Remove qemu_mempath_getpagesize() 2 years ago
module.c module: add Error arguments to module_load and module_load_qom 2 years ago
notify.c xen / notify: introduce a new XenWatchList abstraction 5 years ago
nvdimm-utils.c Clean up includes 4 years ago
osdep.c tests/qtest: Use send/recv for socket communication 2 years ago
oslib-posix.c util: Make qemu_prealloc_mem() optionally consume a ThreadContext 2 years ago
oslib-win32.c util: Make qemu_prealloc_mem() optionally consume a ThreadContext 2 years ago
path.c util/path: Do not cache all filenames at startup 5 years ago
qdist.c
qemu-co-shared-resource.c co-shared-resource: protect with a mutex 3 years ago
qemu-co-timeout.c util: add qemu-co-timeout 2 years ago
qemu-config.c Revert "s390x/s390-virtio-ccw: add zpcii-disable machine property" 2 years ago
qemu-coroutine-io.c Remove qemu-common.h include from most units 3 years ago
qemu-coroutine-lock.c coroutine: add flag to re-queue at front of CoQueue 2 years ago
qemu-coroutine-sleep.c coroutine-sleep: introduce qemu_co_sleep 4 years ago
qemu-coroutine.c coroutine: remove incorrect coroutine_fn annotations 2 years ago
qemu-option.c qemu-option: Allow deleting opts during qemu_opts_foreach() 3 years ago
qemu-print.c monitor: Use getter/setter functions for cur_mon 4 years ago
qemu-progress.c include: move progress API to qemu-progress.h 3 years ago
qemu-sockets.c -----BEGIN PGP SIGNATURE----- 2 years ago
qemu-thread-common.h Clean up includes 6 years ago
qemu-thread-posix.c util: Introduce qemu_thread_set_affinity() and qemu_thread_get_affinity() 2 years ago
qemu-thread-win32.c util: Introduce qemu_thread_set_affinity() and qemu_thread_get_affinity() 2 years ago
qemu-timer-common.c semihosting: Implement SYS_ELAPSED and SYS_TICKFREQ 4 years ago
qemu-timer.c qemu-timer: Skip empty timer lists before locking in qemu_clock_deadline_ns_all 2 years ago
qht.c osdep: Move memalign-related functions to their own header 3 years ago
qsp.c qemu/atomic: Add aligned_{int64,uint64}_t types 3 years ago
range.c Don't talk about the LGPL if the file is licensed under the GPL 6 years ago
rcu.c rcu: use coroutine TLS macros 3 years ago
readline.c readline: Fix possible array index out of bounds in readline_hist_add() 4 years ago
selfmap.c util/selfmap: Discard mapping on error 3 years ago
stats64.c qemu/atomic.h: rename atomic_ to qatomic_ 4 years ago
sys_membarrier.c
systemd.c tools: Fix use of fcntl(F_SETFD) during socket activation 5 years ago
thread-context.c util: Add write-only "node-affinity" property for ThreadContext 2 years ago
thread-pool.c thread-pool: remove stopping variable 3 years ago
throttle.c Remove superfluous timer_del() calls 4 years ago
timed-average.c
trace-events modules: add tracepoints 3 years ago
trace.h trace: switch position of headers to what Meson requires 4 years ago
transactions.c transactions: Invoke clean() after everything else 3 years ago
unicode.c json: Reject invalid UTF-8 sequences 6 years ago
uri.c util/uri: do not check argument of uri_free() 3 years ago
userfaultfd.c migration: introduce UFFD-WP low-level interface helpers 4 years ago
uuid.c Include qemu-common.h exactly where needed 6 years ago
vfio-helpers.c numa: call ->ram_block_removed() in ram_block_notifer_remove() 2 years ago
vhost-user-server.c util: rename qemu_*block() socket functions 3 years ago
yank.c yank: Remove dependency on qiochannel 4 years ago