From patchwork Mon Dec 9 09:49:56 2019 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: 11278869 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 02E6E1575 for ; Mon, 9 Dec 2019 09:51:21 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D42D024680 for ; Mon, 9 Dec 2019 09:51:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="V9UgRcDy" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D42D024680 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ieFgN-0004NI-DU; Mon, 09 Dec 2019 09:50:23 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ieFgL-0004NC-ES for xen-devel@lists.xenproject.org; Mon, 09 Dec 2019 09:50:21 +0000 X-Inumbo-ID: 5021bf78-1a69-11ea-b6f1-bc764e2007e4 Received: from us-smtp-delivery-1.mimecast.com (unknown [205.139.110.61]) by us1-rack-iad1.inumbo.com (Halon) with ESMTP id 5021bf78-1a69-11ea-b6f1-bc764e2007e4; Mon, 09 Dec 2019 09:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575885020; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0kZGDM6Dv+xPJxfZvPzJi9z3blegCflTkzGW0b89qeI=; b=V9UgRcDyhp05XXKVK/GETpURZR2gY3oAVT+DTRYHanGLI1S27kWeFSlTuQFkhOm28jIz2q ut84J8rbYDZJ3bAVfv2XLkLQhVTxJOs+KhXY+KJlsA1O+KbpVUUW17oGgBAiHMbK7kVddh KR1bC4UpOgP490IUP5UXSxrMorTy2ZU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-258-P2eqbdoEPUqFaRectyj5cw-1; Mon, 09 Dec 2019 04:50:18 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 522401005512; Mon, 9 Dec 2019 09:50:17 +0000 (UTC) Received: from x1w.redhat.com (ovpn-205-142.brq.redhat.com [10.40.205.142]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CBF9B52FD; Mon, 9 Dec 2019 09:50:05 +0000 (UTC) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Date: Mon, 9 Dec 2019 10:49:56 +0100 Message-Id: <20191209095002.32194-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-MC-Unique: P2eqbdoEPUqFaRectyj5cw-1 X-Mimecast-Spam-Score: 0 Subject: [Xen-devel] [PATCH-for-5.0 v3 0/6] hw/pci-host: Add Kconfig selector for IGD PCIe pass-through X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , Stefano Stabellini , "Michael S. Tsirkin" , Paul Durrant , Markus Armbruster , Alex Williamson , Marcel Apfelbaum , Paolo Bonzini , Anthony Perard , xen-devel@lists.xenproject.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Introduce a kconfig selector to allow builds without Intel Integrated Graphics Device GPU PCIe passthrough. This device is enabled by default on the Xen build. v3: - Make it Xen specific v2: - do not mix with vfio code (Alex) - extract to different file to avoid #ifdef (Thomas) Philippe Mathieu-Daudé (6): hw/pci-host/i440fx: Correct the header description hw/pci-host/i440fx: Extract PCII440FXState to "hw/pci-host/i440fx.h" hw/pci-host/i440fx: Use size_t to iterate over ARRAY_SIZE() hw/pci-host/i440fx: Use definitions instead of magic values hw/pci-host/i440fx: Extract the IGD passthrough host bridge device hw/pci-host: Add Kconfig entry to select the IGD Passthrough Host Bridge include/hw/pci-host/i440fx.h | 19 +++++- hw/pci-host/i440fx.c | 105 +----------------------------- hw/pci-host/xen_igd_pt.c | 120 +++++++++++++++++++++++++++++++++++ MAINTAINERS | 1 + hw/pci-host/Kconfig | 5 ++ hw/pci-host/Makefile.objs | 1 + 6 files changed, 145 insertions(+), 106 deletions(-) create mode 100644 hw/pci-host/xen_igd_pt.c