diff options
| author | Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> | 2024-09-20 12:49:34 +0300 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2024-11-04 16:03:24 -0500 |
| commit | 9e4cc917e0be9c757d834a0e40c66def1fed5adc (patch) | |
| tree | 99f454cb8b9a335306b1f4d536155f3db2c318fc /hw/virtio/vhost-user-i2c-pci.c | |
| parent | fa19fe4e3a61765ff60914ee00fc1e7a6a38dba9 (diff) | |
| download | focaccia-qemu-9e4cc917e0be9c757d834a0e40c66def1fed5adc.tar.gz focaccia-qemu-9e4cc917e0be9c757d834a0e40c66def1fed5adc.zip | |
qdev-monitor: add option to report GenericError from find_device_state
Here we just prepare for the following patch, making possible to report GenericError as recommended. This patch doesn't aim to prevent further use of DeviceNotFound by future interfaces: - find_device_state() is used in blk_by_qdev_id() and qmp_get_blk() functions, which may lead to spread of DeviceNotFound anyway - also, nothing prevent simply copy-pasting find_device_state() calls with false argument Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Reviewed-by: Markus Armbruster <armbru@redhat.com> Acked-by: Raphael Norwitz <raphael@enfabrica.net> Message-Id: <20240920094936.450987-2-vsementsov@yandex-team.ru> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/virtio/vhost-user-i2c-pci.c')
0 files changed, 0 insertions, 0 deletions