From patchwork Fri Oct 19 05:20:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Qiang X-Patchwork-Id: 10648673 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B3F2C181D for ; Fri, 19 Oct 2018 05:24:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A50BD28A3D for ; Fri, 19 Oct 2018 05:24:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9903328B4F; Fri, 19 Oct 2018 05:24:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 48D8828A3D for ; Fri, 19 Oct 2018 05:24:43 +0000 (UTC) Received: from localhost ([::1]:47064 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDNH8-0007YV-If for patchwork-qemu-devel@patchwork.kernel.org; Fri, 19 Oct 2018 01:24:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDNDE-0003lQ-NL for qemu-devel@nongnu.org; Fri, 19 Oct 2018 01:20:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDNDD-0000FT-GD for qemu-devel@nongnu.org; Fri, 19 Oct 2018 01:20:40 -0400 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]:36527) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gDNDD-0008Qq-4L for qemu-devel@nongnu.org; Fri, 19 Oct 2018 01:20:39 -0400 Received: by mail-pl1-x642.google.com with SMTP id y11-v6so15348814plt.3 for ; Thu, 18 Oct 2018 22:20:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=C6GC4FegF/DeRED9Thh44LjHYPTKDnlveYDPw4cG/cE=; b=ck/dIEY8icGaviaEJSmtecMP7V+4bmzsPsW51ifVarWffhbY5+QsLaG2jMS8G0jhf8 Gih4lPCUquHYxBr68Um5wC5P221fEXDf4JJkYTO6B6ykIEwgvetsENJZVqcRnEtDVk1H nryN1hcJf3J7w18R8/8IAytasskeVyb/ds+5HM4xJis4LEijUFWnjXil3dyQKUJJEnSc 9Jy8Gu+eldK6Bt+QJ9AFoTH5ODDiGEwmIUJll4atEnT7EI2H2voZ1m8FdlMa3DIEi+Rn KHUNhfk5w1yUvCL/Du/bHuOkGwnwKzMpgyj8yEyseTcq6Xq+AEqY6JcP07KUpcRHCHsa vvcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=C6GC4FegF/DeRED9Thh44LjHYPTKDnlveYDPw4cG/cE=; b=q0e77wpVVmYAGuiRDekzbMa8faL9iMY1UB9POwGra4Z7K5NdctNA1PYQzkJ2VBT4oT FDqL2biSsEgwGgLYcZ+zGt7LnWZF/Vkzm9yAmkxnx04Tg/A5FtLX1mMOPvo/uXw++lxh w6uexoXcFMaf0NgWpX0XldtLveNRH+ATKdpOY4Vrxcsl74Bd7x/CdrR4Jr+Sfk8kumx4 AIqG23OooQxZ+cw8iXlfksKWs972AtI1yR8lZa+0ckBWC4AT6EZWn6aslWu8O2aUcWV8 8q9Rr5RiuXw99W+NcsvAkgbe0g6dpydwhkHsU+0jahyLvFJH0xf4/OyVTc6C3PXwnkwI wBew== X-Gm-Message-State: ABuFfoiP2trNel9EQWz08T9MKfDcJ8xADD3aPQB1ompPYzC9sSV3w44p ky4zc9BfXnxBnb/1KRX7Z3s= X-Google-Smtp-Source: ACcGV61SR5iIl464aZL5Uke02yU/vnrZyiKW4Hvhx6fSqpxsCwxDn+vrZ7zJkcWvbxZ2knxLGf1hbA== X-Received: by 2002:a17:902:9896:: with SMTP id s22-v6mr32103895plp.113.1539926426690; Thu, 18 Oct 2018 22:20:26 -0700 (PDT) Received: from localhost.localdomain.localdomain ([103.65.40.100]) by smtp.gmail.com with ESMTPSA id p1-v6sm25075191pff.128.2018.10.18.22.20.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Oct 2018 22:20:26 -0700 (PDT) From: Li Qiang To: alex.williamson@redhat.com Date: Thu, 18 Oct 2018 22:20:06 -0700 Message-Id: <1539926412-21831-2-git-send-email-liq3ea@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1539926412-21831-1-git-send-email-liq3ea@gmail.com> References: <1539926412-21831-1-git-send-email-liq3ea@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::642 Subject: [Qemu-devel] [PATCH 1/7] 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: Li Qiang , philmd@redhat.com, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Li Qiang --- 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 8b73582..1f05b57 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) +#define TYPE_VFIO_PCI_NOHOTPLUG "vfio-pci-nohotplug" + static void vfio_disable_interrupts(VFIOPCIDevice *vdev); static void vfio_mmap_set_enabled(VFIOPCIDevice *vdev, bool enabled); @@ -3277,8 +3279,8 @@ static void vfio_pci_nohotplug_dev_class_init(ObjectClass *klass, void *data) } static const TypeInfo vfio_pci_nohotplug_dev_info = { - .name = "vfio-pci-nohotplug", - .parent = "vfio-pci", + .name = TYPE_VFIO_PCI_NOHOTPLUG, + .parent = TYPE_VFIO_PCI, .instance_size = sizeof(VFIOPCIDevice), .class_init = vfio_pci_nohotplug_dev_class_init, };