hw/virtio: Rename virtio_device_find() -> qmp_find_virtio_device()
To emphasize this function is QMP related, rename it. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20221222080005.27616-2-philmd@linaro.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
1680542862
commit
dd92cbb366
@ -3855,7 +3855,7 @@ VirtioInfoList *qmp_x_query_virtio(Error **errp)
|
|||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VirtIODevice *virtio_device_find(const char *path)
|
static VirtIODevice *qmp_find_virtio_device(const char *path)
|
||||||
{
|
{
|
||||||
VirtIODevice *vdev;
|
VirtIODevice *vdev;
|
||||||
|
|
||||||
@ -3896,7 +3896,7 @@ VirtioStatus *qmp_x_query_virtio_status(const char *path, Error **errp)
|
|||||||
VirtIODevice *vdev;
|
VirtIODevice *vdev;
|
||||||
VirtioStatus *status;
|
VirtioStatus *status;
|
||||||
|
|
||||||
vdev = virtio_device_find(path);
|
vdev = qmp_find_virtio_device(path);
|
||||||
if (vdev == NULL) {
|
if (vdev == NULL) {
|
||||||
error_setg(errp, "Path %s is not a VirtIODevice", path);
|
error_setg(errp, "Path %s is not a VirtIODevice", path);
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -3972,7 +3972,7 @@ VirtVhostQueueStatus *qmp_x_query_virtio_vhost_queue_status(const char *path,
|
|||||||
VirtIODevice *vdev;
|
VirtIODevice *vdev;
|
||||||
VirtVhostQueueStatus *status;
|
VirtVhostQueueStatus *status;
|
||||||
|
|
||||||
vdev = virtio_device_find(path);
|
vdev = qmp_find_virtio_device(path);
|
||||||
if (vdev == NULL) {
|
if (vdev == NULL) {
|
||||||
error_setg(errp, "Path %s is not a VirtIODevice", path);
|
error_setg(errp, "Path %s is not a VirtIODevice", path);
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -4016,7 +4016,7 @@ VirtQueueStatus *qmp_x_query_virtio_queue_status(const char *path,
|
|||||||
VirtIODevice *vdev;
|
VirtIODevice *vdev;
|
||||||
VirtQueueStatus *status;
|
VirtQueueStatus *status;
|
||||||
|
|
||||||
vdev = virtio_device_find(path);
|
vdev = qmp_find_virtio_device(path);
|
||||||
if (vdev == NULL) {
|
if (vdev == NULL) {
|
||||||
error_setg(errp, "Path %s is not a VirtIODevice", path);
|
error_setg(errp, "Path %s is not a VirtIODevice", path);
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -4109,7 +4109,7 @@ VirtioQueueElement *qmp_x_query_virtio_queue_element(const char *path,
|
|||||||
VirtQueue *vq;
|
VirtQueue *vq;
|
||||||
VirtioQueueElement *element = NULL;
|
VirtioQueueElement *element = NULL;
|
||||||
|
|
||||||
vdev = virtio_device_find(path);
|
vdev = qmp_find_virtio_device(path);
|
||||||
if (vdev == NULL) {
|
if (vdev == NULL) {
|
||||||
error_setg(errp, "Path %s is not a VirtIO device", path);
|
error_setg(errp, "Path %s is not a VirtIO device", path);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user