From patchwork Sun Oct 15 03:23:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 10006715 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 4492A60235 for ; Sun, 15 Oct 2017 03:26:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3972D29103 for ; Sun, 15 Oct 2017 03:26:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2D7792914C; Sun, 15 Oct 2017 03:26:57 +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 9AD7229103 for ; Sun, 15 Oct 2017 03:26:56 +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 1e3ZWx-0000S6-7e; Sun, 15 Oct 2017 03:23:59 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e3ZWv-0000Ru-DB for xen-devel@lists.xenproject.org; Sun, 15 Oct 2017 03:23:57 +0000 Received: from [85.158.139.211] by server-10.bemta-5.messagelabs.com id 4E/1F-19067-CC4D2E95; Sun, 15 Oct 2017 03:23:56 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMIsWRWlGSWpSXmKPExsVysWW7jO6ZK48 iDZ5eYbH4vmUykwOjx+EPV1gCGKNYM/OS8isSWDM2Ll7NXLCXreLstpMsDYxrWbsYOTmEBGYz SRx4xQJiswjYSxx83g4WZxQokziyZj5bFyMHkJ0hcepwThcjF1D5akaJ1avOMELUq0r8+bCbG cRmE9CWeDZ1O5gtIiAp8bvrNDNIA7PAJ0aJS4fegi0QBlrQf38fK8hQXiB75Y8MiBvsJJYfvA DWyysgKHFy5hOwcmYBLYkb/14ygZQzC0hLLP/HARLmBOo8fGAlWLkEUPnWiRsYIWxtictH25l A1koI9DFKnJ3dwTyBUXgWkrGzkIydhTB2ASPzKkb14tSistQiXSO9pKLM9IyS3MTMHF1DA1O9 3NTi4sT01JzEpGK95PzcTYzAAGcAgh2M3/84HWKU5GBSEuU91/owUogvKT+lMiOxOCO+qDQnt fgQowwHh5IEb+blR5FCgkWp6akVaZk5wFiDSUtw8CiJ8HaDpHmLCxJzizPTIVKnGHU5bjy8/o dJiCUvPy9VSpzXEqRIAKQoozQPbgQs7i8xykoJ8zICHSXEU5BalJtZgir/ilGcg1FJmHcyyBS ezLwSuE2vgI5gAjriXcQDkCNKEhFSUg2MapfncIncTdnad0uR9UnlmoQ3vye+u9B1+Y7m7htW p9+vTdv3YquNwreKuD/lrxbLh5/dmPHcY+a30kXBM9W+Vjv6r0kveRwT7e68Sn/DZpvkpYfip PKqdnVGJgdWmS1l+THT8V20478o53VvDubuLkn02SN09FN7w4zZnhekLe3/SJr8znmpr8RSnJ FoqMVcVJwIAK825q/2AgAA X-Env-Sender: mst@redhat.com X-Msg-Ref: server-12.tower-206.messagelabs.com!1508037834!70708658!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 45652 invoked from network); 15 Oct 2017 03:23:55 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by server-12.tower-206.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 15 Oct 2017 03:23:55 -0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 37430356D7; Sun, 15 Oct 2017 03:23:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 37430356D7 Received: from redhat.com (ovpn-120-178.rdu2.redhat.com [10.10.120.178]) by smtp.corp.redhat.com (Postfix) with SMTP id 6EE5A5D725; Sun, 15 Oct 2017 03:23:53 +0000 (UTC) Date: Sun, 15 Oct 2017 06:23:53 +0300 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Message-ID: <1508036858-13479-20-git-send-email-mst@redhat.com> References: <1508036858-13479-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1508036858-13479-1-git-send-email-mst@redhat.com> X-Mutt-Fcc: =sent X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Sun, 15 Oct 2017 03:23:54 +0000 (UTC) Cc: Peter Maydell , Stefano Stabellini , Eduardo Habkost , Jan Beulich , Anthony Perard , xen-devel@lists.xenproject.org Subject: [Xen-devel] [PULL 19/26] 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: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Eduardo Habkost 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 Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- 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 01df341..9bba717 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 }, { }, }, };