From nobody Tue Dec 16 07:12:57 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1672910722; cv=none; d=zohomail.com; s=zohoarc; b=ccaECZLxU1DFhnNHmxJ2c5rjqRzucoFu5Nq6CEYCkU5SwiViQFGZ2/MvGVbnzgJssIj2FLVDik/AumDK9IgSbQKBkasjOyQh7Ilu+Tq+t24XtouWYmuUVkOYxWKHsLSh/kQYS/uyFFienn6e+7gQ5yAQYkQBVm3Bial+LxNEXYk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1672910722; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=gyeI9n00srHT95Wf05HcVdwfoBiIPp7caNy4o1qIx1E=; b=Lypt3GsC+2P9UetWsEs8MWcNWhjDzZq3W/F/h4+gBiEP89Jyhz2NU0tSzsVJI4VmhJmUxVMy8BGRbJXEqo3BlTJ2OMctn1kb8dHmM2KbX0qD3gDsNUD+B/ZA4mCMkCQssy0sU5MHBFjM9UNqnp95DIoHB0XfuMuX2/BP/vy0yNg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1672910722201600.3603807736891; Thu, 5 Jan 2023 01:25:22 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDMLo-0002cg-FF; Thu, 05 Jan 2023 04:15:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDMLf-0002PP-Eq for qemu-devel@nongnu.org; Thu, 05 Jan 2023 04:15:43 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDMLd-0007Ax-Ut for qemu-devel@nongnu.org; Thu, 05 Jan 2023 04:15:43 -0500 Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-246-NzLio1BAMIqyk9l9lA8vtA-1; Thu, 05 Jan 2023 04:15:39 -0500 Received: by mail-wr1-f69.google.com with SMTP id o14-20020adfa10e000000b002631c56fe26so4630492wro.1 for ; Thu, 05 Jan 2023 01:15:39 -0800 (PST) Received: from redhat.com ([2.52.151.85]) by smtp.gmail.com with ESMTPSA id v16-20020a05600c445000b003c6c3fb3cf6sm1860155wmn.18.2023.01.05.01.15.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jan 2023 01:15:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672910141; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gyeI9n00srHT95Wf05HcVdwfoBiIPp7caNy4o1qIx1E=; b=CNlSQq/rwIm+sbeB+8c0d6bprV9b6sf9AeBJa4ptyd38QizEC5NnY6m+eTY+GUyrImDown +Xb4xqGShTz4b5OVEmbT1iBfQ1vlmEtC8gjRxf76h/TVvUDT6cfEgL/Ueos49vjwbLkPO4 9rYGc3Yy5JG3XVCYDLKKKo8Pxt5l/K8= X-MC-Unique: NzLio1BAMIqyk9l9lA8vtA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gyeI9n00srHT95Wf05HcVdwfoBiIPp7caNy4o1qIx1E=; b=0PWtCBvRPC3ehh5TI30sE/XlcBuXlOde98+F5Zov/RBtd5I97gDpbPcLc7mA9Hp5M9 4Cvp+nSgBLUuLYnkxdgSEbdI8KL9W3GR5mhprYAtvRMtV4dpyb6jJglfNQGDe5Xby0h6 Eh1yhPCKmwHB4HUOXlfpNfkbUzFMBCZxvSiBf0+MG1QbvcUZFkyebz1M3TLBCan8GNum vOsG4oIt/B4DRuB3+BstD22HwXxaOXmIFsCmU/hQP4HRVuR2iw6M3EFPDSvU/JUFHX3e kk5EoVM5N73xoWoKRNk80clrbdw5EhXS5miuHDnUE8ibbEa8T9foCTPzIKS6/wraXCD5 lHrw== X-Gm-Message-State: AFqh2kpou8dCSntvUd3vhUQ8muWNZ+uHJVCbwxO7h4+00efAbBsec7e7 CSZe0xI1vhXc3NGobbmP07K9rBHl6dRaH2osrgbTOgAS28OrWbspouGM18NFg9u8oNkmjYOVUAF JNakqMI1fVit5RwbS3R9ljt3Ip6DiinoHV35l9JQ0/LSY/SQX5vrtw/iYT/rT X-Received: by 2002:a05:600c:4f55:b0:3cf:7197:e67c with SMTP id m21-20020a05600c4f5500b003cf7197e67cmr34440618wmq.25.1672910138227; Thu, 05 Jan 2023 01:15:38 -0800 (PST) X-Google-Smtp-Source: AMrXdXtTPQ88rC3LTzG01sihXMH6Qdx7o82vc5OyRFC0PJqRfx3hpEIBJ3rpnJk1YYxD7T5uAsqORA== X-Received: by 2002:a05:600c:4f55:b0:3cf:7197:e67c with SMTP id m21-20020a05600c4f5500b003cf7197e67cmr34440605wmq.25.1672910137952; Thu, 05 Jan 2023 01:15:37 -0800 (PST) Date: Thu, 5 Jan 2023 04:15:35 -0500 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Cc: Peter Maydell , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= Subject: [PULL 25/51] hw/virtio: Rename virtio_device_find() -> qmp_find_virtio_device() Message-ID: <20230105091310.263867-26-mst@redhat.com> References: <20230105091310.263867-1-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230105091310.263867-1-mst@redhat.com> X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=mst@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1672910722737100001 From: Philippe Mathieu-Daud=C3=A9 To emphasize this function is QMP related, rename it. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20221222080005.27616-2-philmd@linaro.org> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/virtio/virtio.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index 6ff797e1cf..e08443e3bf 100644 --- a/hw/virtio/virtio.c +++ b/hw/virtio/virtio.c @@ -3855,7 +3855,7 @@ VirtioInfoList *qmp_x_query_virtio(Error **errp) return list; } =20 -static VirtIODevice *virtio_device_find(const char *path) +static VirtIODevice *qmp_find_virtio_device(const char *path) { VirtIODevice *vdev; =20 @@ -3896,7 +3896,7 @@ VirtioStatus *qmp_x_query_virtio_status(const char *p= ath, Error **errp) VirtIODevice *vdev; VirtioStatus *status; =20 - vdev =3D virtio_device_find(path); + vdev =3D qmp_find_virtio_device(path); if (vdev =3D=3D NULL) { error_setg(errp, "Path %s is not a VirtIODevice", path); return NULL; @@ -3972,7 +3972,7 @@ VirtVhostQueueStatus *qmp_x_query_virtio_vhost_queue_= status(const char *path, VirtIODevice *vdev; VirtVhostQueueStatus *status; =20 - vdev =3D virtio_device_find(path); + vdev =3D qmp_find_virtio_device(path); if (vdev =3D=3D NULL) { error_setg(errp, "Path %s is not a VirtIODevice", path); return NULL; @@ -4016,7 +4016,7 @@ VirtQueueStatus *qmp_x_query_virtio_queue_status(cons= t char *path, VirtIODevice *vdev; VirtQueueStatus *status; =20 - vdev =3D virtio_device_find(path); + vdev =3D qmp_find_virtio_device(path); if (vdev =3D=3D NULL) { error_setg(errp, "Path %s is not a VirtIODevice", path); return NULL; @@ -4109,7 +4109,7 @@ VirtioQueueElement *qmp_x_query_virtio_queue_element(= const char *path, VirtQueue *vq; VirtioQueueElement *element =3D NULL; =20 - vdev =3D virtio_device_find(path); + vdev =3D qmp_find_virtio_device(path); if (vdev =3D=3D NULL) { error_setg(errp, "Path %s is not a VirtIO device", path); return NULL; --=20 MST