From nobody Mon Nov 10 17:57:12 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=163.com ARC-Seal: i=1; a=rsa-sha256; t=1558451961; cv=none; d=zoho.com; s=zohoarc; b=eDwBFDg665MGBF0W9WDgMaQRvj5CbNW6DxfN6x9yL+iDk2cZso4I6UKalofBzT6NLYoeO9oU87U2FjC4xAdBUojMOJFVAAIVw++uAplVwhIsmJPFGy18ONcT+X5gf8ZWcE5pliuUDTpF70R8RXFcV8+a1ELGmd80oe8e/ZJbXQw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558451961; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=YF+Y59FtV25KxIFj7Lw31u+auxIodjqyp94VvLhiljw=; b=R5+VzwH54hUpOjqz86v3qQJQeULZqxAYp3iOmeF/OAfG0rSmRT8w5jf2QcLJXIDYIWnwxGF9M0HUF0fYYVBoePKwws9z9+355chRGAW8eWFsF3N+E3HHbDc90Veni0VGcHeGB2aM76mAPnojnvaq2538FoPK5Hos6sTGs6T+SGE= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1558451961590848.5192110247535; Tue, 21 May 2019 08:19:21 -0700 (PDT) Received: from localhost ([127.0.0.1]:55408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT6Xn-0000Fs-Gg for importer@patchew.org; Tue, 21 May 2019 11:19:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT6VR-0007Vt-3y for qemu-devel@nongnu.org; Tue, 21 May 2019 11:16:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hT6VQ-0001ZG-80 for qemu-devel@nongnu.org; Tue, 21 May 2019 11:16:45 -0400 Received: from m12-16.163.com ([220.181.12.16]:57269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT6VO-0001Uo-PE; Tue, 21 May 2019 11:16:44 -0400 Received: from localhost.localdomain (unknown [115.192.71.0]) by smtp12 (Coremail) with SMTP id EMCowAC31lxJFuRcie7uGw--.4521S3; Tue, 21 May 2019 23:16:29 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=YF+Y59FtV25KxIFj7L w31u+auxIodjqyp94VvLhiljw=; b=AbmPP46ZNC6kq1swgcEN4Bg//Iz7uX+Aaz +MxS1DZUWXy4w9daecrullGfR1Q0tOHHKzTGj6x/1bhEGdPzksiWxUaLzyQYzTWk R/vv3ODPFf1hzSpYOTNC6tVS3Za7UoqPGnt/9osDO0G8M0xvx5+BKB4TmHm3jN1f lFTSYlefk= From: Li Qiang To: alex.williamson@redhat.com, lvivier@redhat.com Date: Tue, 21 May 2019 08:15:40 -0700 Message-Id: <20190521151543.92274-2-liq3ea@163.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190521151543.92274-1-liq3ea@163.com> References: <20190521151543.92274-1-liq3ea@163.com> X-CM-TRANSID: EMCowAC31lxJFuRcie7uGw--.4521S3 X-Coremail-Antispam: 1Uf129KBjvdXoW7Xw1xXF48ZrWDCFWrXw13Arb_yoWkKwcEy3 ZrZw4v9wn5Cay3KwsrZa43Cw48Aw4YqF4kJ34rtrs2yr4UJFs8CryDArn7Zr1fur4fAry8 Grs2qr13Kry3KjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUbrOzDUUUUU== X-Originating-IP: [115.192.71.0] X-CM-SenderInfo: 5oltjvrd6rljoofrz/1tbiTw27bVsGPbUeDAAAsT X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 220.181.12.16 Subject: [Qemu-devel] [PATCH v2 1/4] vfio: pci: make "vfio-pci-nohotplug" as MACRO X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, philmd@redhat.com, liq3ea@gmail.com, qemu-devel@nongnu.org, Li Qiang Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" The QOMConventions recommends we should use TYPE_FOO for a TypeInfo's name. Though "vfio-pci-nohotplug" is not used in other parts, for consistency we should make this change. CC: qemu-trivial@nongnu.org Signed-off-by: Li Qiang Acked-by: Alex Williamson Reviewed-by: Eric Auger Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- hw/vfio/pci.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 8cecb53d5c..08729e5875 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -40,6 +40,8 @@ #define TYPE_VFIO_PCI "vfio-pci" #define PCI_VFIO(obj) OBJECT_CHECK(VFIOPCIDevice, obj, TYPE_VFIO_PCI) =20 +#define TYPE_VIFO_PCI_NOHOTPLUG "vfio-pci-nohotplug" + static void vfio_disable_interrupts(VFIOPCIDevice *vdev); static void vfio_mmap_set_enabled(VFIOPCIDevice *vdev, bool enabled); =20 @@ -3304,8 +3306,8 @@ static void vfio_pci_nohotplug_dev_class_init(ObjectC= lass *klass, void *data) } =20 static const TypeInfo vfio_pci_nohotplug_dev_info =3D { - .name =3D "vfio-pci-nohotplug", - .parent =3D "vfio-pci", + .name =3D TYPE_VIFO_PCI_NOHOTPLUG, + .parent =3D TYPE_VFIO_PCI, .instance_size =3D sizeof(VFIOPCIDevice), .class_init =3D vfio_pci_nohotplug_dev_class_init, }; --=20 2.17.1 From nobody Mon Nov 10 17:57:12 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=163.com ARC-Seal: i=1; a=rsa-sha256; t=1558452193; cv=none; d=zoho.com; s=zohoarc; b=KKSZjKLJfF0lbc849ad948xrY0ojKk35t2GJZVPSQCDyYrEOq16cH+Oy5UY89OUd/zkIKDO1ztDU5Z9a2uUBccvfWO+mRymIgXlyV7dr9c+wH5IsXJD0n9RRog0GQOFUAINUkCP4iFvsqhT26yeAUN4WSMUKtaSiHynxwRYs6RA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558452193; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=UttzqMXxBg3C9gsY9vk62bseHEktjhLCwusQrF5t6iU=; b=bHRWEaWBrB3k08EgqEUkuxK2WutPOXO+6L3rPfI/iFL1h/+Uok3BMpCQmoxK5nxWrD7rQZ49KsbVdxdkUTB0QkBFflpFOCluphJbnMr/AKhZsW6rip8/fTGqJHAma8vQhID+sgepSpz/fWuWVuXrkx9HxQkHBnoyyV9BwL6HIlg= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1558452193407131.22137841761742; Tue, 21 May 2019 08:23:13 -0700 (PDT) Received: from localhost ([127.0.0.1]:55473 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT6bV-00035i-Bs for importer@patchew.org; Tue, 21 May 2019 11:23:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT6VR-0007Vw-4Z for qemu-devel@nongnu.org; Tue, 21 May 2019 11:16:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hT6VQ-0001Z5-2c for qemu-devel@nongnu.org; Tue, 21 May 2019 11:16:45 -0400 Received: from m12-16.163.com ([220.181.12.16]:57272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT6VP-0001Un-1W; Tue, 21 May 2019 11:16:44 -0400 Received: from localhost.localdomain (unknown [115.192.71.0]) by smtp12 (Coremail) with SMTP id EMCowAC31lxJFuRcie7uGw--.4521S4; Tue, 21 May 2019 23:16:33 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=UttzqMXxBg3C9gsY9v k62bseHEktjhLCwusQrF5t6iU=; b=d0Eb1yX2cEeDo3yIo2BrterEh+AAV6fDzV VTRe/lWxAmdG9E5Zwi5PAZs6gffxwxxyK+yxSdxIvZc2pDcFuHt1QD8W0q1OBria ZPZ8OmzX0kbT4q85tYlyahUrLO7vh+Q9CG+UcE/4OKDyD1+dxYsa6iILwY4cUTfi t9dmrfi1Q= From: Li Qiang To: alex.williamson@redhat.com, lvivier@redhat.com Date: Tue, 21 May 2019 08:15:41 -0700 Message-Id: <20190521151543.92274-3-liq3ea@163.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190521151543.92274-1-liq3ea@163.com> References: <20190521151543.92274-1-liq3ea@163.com> X-CM-TRANSID: EMCowAC31lxJFuRcie7uGw--.4521S4 X-Coremail-Antispam: 1Uf129KBjvJXoW7CFW7tFy5Wr48JFy5Kr13twb_yoW8KrykpF n7Ja4fWF1jgr4Yvw4xC3W5AFZ8GF4kG347K34kCw1ay3W5Gr17ZrWjyF4UArZ8Cry5ZFWa vF42yr4rAa1Fvr7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jcMa8UUUUU= X-Originating-IP: [115.192.71.0] X-CM-SenderInfo: 5oltjvrd6rljoofrz/xtbBaxS7bVetvgGjDgAAsB X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 220.181.12.16 Subject: [Qemu-devel] [PATCH v2 2/4] hw: vfio: drop TYPE_FOO MACRO in VMStateDescription X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, philmd@redhat.com, liq3ea@gmail.com, qemu-devel@nongnu.org, Li Qiang Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" It's recommended that VMStateDescription names are decoupled from QOM type names as the latter may freely change without consideration of migration compatibility. Link: https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg02175.html CC: qemu-trivial@nongnu.org Signed-off-by: Li Qiang Acked-by: Alex Williamson Reviewed-by: Eric Auger Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- hw/vfio/amd-xgbe.c | 2 +- hw/vfio/ap.c | 2 +- hw/vfio/calxeda-xgmac.c | 2 +- hw/vfio/ccw.c | 2 +- hw/vfio/platform.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/vfio/amd-xgbe.c b/hw/vfio/amd-xgbe.c index ee64a3b4a2..1b06c0f3ea 100644 --- a/hw/vfio/amd-xgbe.c +++ b/hw/vfio/amd-xgbe.c @@ -26,7 +26,7 @@ static void amd_xgbe_realize(DeviceState *dev, Error **er= rp) } =20 static const VMStateDescription vfio_platform_amd_xgbe_vmstate =3D { - .name =3D TYPE_VFIO_AMD_XGBE, + .name =3D "vfio-amd-xgbe", .unmigratable =3D 1, }; =20 diff --git a/hw/vfio/ap.c b/hw/vfio/ap.c index d8b79ebe53..564751650f 100644 --- a/hw/vfio/ap.c +++ b/hw/vfio/ap.c @@ -155,7 +155,7 @@ static void vfio_ap_reset(DeviceState *dev) } =20 static const VMStateDescription vfio_ap_vmstate =3D { - .name =3D VFIO_AP_DEVICE_TYPE, + .name =3D "vfio-ap", .unmigratable =3D 1, }; =20 diff --git a/hw/vfio/calxeda-xgmac.c b/hw/vfio/calxeda-xgmac.c index e7767c4b02..6cc608b6ca 100644 --- a/hw/vfio/calxeda-xgmac.c +++ b/hw/vfio/calxeda-xgmac.c @@ -26,7 +26,7 @@ static void calxeda_xgmac_realize(DeviceState *dev, Error= **errp) } =20 static const VMStateDescription vfio_platform_calxeda_xgmac_vmstate =3D { - .name =3D TYPE_VFIO_CALXEDA_XGMAC, + .name =3D "vfio-calxeda-xgmac", .unmigratable =3D 1, }; =20 diff --git a/hw/vfio/ccw.c b/hw/vfio/ccw.c index 31dd3a2a87..d9e39552e2 100644 --- a/hw/vfio/ccw.c +++ b/hw/vfio/ccw.c @@ -468,7 +468,7 @@ static Property vfio_ccw_properties[] =3D { }; =20 static const VMStateDescription vfio_ccw_vmstate =3D { - .name =3D TYPE_VFIO_CCW, + .name =3D "vfio-ccw", .unmigratable =3D 1, }; =20 diff --git a/hw/vfio/platform.c b/hw/vfio/platform.c index 398db38f14..e59a0234dd 100644 --- a/hw/vfio/platform.c +++ b/hw/vfio/platform.c @@ -697,7 +697,7 @@ out: } =20 static const VMStateDescription vfio_platform_vmstate =3D { - .name =3D TYPE_VFIO_PLATFORM, + .name =3D "vfio-platform", .unmigratable =3D 1, }; =20 --=20 2.17.1 From nobody Mon Nov 10 17:57:12 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=163.com ARC-Seal: i=1; a=rsa-sha256; t=1558452037; cv=none; d=zoho.com; s=zohoarc; b=CCbDy1mpFzj2K+5R2RiblYQHGF59CPyUAH9EzJpjqSuY/5y0zLICGbHB77DZggPmxolYKCDTo1jFbwZ47GKsAXl3OhgU+6671cBKe5YLrvmxXTAQOHIo4F2X3c0hFLYXiC/kElg8FV+w0/eLXDZVmtzDcz35PnpC1cXg9iIV91Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558452037; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=GphRRHXPmZj/YCwTEBa/ZbIMgwXVEM5rbWw176Y/gW0=; b=ldbNSFwsp0/7GfRtq9msoJJAVu/m9DdzfWas0JnCn9bL+ya5qKhXwen6yMQYNOzLarsVStq+oomAt+wZMN3TNKnPMjHu9QHmiBN6PkxyXrKSRF43Xj5OD+KQmikTRywavqzvN3tYOYDSveMk6NT15V2v5WkSOpgwn4U9iNKxHY8= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 155845203722851.915423671393114; Tue, 21 May 2019 08:20:37 -0700 (PDT) Received: from localhost ([127.0.0.1]:55414 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT6Z4-00012U-5d for importer@patchew.org; Tue, 21 May 2019 11:20:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT6VQ-0007VV-C6 for qemu-devel@nongnu.org; Tue, 21 May 2019 11:16:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hT6VP-0001YO-FN for qemu-devel@nongnu.org; Tue, 21 May 2019 11:16:44 -0400 Received: from m12-16.163.com ([220.181.12.16]:57274) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT6VO-0001Up-8w; Tue, 21 May 2019 11:16:43 -0400 Received: from localhost.localdomain (unknown [115.192.71.0]) by smtp12 (Coremail) with SMTP id EMCowAC31lxJFuRcie7uGw--.4521S5; Tue, 21 May 2019 23:16:36 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=GphRRHXPmZj/YCwTEB a/ZbIMgwXVEM5rbWw176Y/gW0=; b=gm/NhhWAj+Q+4XUulj057PTfL5SWSJA3j4 Jy4LbqMfOke7przrYr6MEoJA7WWFIo3B1d1kfIC4k3yoppV35fVDfhvOAVTRIXQH hf6Fy8Od7+Io6qAAKctKs+kASJXG2iz908tG6zwPtqRxpyCobNtFirfFVFUbEhXU RqjqI3trw= From: Li Qiang To: alex.williamson@redhat.com, lvivier@redhat.com Date: Tue, 21 May 2019 08:15:42 -0700 Message-Id: <20190521151543.92274-4-liq3ea@163.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190521151543.92274-1-liq3ea@163.com> References: <20190521151543.92274-1-liq3ea@163.com> X-CM-TRANSID: EMCowAC31lxJFuRcie7uGw--.4521S5 X-Coremail-Antispam: 1Uf129KBjvdXoWrZryfGFW3uF13JrWrCr1xXwb_yoWftFbEv3 W8K397C3WvgrZa9rWqyrW3Zry7Zw4UKFsakFyxt3Wq93y5Aa15CwnruFZ7Xr47Cr12y34D Cw4kC3ZxAF13ujkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU8tDG7UUUUU== X-Originating-IP: [115.192.71.0] X-CM-SenderInfo: 5oltjvrd6rljoofrz/xtbBLxS7bVUMJbPrPAAAs1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 220.181.12.16 Subject: [Qemu-devel] [PATCH v2 3/4] vfio: platform: fix a typo X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, philmd@redhat.com, liq3ea@gmail.com, qemu-devel@nongnu.org, Li Qiang Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 'eventd' should be 'eventfd'. CC: qemu-trivial@nongnu.org Signed-off-by: Li Qiang Acked-by: Alex Williamson Reviewed-by: Eric Auger Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- hw/vfio/platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/vfio/platform.c b/hw/vfio/platform.c index e59a0234dd..d52d6552e0 100644 --- a/hw/vfio/platform.c +++ b/hw/vfio/platform.c @@ -72,7 +72,7 @@ static VFIOINTp *vfio_init_intp(VFIODevice *vbasedev, g_free(intp->interrupt); g_free(intp); error_setg_errno(errp, -ret, - "failed to initialize trigger eventd notifier"); + "failed to initialize trigger eventfd notifier"); return NULL; } if (vfio_irq_is_automasked(intp)) { @@ -84,7 +84,7 @@ static VFIOINTp *vfio_init_intp(VFIODevice *vbasedev, g_free(intp->unmask); g_free(intp); error_setg_errno(errp, -ret, - "failed to initialize resample eventd notifie= r"); + "failed to initialize resample eventfd notifi= er"); return NULL; } } --=20 2.17.1 From nobody Mon Nov 10 17:57:12 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=163.com ARC-Seal: i=1; a=rsa-sha256; t=1558452317; cv=none; d=zoho.com; s=zohoarc; b=QZo8USKcgfx/WwOvVznS8y7ItDjmmIsy/TjXlun0usm9EK3uYgbgE/lKKMjF2rZwRrRV8HEOIuLEe0bCXWXbRpAeiD6Ei4EnB7MVgp6JHdtCGW8qxdPXg0U4+qoRW6xkyZ3tCzHwVjpdt4kt5gAF+P9C1hdXvnzKvoeYyeyxfkA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558452317; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=JmlbMI8+rNjltu5NEnUC7kK/0d8byMc075r+nhfmo6c=; b=YU78Jns2h+2Hypq4zyh8lru9BrIMHReDUXWxcvxl9PqOU9gm5sCTigeOvMPbdgRmubv2qIEBDKERdp30Ajb50hWpZdGvOA711SBwu2SaVG24h9EYcbquS/LqFLB9lyvgizKnA4YuZXbX1WPCBzKD7DR87qVOtncxoe9R51Bsp5k= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1558452317269168.70398651685446; Tue, 21 May 2019 08:25:17 -0700 (PDT) Received: from localhost ([127.0.0.1]:55508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT6dZ-0004sZ-Ky for importer@patchew.org; Tue, 21 May 2019 11:25:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT6VV-0007Yx-0H for qemu-devel@nongnu.org; Tue, 21 May 2019 11:16:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hT6VU-0001ce-1i for qemu-devel@nongnu.org; Tue, 21 May 2019 11:16:48 -0400 Received: from m12-16.163.com ([220.181.12.16]:57339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT6VR-0001VI-UR; Tue, 21 May 2019 11:16:47 -0400 Received: from localhost.localdomain (unknown [115.192.71.0]) by smtp12 (Coremail) with SMTP id EMCowAC31lxJFuRcie7uGw--.4521S6; Tue, 21 May 2019 23:16:37 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=JmlbMI8+rNjltu5NEn UC7kK/0d8byMc075r+nhfmo6c=; b=XMe/Ant6o7Wm413n39LYWjdl5r1IuZO/hU OEWiG2efN9NSKuOL7OHRnnbCXapi6pdmD0do1spJt3611sSXiJ66eK7TdWY7/c6z qMPjr2I9EUvWUXu8dZW1pUdAagaQ8mJ/z6OgpWzIzgYuAkvgoZeXMs62EobCmgXH UGqXiiiJw= From: Li Qiang To: alex.williamson@redhat.com, lvivier@redhat.com Date: Tue, 21 May 2019 08:15:43 -0700 Message-Id: <20190521151543.92274-5-liq3ea@163.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190521151543.92274-1-liq3ea@163.com> References: <20190521151543.92274-1-liq3ea@163.com> X-CM-TRANSID: EMCowAC31lxJFuRcie7uGw--.4521S6 X-Coremail-Antispam: 1Uf129KBjvJXoW7AF4fAF15Wr15Gw1rXw1UZFb_yoW8XFykpF Z8CF9a9r4Fqw17Crsayw4avF17JF4DWr12vF4vg3y7ta1xGF1ktr4DtFy7u34xXFW0vFyr Gr9rZ345tF1UZrJanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UBWl9UUUUU= X-Originating-IP: [115.192.71.0] X-CM-SenderInfo: 5oltjvrd6rljoofrz/xtbBZhW7bVaD1l5SdQAAsf X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 220.181.12.16 Subject: [Qemu-devel] [PATCH v2 4/4] pci: msix: move 'MSIX_CAP_LENGTH' to header file X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, philmd@redhat.com, liq3ea@gmail.com, qemu-devel@nongnu.org, Li Qiang Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 'MSIX_CAP_LENGTH' is defined in two .c file. Move it to hw/pci/msix.h file to reduce duplicated code. CC: qemu-trivial@nongnu.org Signed-off-by: Li Qiang Acked-by: Alex Williamson Reviewed-by: Eric Auger Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- hw/pci/msix.c | 2 -- hw/vfio/pci.c | 2 -- include/hw/pci/msix.h | 2 ++ 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/hw/pci/msix.c b/hw/pci/msix.c index 4e336416a7..d39dcf32e8 100644 --- a/hw/pci/msix.c +++ b/hw/pci/msix.c @@ -24,8 +24,6 @@ #include "qapi/error.h" #include "trace.h" =20 -#define MSIX_CAP_LENGTH 12 - /* MSI enable bit and maskall bit are in byte 1 in FLAGS register */ #define MSIX_CONTROL_OFFSET (PCI_MSIX_FLAGS + 1) #define MSIX_ENABLE_MASK (PCI_MSIX_FLAGS_ENABLE >> 8) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 08729e5875..8e555db12e 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -35,8 +35,6 @@ #include "trace.h" #include "qapi/error.h" =20 -#define MSIX_CAP_LENGTH 12 - #define TYPE_VFIO_PCI "vfio-pci" #define PCI_VFIO(obj) OBJECT_CHECK(VFIOPCIDevice, obj, TYPE_VFIO_PCI) =20 diff --git a/include/hw/pci/msix.h b/include/hw/pci/msix.h index 1f27658d35..08acfa836e 100644 --- a/include/hw/pci/msix.h +++ b/include/hw/pci/msix.h @@ -4,6 +4,8 @@ #include "qemu-common.h" #include "hw/pci/pci.h" =20 +#define MSIX_CAP_LENGTH 12 + void msix_set_message(PCIDevice *dev, int vector, MSIMessage msg); MSIMessage msix_get_message(PCIDevice *dev, unsigned int vector); int msix_init(PCIDevice *dev, unsigned short nentries, --=20 2.17.1