qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 01/16] hw/qdev: introduce qdev_is_realized() helper


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2 01/16] hw/qdev: introduce qdev_is_realized() helper
Date: Thu, 20 Apr 2023 10:17:30 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0

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@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
  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@linaro.org>

Thank you!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]