[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 01/16] hw/qdev: introduce qdev_is_realized() helper
- To: Stefan Hajnoczi <stefanha@xxxxxxxxxx>, qemu-devel@xxxxxxxxxx
- From: Philippe Mathieu-Daudé <philmd@xxxxxxxxxx>
- Date: Thu, 20 Apr 2023 10:17:30 +0200
- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Marcel Apfelbaum <marcel.apfelbaum@xxxxxxxxx>, Fam Zheng <fam@xxxxxxxxxx>, Julia Suvorova <jusual@xxxxxxxxxx>, Hanna Reitz <hreitz@xxxxxxxxxx>, Daniel P. Berrangé <berrange@xxxxxxxxxx>, Paolo Bonzini <pbonzini@xxxxxxxxxx>, Coiby Xu <Coiby.Xu@xxxxxxxxx>, Paul Durrant <paul@xxxxxxx>, Ronnie Sahlberg <ronniesahlberg@xxxxxxxxx>, Eduardo Habkost <eduardo@xxxxxxxxxxx>, Juan Quintela <quintela@xxxxxxxxxx>, "Michael S. Tsirkin" <mst@xxxxxxxxxx>, Stefano Garzarella <sgarzare@xxxxxxxxxx>, Anthony Perard <anthony.perard@xxxxxxxxxx>, Kevin Wolf <kwolf@xxxxxxxxxx>, "Richard W.M. Jones" <rjones@xxxxxxxxxx>, Richard Henderson <richard.henderson@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, qemu-block@xxxxxxxxxx, "Dr. David Alan Gilbert" <dgilbert@xxxxxxxxxx>, Peter Lieven <pl@xxxxxxx>, eesposit@xxxxxxxxxx, Aarushi Mehta <mehta.aaru20@xxxxxxxxx>, Stefan Weil <sw@xxxxxxxxxxx>, Xie Yongji <xieyongji@xxxxxxxxxxxxx>, David Woodhouse <dwmw2@xxxxxxxxxxxxx>
- Delivery-date: Thu, 20 Apr 2023 08:17:55 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 19/4/23 19:28, Stefan Hajnoczi wrote:
Add a helper function to check whether the device is realized without
requiring the Big QEMU Lock. The next patch adds a second caller. The
goal is to avoid spreading DeviceState field accesses throughout the
code.
Suggested-by: Philippe Mathieu-Daudé <philmd@xxxxxxxxxx>
Signed-off-by: Stefan Hajnoczi <stefanha@xxxxxxxxxx>
---
include/hw/qdev-core.h | 17 ++++++++++++++---
hw/scsi/scsi-bus.c | 3 +--
2 files changed, 15 insertions(+), 5 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@xxxxxxxxxx>
Thank you!
|