[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 1/5] system/cpus: rename qemu_mutex_lock_iothread() to bql_lock()
- To: Akihiko Odaki <akihiko.odaki@xxxxxxxxxx>
- From: Stefan Hajnoczi <stefanha@xxxxxxxxxx>
- Date: Tue, 2 Jan 2024 10:33:45 -0500
- Cc: qemu-devel@xxxxxxxxxx, Daniel P. Berrangé <berrange@xxxxxxxxxx>, Marcel Apfelbaum <marcel.apfelbaum@xxxxxxxxx>, Artyom Tarasenko <atar4qemu@xxxxxxxxx>, Paul Durrant <paul@xxxxxxx>, Daniel Henrique Barboza <danielhb413@xxxxxxxxx>, Cédric Le Goater <clg@xxxxxxxx>, Paolo Bonzini <pbonzini@xxxxxxxxxx>, BALATON Zoltan <balaton@xxxxxxxxxx>, Jagannathan Raman <jag.raman@xxxxxxxxxx>, Anthony Perard <anthony.perard@xxxxxxxxxx>, Nicholas Piggin <npiggin@xxxxxxxxx>, David Gibson <david@xxxxxxxxxxxxxxxxxxxxx>, Aleksandar Rikalo <aleksandar.rikalo@xxxxxxxxxx>, Alexander Graf <agraf@xxxxxxxxx>, Hailiang Zhang <zhanghailiang@xxxxxxxxxxx>, Marcelo Tosatti <mtosatti@xxxxxxxxxx>, Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx>, Huacai Chen <chenhuacai@xxxxxxxxxx>, Harsh Prateek Bora <harshpb@xxxxxxxxxxxxx>, Ilya Leoshkevich <iii@xxxxxxxxxxxxx>, Peter Xu <peterx@xxxxxxxxxx>, Hyman Huang <yong.huang@xxxxxxxxxx>, Fam Zheng <fam@xxxxxxxxxx>, Song Gao <gaosong@xxxxxxxxxxx>, Alistair Francis <alistair.francis@xxxxxxx>, Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, David Woodhouse <dwmw2@xxxxxxxxxxxxx>, Christian Borntraeger <borntraeger@xxxxxxxxxxxxx>, Palmer Dabbelt <palmer@xxxxxxxxxxx>, Aurelien Jarno <aurelien@xxxxxxxxxxx>, Leonardo Bras <leobras@xxxxxxxxxx>, Jiri Slaby <jslaby@xxxxxxx>, Eric Farman <farman@xxxxxxxxxxxxx>, Thomas Huth <thuth@xxxxxxxxxx>, Richard Henderson <richard.henderson@xxxxxxxxxx>, David Hildenbrand <david@xxxxxxxxxx>, Michael Roth <michael.roth@xxxxxxx>, Elena Ufimtseva <elena.ufimtseva@xxxxxxxxxx>, Gerd Hoffmann <kraxel@xxxxxxxxxx>, Cameron Esfahani <dirty@xxxxxxxxx>, qemu-ppc@xxxxxxxxxx, John Snow <jsnow@xxxxxxxxxx>, Mark Cave-Ayland <mark.cave-ayland@xxxxxxxxxxxx>, Weiwei Li <liwei1518@xxxxxxxxx>, Hanna Reitz <hreitz@xxxxxxxxxx>, qemu-s390x@xxxxxxxxxx, qemu-block@xxxxxxxxxx, Alex Bennée <alex.bennee@xxxxxxxxxx>, kvm@xxxxxxxxxxxxxxx, "Michael S. Tsirkin" <mst@xxxxxxxxxx>, Pavel Dovgalyuk <pavel.dovgaluk@xxxxxxxxx>, Vladimir Sementsov-Ogievskiy <vsementsov@xxxxxxxxxxxxxx>, Andrey Smirnov <andrew.smirnov@xxxxxxxxx>, Reinoud Zandijk <reinoud@xxxxxxxxxx>, Kevin Wolf <kwolf@xxxxxxxxxx>, Bin Meng <bin.meng@xxxxxxxxxxxxx>, Sunil Muthuswamy <sunilmut@xxxxxxxxxxxxx>, Peter Maydell <peter.maydell@xxxxxxxxxx>, qemu-riscv@xxxxxxxxxx, Liu Zhiwei <zhiwei_liu@xxxxxxxxxxxxxxxxx>, Stafford Horne <shorne@xxxxxxxxx>, Fabiano Rosas <farosas@xxxxxxx>, Juan Quintela <quintela@xxxxxxxxxx>, Markus Armbruster <armbru@xxxxxxxxxx>, qemu-arm@xxxxxxxxxx, Jason Wang <jasowang@xxxxxxxxxx>, Eduardo Habkost <eduardo@xxxxxxxxxxx>, Max Filippov <jcmvbkbc@xxxxxxxxx>, Jean-Christophe Dubois <jcd@xxxxxxxxxxxxxxx>, Eric Blake <eblake@xxxxxxxxxx>, Roman Bolshakov <rbolshakov@xxxxxxx>, Halil Pasic <pasic@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, Philippe Mathieu-Daudé <philmd@xxxxxxxxxx>, David Woodhouse <dwmw@xxxxxxxxxxxx>
- Delivery-date: Tue, 02 Jan 2024 15:34:16 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Wed, Dec 13, 2023 at 03:37:00PM +0900, Akihiko Odaki wrote:
> On 2023/12/13 0:39, Stefan Hajnoczi wrote:
> > @@ -312,58 +312,58 @@ bool qemu_in_main_thread(void);
> > } while (0)
> > /**
> > - * qemu_mutex_lock_iothread: Lock the main loop mutex.
> > + * bql_lock: Lock the Big QEMU Lock (BQL).
> > *
> > - * This function locks the main loop mutex. The mutex is taken by
> > + * This function locks the Big QEMU Lock (BQL). The lock is taken by
> > * main() in vl.c and always taken except while waiting on
> > - * external events (such as with select). The mutex should be taken
> > + * external events (such as with select). The lock should be taken
> > * by threads other than the main loop thread when calling
> > * qemu_bh_new(), qemu_set_fd_handler() and basically all other
> > * functions documented in this file.
> > *
> > - * NOTE: tools currently are single-threaded and qemu_mutex_lock_iothread
> > + * NOTE: tools currently are single-threaded and bql_lock
> > * is a no-op there.
> > */
> > -#define qemu_mutex_lock_iothread() \
> > - qemu_mutex_lock_iothread_impl(__FILE__, __LINE__)
> > -void qemu_mutex_lock_iothread_impl(const char *file, int line);
> > +#define bql_lock() \
> > + bql_lock_impl(__FILE__, __LINE__)
>
> This line break is no longer necessary.
Will fix in v3.
Stefan
Attachment:
signature.asc
Description: PGP signature
|