From patchwork Thu Oct 5 12:45:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 9987039 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9BDA8605A8 for ; Thu, 5 Oct 2017 12:48:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8DD89288B5 for ; Thu, 5 Oct 2017 12:48:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 826D828C7C; Thu, 5 Oct 2017 12:48:01 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5FE33288B5 for ; Thu, 5 Oct 2017 12:48:00 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e05Wt-0002wC-9K; Thu, 05 Oct 2017 12:45:31 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e05Wr-0002w6-Hf for xen-devel@lists.xenproject.org; Thu, 05 Oct 2017 12:45:29 +0000 Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id 7F/76-02223-86926D95; Thu, 05 Oct 2017 12:45:28 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpjkeJIrShJLcpLzFFi42K52LJdRjdD81q kwauXbBbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8aXy1eYC7ayVtw5qd7AuIWli5GTQ0hgNpPE haWOIDaLgL3Ehu5N7CA2o0CZxO01+1kh7FyJDaf/ANlcQPUrGSW27nzFCJJgE9CWmP3sPViDi ICkxO+u08wgRcwCvZwSm/Y3M4EkhAWsJGac/sQGsUFV4uPz3WBxXgELiSltm4CmcnBwAtVcbb UBCUsAzXx8ejojyBwJgT5GiZXNx5gmMPItYGRYxahRnFpUllqka2Sql1SUmZ5RkpuYmaNraGC ql5taXJyYnpqTmFSsl5yfu4kRGCb1DAyMOxh3tfsdYpTkYFIS5X2iei1SiC8pP6UyI7E4I76o NCe1+BCjDAeHkgTvdg2gnGBRanpqRVpmDjBgYdISHDxKIrx6IGne4oLE3OLMdIjUKUZdjhsPr /9hEmLJy89LlRLnXQBSJABSlFGaBzcCFj2XGGWlhHkZGRgYhHgKUotyM0tQ5V8xinMwKgnzbg KZwpOZVwK36RXQEUxAR8xpugJyREkiQkqqgbFy29sNO09+m7nq1YuI29slnzCyZwaX/VpmZHz R1lj4XUb/oyme6w8FxEpFNpocUV4o2s1ZURriy1dbUbFU6KFbdozpNnMPcR3FS6sSX+w+ksiy JkOpRVjtGwPrdoGeyZMlZv/4wfpu0ZHZ7f61a254d8vfOr7w2PL3K+Lcd8vrBv1TmFvFb6/EU pyRaKjFXFScCAAXrgh1mQIAAA== X-Env-Sender: ehabkost@redhat.com X-Msg-Ref: server-3.tower-206.messagelabs.com!1507207526!111140004!1 X-Originating-IP: [209.132.183.28] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMjA5LjEzMi4xODMuMjggPT4gNTQwNjQ=\n X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 41914 invoked from network); 5 Oct 2017 12:45:27 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by server-3.tower-206.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 5 Oct 2017 12:45:27 -0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 92C8E780C0; Thu, 5 Oct 2017 12:45:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 92C8E780C0 Received: from localhost (ovpn-116-25.gru2.redhat.com [10.97.116.25]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6F00863632; Thu, 5 Oct 2017 12:45:09 +0000 (UTC) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Thu, 5 Oct 2017 09:45:07 -0300 Message-Id: <20171005124507.14732-1-ehabkost@redhat.com> In-Reply-To: <20171004130655.GK4760@localhost.localdomain> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 05 Oct 2017 12:45:26 +0000 (UTC) Cc: Peter Maydell , "Michael S. Tsirkin" , Jason Wang , Mark Cave-Ayland , Gerd Hoffmann , Jan Beulich , David Gibson , Jiri Slaby , Hannes Reinecke , Stefano Stabellini , Alberto Garcia , qemu-block@nongnu.org, Alexander Graf , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Marcel Apfelbaum , xen-devel@lists.xenproject.org, David Gibson , Artyom Tarasenko , Jiri Pirko , Anthony Perard , Alex Williamson , qemu-arm@nongnu.org, Laine Stump , Igor Mammedov , Yongbok Kim , Alistair Francis , John Snow , Richard Henderson , qemu-ppc@nongnu.org, Paolo Bonzini , Aurelien Jarno Subject: [Xen-devel] [PATCH] xen/pt: Mark TYPE_XEN_PT_DEVICE as hybrid X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP xen-pt doesn't set the is_express field, but is supposed to be able to handle PCI Express devices too. Mark it as hybrid. Suggested-by: Jan Beulich Signed-off-by: Eduardo Habkost --- hw/xen/xen_pt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c index 01df3414d3..9bba717708 100644 --- a/hw/xen/xen_pt.c +++ b/hw/xen/xen_pt.c @@ -966,6 +966,7 @@ static const TypeInfo xen_pci_passthrough_info = { .class_init = xen_pci_passthrough_class_init, .interfaces = (InterfaceInfo[]) { { INTERFACE_CONVENTIONAL_PCI_DEVICE }, + { INTERFACE_PCIE_DEVICE }, { }, }, };