qemu-e2k/stubs
Stefan Hajnoczi 195801d700 system/cpus: rename qemu_mutex_lock_iothread() to bql_lock()
The Big QEMU Lock (BQL) has many names and they are confusing. The
actual QemuMutex variable is called qemu_global_mutex but it's commonly
referred to as the BQL in discussions and some code comments. The
locking APIs, however, are called qemu_mutex_lock_iothread() and
qemu_mutex_unlock_iothread().

The "iothread" name is historic and comes from when the main thread was
split into into KVM vcpu threads and the "iothread" (now called the main
loop thread). I have contributed to the confusion myself by introducing
a separate --object iothread, a separate concept unrelated to the BQL.

The "iothread" name is no longer appropriate for the BQL. Rename the
locking APIs to:
- void bql_lock(void)
- void bql_unlock(void)
- bool bql_locked(void)

There are more APIs with "iothread" in their names. Subsequent patches
will rename them. There are also comments and documentation that will be
updated in later patches.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Acked-by: Fabiano Rosas <farosas@suse.de>
Acked-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Acked-by: Peter Xu <peterx@redhat.com>
Acked-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Acked-by: Hyman Huang <yong.huang@smartx.com>
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-id: 20240102153529.486531-2-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2024-01-08 10:45:43 -05:00
..
bdrv-next-monitor-owned.c
blk-commit-all.c
blk-exp-close-all.c
blockdev-close-all-bdrv-states.c
change-state-handler.c
cmos.c
colo-compare.c
colo.c stubs/colo.c: spelling 2023-08-07 13:52:59 +03:00
cpu-get-clock.c
cpu-synchronize-state.c
cpus-get-virtual-clock.c
dump.c
error-printf.c
fdset.c
fw_cfg.c
gdbstub.c gdbstub: Introduce GDBFeature structure 2023-10-11 08:46:33 +01:00
get-vm-name.c
graph-lock.c
icount.c
io_uring.c
iothread-lock-block.c
iothread-lock.c system/cpus: rename qemu_mutex_lock_iothread() to bql_lock() 2024-01-08 10:45:43 -05:00
is-daemonized.c
isa-bus.c
linux-aio.c
memory_device.c memory-device,vhost: Support automatic decision on the number of memslots 2023-10-12 14:15:22 +02:00
meson.build hw/remote: move stub vfu_object_set_bus_irq out of stubs/ 2023-10-18 10:01:01 +02:00
migr-blocker.c migration: per-mode blockers 2023-11-01 16:13:59 +01:00
module-opts.c
monitor-core.c
monitor.c
pci-bus.c
physmem.c
qdev.c
qemu-timer-notify-cb.c
qmp-command-available.c
qmp-quit.c
qtest.c
ram-block.c
ramfb.c hw/vfio: add ramfb migration support 2023-10-18 10:10:49 +02:00
replay-tools.c
replay.c
runstate-check.c
semihost-all.c
semihost.c * util/log: re-allow switching away from stderr log file 2023-10-09 10:11:18 -04:00
sysbus.c
target-get-monitor-def.c
target-monitor-defs.c
trace-control.c
usb-dev-stub.c
uuid.c
virtio-md-pci.c pc: Factor out (un)plug handling of virtio-md-pci devices 2023-07-12 09:27:27 +02:00
vm-stop.c
vmstate.c
win32-kbd-hook.c
xen-hw-stub.c