[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: Stefan Hajnoczi <stefanha@xxxxxxxxxx>, qemu-devel@xxxxxxxxxx
- From: Bernhard Beschow <shentey@xxxxxxxxx>
- Date: Tue, 02 Jan 2024 21:37:00 +0000
- Cc: Daniel P. Berrangé <berrange@xxxxxxxxxx>, Marcel Apfelbaum <marcel.apfelbaum@xxxxxxxxx>, Akihiko Odaki <akihiko.odaki@xxxxxxxxxx>, 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 21:37:23 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Am 12. Dezember 2023 15:39:00 UTC schrieb Stefan Hajnoczi <stefanha@xxxxxxxxxx>:
>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
Duplicate "into" here.
>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@xxxxxxxxxx>
>Reviewed-by: Paul Durrant <paul@xxxxxxx>
>Acked-by: Fabiano Rosas <farosas@xxxxxxx>
>Acked-by: David Woodhouse <dwmw@xxxxxxxxxxxx>
>Reviewed-by: Cédric Le Goater <clg@xxxxxxxx>
>Acked-by: Peter Xu <peterx@xxxxxxxxxx>
>Acked-by: Eric Farman <farman@xxxxxxxxxxxxx>
>Reviewed-by: Harsh Prateek Bora <harshpb@xxxxxxxxxxxxx>
|