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
|
@ -581,7 +581,7 @@ static int xen_set_shared_info(uint64_t gfn)
|
|||
uint64_t gpa = gfn << TARGET_PAGE_BITS;
|
||||
int i, err;
|
||||
|
||||
QEMU_IOTHREAD_LOCK_GUARD();
|
||||
BQL_LOCK_GUARD();
|
||||
|
||||
/*
|
||||
* The xen_overlay device tells KVM about it too, since it had to
|
||||
|
|
|
@ -2222,7 +2222,7 @@ static int ppc_next_unmasked_interrupt(CPUPPCState *env)
|
|||
void ppc_maybe_interrupt(CPUPPCState *env)
|
||||
{
|
||||
CPUState *cs = env_cpu(env);
|
||||
QEMU_IOTHREAD_LOCK_GUARD();
|
||||
BQL_LOCK_GUARD();
|
||||
|
||||
if (ppc_next_unmasked_interrupt(env)) {
|
||||
cpu_interrupt(cs, CPU_INTERRUPT_HARD);
|
||||
|
|
|
@ -244,7 +244,7 @@ void cpu_interrupt_exittb(CPUState *cs)
|
|||
* unless running with TCG.
|
||||
*/
|
||||
if (tcg_enabled()) {
|
||||
QEMU_IOTHREAD_LOCK_GUARD();
|
||||
BQL_LOCK_GUARD();
|
||||
cpu_interrupt(cs, CPU_INTERRUPT_EXITTB);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -655,7 +655,7 @@ void riscv_cpu_interrupt(CPURISCVState *env)
|
|||
uint64_t gein, vsgein = 0, vstip = 0, irqf = 0;
|
||||
CPUState *cs = env_cpu(env);
|
||||
|
||||
QEMU_IOTHREAD_LOCK_GUARD();
|
||||
BQL_LOCK_GUARD();
|
||||
|
||||
if (env->virt_enabled) {
|
||||
gein = get_field(env->hstatus, HSTATUS_VGEIN);
|
||||
|
@ -681,7 +681,7 @@ uint64_t riscv_cpu_update_mip(CPURISCVState *env, uint64_t mask, uint64_t value)
|
|||
/* No need to update mip for VSTIP */
|
||||
mask = ((mask == MIP_VSTIP) && env->vstime_irq) ? 0 : mask;
|
||||
|
||||
QEMU_IOTHREAD_LOCK_GUARD();
|
||||
BQL_LOCK_GUARD();
|
||||
|
||||
env->mip = (env->mip & ~mask) | (value & mask);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue