From patchwork Thu Dec 22 08:00:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 635949 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp74205pvb; Thu, 22 Dec 2022 00:01:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXuvMDrUJ/uyMftkYXME4TQsh/eFT3lEmFGJ0Se8wY+orIzayklvGd79dBbWhlJ1rfFQWdM+ X-Received: by 2002:ac8:7588:0:b0:3a7:e570:8275 with SMTP id s8-20020ac87588000000b003a7e5708275mr5313887qtq.27.1671696109600; Thu, 22 Dec 2022 00:01:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671696109; cv=none; d=google.com; s=arc-20160816; b=X3ZS4K2AWw9yG8iXInQ5VJ0SUqrHi82rB/C8Wy3szTHTHN7BgktCEj4nyT+0LhZVSF f2hCcnwCH99mwjVwaE8MKDwRvK0h8UdMtwslBsSuPORMweBiicwv55ilKNLpUbuJxn6e xx2vYCQsW6Y1bxlWiMo5Dc7fcYI06eGCQdXdDjw1Wx1+L+8NZTGga56x3d3IXiAWUUZZ bsMwRrj+OSzLN8ccpjJYUGoOtbm5Gua0pjGLGq0OvRhAyr0yvwoNa2jTsUty2558cMbo jZGPloA/CdFChTWyOgcQxO25/MQ7U42WznV3mRGIQ3V0QPL9vo//FGmBPM6fThDHb7mz sP2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=S94DCk4FKjoYsfdjHsj30dWPfli7J/Iy9TltG36gYfQ=; b=WKPdXtYVL7TOy5QWz5t02wteuMU1T8FGFE7uCxdnYyJu4TMmupd15pz+8+I+6/e5hP 3U6Fu+FBGuNTmB5OGcT1huqJP8SVyGe+SX1U705v/wlXBnwTdHoMloe2V3+wpvqEDm1A b/MIRERsdzoQX7eIoHYQN3itxMnPu08ZeNmKQWToOY3gK+pGpEOE7P5bHpRDmhaD22La ncliLw4C4zUPk9URuj2V7SISUpwus4zsG3GAk4+7ILOmhS3JDjO7bPzTfKALP7m3x50U un0hd9UrDZbB1ORf+znfwCr+jBepkM5n+DXoUDEffErEXfX5lfCF2B+AaUjZogYVZmHj o/8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CzNZWF7u; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id cg10-20020a05622a408a00b003a51fd42972si14925qtb.184.2022.12.22.00.01.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Dec 2022 00:01:49 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CzNZWF7u; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p8GV5-00008T-Pa; Thu, 22 Dec 2022 03:00:25 -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 1p8GUt-00006H-TO for qemu-devel@nongnu.org; Thu, 22 Dec 2022 03:00:14 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p8GUr-0003lR-O0 for qemu-devel@nongnu.org; Thu, 22 Dec 2022 03:00:11 -0500 Received: by mail-wm1-x32f.google.com with SMTP id z8-20020a05600c220800b003d33b0bda11so3630379wml.0 for ; Thu, 22 Dec 2022 00:00:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=S94DCk4FKjoYsfdjHsj30dWPfli7J/Iy9TltG36gYfQ=; b=CzNZWF7uplJiyRIJ2/ML9D8C5iYFTP0T1U3UA79gg3IuHQGlIuFjvvcWyIJWfhppjn tMuJ3x1Ht3YnObgSPfchhmXrki9h5GaadXEjdWb3XQAFtDbpYS17rqYUvmPxfcZNxL/p 81ii8DkgQw09WfDTwL5b+tGDi7vIU4p8sTKE+T1XHfE+7q6kQ4hS9JzT7CwUKVEGXvV+ eE+KLV3PHG+/+20r+kOiakwW6QW9riYUkHMNlLeKl5TWLdPWD4ghsUzPPzOisk/+2/I0 vXv+JVYNuMmQurCoYwlgitAsZ9RAHyuKoPh3bfSp4AT1dYrtKGJLLu5BbYgy9csdsmdZ 2FKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=S94DCk4FKjoYsfdjHsj30dWPfli7J/Iy9TltG36gYfQ=; b=1eozAFJgqTke6/1s6CuFQSABUPfezEPJk2C9omgdmyTj618uULp5+Bra1Ow1pyz/Ii w9ht6IuXKY40d8O5ICFDYnSujdeGoTfm36qJ5B+K+b2Tjt2CSDNQl/9ySXZWRhbE2ONo 1KPoopbRhOSezCUH3s5nN9/hapnQrqSfyiRJ7qT23+JhXHfhV109BJEDFajii99bmB/4 5XpAvvryeX20iPyoY1Cr1K24yNhOxgdAi6/pEXQTz+2SMy1SEPWRkulMEqmXiQbpsnUr Cbh8S3elWJSbtpb7x/VmcPBERf2rtUphv8lWwion2YtEbm9/lc8mDx34J6kMFcFcCQ4D +BDg== X-Gm-Message-State: AFqh2kpzBtE8VaQPMfP+Jh/OuTC0HDsWAlC5Rc0U1HaeXF080H36jIvT 8DKjkYyX4SM/4TbuPpGqG0jcg/a4kpocTJsTA5s= X-Received: by 2002:a05:600c:a4d:b0:3cf:6e78:e2ca with SMTP id c13-20020a05600c0a4d00b003cf6e78e2camr6171384wmq.5.1671696007647; Thu, 22 Dec 2022 00:00:07 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id c4-20020a05600c0a4400b003cf75213bb9sm5550409wmq.8.2022.12.22.00.00.06 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 22 Dec 2022 00:00:07 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Jonah Palmer , "Michael S. Tsirkin" , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH 0/2] hw/virtio: Extract QMP QOM-specific functions to virtio-qmp.c Date: Thu, 22 Dec 2022 09:00:03 +0100 Message-Id: <20221222080005.27616-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.google.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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Move more QMP code from virtio.c, as suggested by Jonah while reviewing "hw/virtio: Split ioconfig / qmp code from virtio.c" (https://lore.kernel.org/qemu-devel/20221213111707.34921-1-philmd@linaro.org/). Philippe Mathieu-Daudé (2): hw/virtio: Rename virtio_device_find() -> qmp_find_virtio_device() hw/virtio: Extract QMP QOM-specific functions to virtio-qmp.c hw/virtio/virtio-qmp.c | 192 +++++++++++++++++++++++++++++++++++++++- hw/virtio/virtio-qmp.h | 9 ++ hw/virtio/virtio.c | 195 +---------------------------------------- 3 files changed, 203 insertions(+), 193 deletions(-)