From patchwork Mon Mar 2 16:59:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baptiste Reynal X-Patchwork-Id: 5915711 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7A3C9BF440 for ; Mon, 2 Mar 2015 17:09:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A20A2200B4 for ; Mon, 2 Mar 2015 17:09:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B59B8201EC for ; Mon, 2 Mar 2015 17:09:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753370AbbCBRBP (ORCPT ); Mon, 2 Mar 2015 12:01:15 -0500 Received: from mail-we0-f174.google.com ([74.125.82.174]:45055 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754365AbbCBRBN (ORCPT ); Mon, 2 Mar 2015 12:01:13 -0500 Received: by wesk11 with SMTP id k11so34584066wes.11 for ; Mon, 02 Mar 2015 09:01:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bcGMYjwiHPKEhe06a68QWLqMR+PtRbYHCsN0TvnFsyY=; b=BMudWzGiXdUSiwzs1tZe6ouJxCnT1GZsa5/R6hHSG9yqO9MhWPvYX8/OYG9tZYnwKb vFLx0MyFiBxpUahW3N2tm0eXVTLfXqAB7sTGV2egwoTYa7kiGpQk5TfcZv9bkzC5foBw 32gPfwk6hOQfAimHRRH0EoTBtgOfwqQmANm0Ay5srJdDKJb/sSrzJ6aV+u6HtUNRXeFX yHQzgag3wX6+Ez5T959N7jDJBQB62Jv3D3W7Asd6JTTXcc5L51CzEfStCaj4+b3XrQhx uVRKkS1+2+irFJ4DQPc++/vKZoseEnMTsbJeOMq1Pn0akAQ+A8CPTLuv3eOQ8PhHBZdV 5gwQ== X-Gm-Message-State: ALoCoQlJn2jo1wVcp9iRy3M+45P6hVgotZCL42prtLHPsTi++UxQEGEiWZdWmxq9y/jW9keRgSz4 X-Received: by 10.180.73.171 with SMTP id m11mr36738494wiv.21.1425315672571; Mon, 02 Mar 2015 09:01:12 -0800 (PST) Received: from localhost (LPuteaux-656-1-278-113.w80-15.abo.wanadoo.fr. [80.15.154.113]) by mx.google.com with ESMTPSA id yy9sm20042641wjc.20.2015.03.02.09.01.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Mar 2015 09:01:11 -0800 (PST) From: Baptiste Reynal To: iommu@lists.linux-foundation.org, kvmarm@lists.cs.columbia.edu Cc: tech@virtualopensystems.com, Antonios Motakis , Baptiste Reynal , Alex Williamson , kvm@vger.kernel.org (open list:VFIO DRIVER), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v14 05/20] vfio: amba: add the VFIO for AMBA devices module to Kconfig Date: Mon, 2 Mar 2015 17:59:45 +0100 Message-Id: <1425315600-29761-6-git-send-email-b.reynal@virtualopensystems.com> X-Mailer: git-send-email 2.3.1 In-Reply-To: <1425315600-29761-1-git-send-email-b.reynal@virtualopensystems.com> References: <1425315600-29761-1-git-send-email-b.reynal@virtualopensystems.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Antonios Motakis Enable building the VFIO AMBA driver. VFIO_AMBA depends on VFIO_PLATFORM, since it is sharing a portion of the code, and it is essentially implemented as a platform device whose resources are discovered via AMBA specific APIs in the kernel. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal --- drivers/vfio/platform/Kconfig | 10 ++++++++++ drivers/vfio/platform/Makefile | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/drivers/vfio/platform/Kconfig b/drivers/vfio/platform/Kconfig index c51af17..c0a3bff 100644 --- a/drivers/vfio/platform/Kconfig +++ b/drivers/vfio/platform/Kconfig @@ -7,3 +7,13 @@ config VFIO_PLATFORM framework. If you don't know what to do here, say N. + +config VFIO_AMBA + tristate "VFIO support for AMBA devices" + depends on VFIO_PLATFORM && ARM_AMBA + help + Support for ARM AMBA devices with VFIO. This is required to make + use of ARM AMBA devices present on the system using the VFIO + framework. + + If you don't know what to do here, say N. diff --git a/drivers/vfio/platform/Makefile b/drivers/vfio/platform/Makefile index 279862b..1957170 100644 --- a/drivers/vfio/platform/Makefile +++ b/drivers/vfio/platform/Makefile @@ -2,3 +2,7 @@ vfio-platform-y := vfio_platform.o vfio_platform_common.o obj-$(CONFIG_VFIO_PLATFORM) += vfio-platform.o + +vfio-amba-y := vfio_amba.o + +obj-$(CONFIG_VFIO_AMBA) += vfio-amba.o