mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
qemu/main-loop: rename QEMU_IOTHREAD_LOCK_GUARD to BQL_LOCK_GUARD
The name "iothread" is overloaded. Use the term Big QEMU Lock (BQL) instead, it is already widely used and unambiguous. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Paul Durrant <paul@xen.org> Acked-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Cédric Le Goater <clg@kaod.org> Acked-by: Ilya Leoshkevich <iii@linux.ibm.com> Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com> Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com> Message-id: 20240102153529.486531-3-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
195801d700
commit
32ead8e62f
9 changed files with 24 additions and 25 deletions
|
@ -1127,7 +1127,7 @@ int xen_evtchn_reset_op(struct evtchn_reset *reset)
|
|||
return -ESRCH;
|
||||
}
|
||||
|
||||
QEMU_IOTHREAD_LOCK_GUARD();
|
||||
BQL_LOCK_GUARD();
|
||||
return xen_evtchn_soft_reset();
|
||||
}
|
||||
|
||||
|
@ -1145,7 +1145,7 @@ int xen_evtchn_close_op(struct evtchn_close *close)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
QEMU_IOTHREAD_LOCK_GUARD();
|
||||
BQL_LOCK_GUARD();
|
||||
qemu_mutex_lock(&s->port_lock);
|
||||
|
||||
ret = close_port(s, close->port, &flush_kvm_routes);
|
||||
|
@ -1272,7 +1272,7 @@ int xen_evtchn_bind_pirq_op(struct evtchn_bind_pirq *pirq)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
QEMU_IOTHREAD_LOCK_GUARD();
|
||||
BQL_LOCK_GUARD();
|
||||
|
||||
if (s->pirq[pirq->pirq].port) {
|
||||
return -EBUSY;
|
||||
|
@ -1824,7 +1824,7 @@ int xen_physdev_map_pirq(struct physdev_map_pirq *map)
|
|||
return -ENOTSUP;
|
||||
}
|
||||
|
||||
QEMU_IOTHREAD_LOCK_GUARD();
|
||||
BQL_LOCK_GUARD();
|
||||
QEMU_LOCK_GUARD(&s->port_lock);
|
||||
|
||||
if (map->domid != DOMID_SELF && map->domid != xen_domid) {
|
||||
|
@ -1884,7 +1884,7 @@ int xen_physdev_unmap_pirq(struct physdev_unmap_pirq *unmap)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
QEMU_IOTHREAD_LOCK_GUARD();
|
||||
BQL_LOCK_GUARD();
|
||||
qemu_mutex_lock(&s->port_lock);
|
||||
|
||||
if (!pirq_inuse(s, pirq)) {
|
||||
|
@ -1924,7 +1924,7 @@ int xen_physdev_eoi_pirq(struct physdev_eoi *eoi)
|
|||
return -ENOTSUP;
|
||||
}
|
||||
|
||||
QEMU_IOTHREAD_LOCK_GUARD();
|
||||
BQL_LOCK_GUARD();
|
||||
QEMU_LOCK_GUARD(&s->port_lock);
|
||||
|
||||
if (!pirq_inuse(s, pirq)) {
|
||||
|
@ -1956,7 +1956,7 @@ int xen_physdev_query_pirq(struct physdev_irq_status_query *query)
|
|||
return -ENOTSUP;
|
||||
}
|
||||
|
||||
QEMU_IOTHREAD_LOCK_GUARD();
|
||||
BQL_LOCK_GUARD();
|
||||
QEMU_LOCK_GUARD(&s->port_lock);
|
||||
|
||||
if (!pirq_inuse(s, pirq)) {
|
||||
|
|
|
@ -176,7 +176,7 @@ int xen_gnttab_map_page(uint64_t idx, uint64_t gfn)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
QEMU_IOTHREAD_LOCK_GUARD();
|
||||
BQL_LOCK_GUARD();
|
||||
QEMU_LOCK_GUARD(&s->gnt_lock);
|
||||
|
||||
xen_overlay_do_map_page(&s->gnt_aliases[idx], gpa);
|
||||
|
|
|
@ -36,7 +36,7 @@ static void cpu_mips_irq_request(void *opaque, int irq, int level)
|
|||
return;
|
||||
}
|
||||
|
||||
QEMU_IOTHREAD_LOCK_GUARD();
|
||||
BQL_LOCK_GUARD();
|
||||
|
||||
if (level) {
|
||||
env->CP0_Cause |= 1 << (irq + CP0Ca_IP);
|
||||
|
|
|
@ -47,7 +47,7 @@ void ppc_set_irq(PowerPCCPU *cpu, int irq, int level)
|
|||
unsigned int old_pending;
|
||||
|
||||
/* We may already have the BQL if coming from the reset path */
|
||||
QEMU_IOTHREAD_LOCK_GUARD();
|
||||
BQL_LOCK_GUARD();
|
||||
|
||||
old_pending = env->pending_interrupts;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue