From patchwork Mon Sep 1 12:52:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 36358 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 68C782032B for ; Mon, 1 Sep 2014 12:53:39 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id y10sf30715725pdj.0 for ; Mon, 01 Sep 2014 05:53:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=KVlD1LZ6UUmgpSm8daWwxcmerSkJ3VUUrRPdvI0aItM=; b=Hxvk6zVq1nl6JCBkTrxKf0Blx6NGbCA4AAK3wlIyrSVLI9A1SYFckqeAbWanWGmBJc f6eQpS1E3cLDDqYVt7jgGIGif0Fu1XHV69SgKqtE4uDoxJmhDLORaifPvEYL1FvxIvhp maQuWg88AyPaTqz/bTIfGbA3HRyKDIGvvTqj2T+GLXK3Dw2gFEENNKSs1zgdT61yCo2W 4w2ESt59okYcXOBdS4Mrs4ZNBQHXowdA2yeKQbWVtgEcuTP8KzmQc4iv9TPFhq/trp5E ssZU0Tm+D9RPWx+wsU2ts2JGwJV3nSzGe2ogD3DmXlAuONHxNFqUYNoKprAdgeBEON0K k5EA== X-Gm-Message-State: ALoCoQm6ZG/PPKmK7RmJhMQOHpM/yVSCJs07+EmS/jQ+lMFtC495QY9+ibLkh3nlFTtlKs5/pKfk X-Received: by 10.66.150.197 with SMTP id uk5mr2804397pab.41.1409576018744; Mon, 01 Sep 2014 05:53:38 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.39.231 with SMTP id v94ls1814734qgv.16.gmail; Mon, 01 Sep 2014 05:53:38 -0700 (PDT) X-Received: by 10.52.4.69 with SMTP id i5mr19822807vdi.35.1409576018594; Mon, 01 Sep 2014 05:53:38 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id up1si290562vcb.75.2014.09.01.05.53.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Sep 2014 05:53:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id id10so5393250vcb.2 for ; Mon, 01 Sep 2014 05:53:38 -0700 (PDT) X-Received: by 10.52.97.233 with SMTP id ed9mr21144152vdb.16.1409576018533; Mon, 01 Sep 2014 05:53:38 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp383137vcb; Mon, 1 Sep 2014 05:53:37 -0700 (PDT) X-Received: by 10.180.90.6 with SMTP id bs6mr21601140wib.47.1409576017313; Mon, 01 Sep 2014 05:53:37 -0700 (PDT) Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by mx.google.com with ESMTPS id k5si9767009wiv.33.2014.09.01.05.53.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Sep 2014 05:53:37 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 209.85.212.180 as permitted sender) client-ip=209.85.212.180; Received: by mail-wi0-f180.google.com with SMTP id ex7so6060715wid.13 for ; Mon, 01 Sep 2014 05:53:36 -0700 (PDT) X-Received: by 10.180.86.33 with SMTP id m1mr17129739wiz.11.1409576016633; Mon, 01 Sep 2014 05:53:36 -0700 (PDT) Received: from gnx2579.gnb.st.com (LCaen-156-56-7-90.w80-11.abo.wanadoo.fr. [80.11.198.90]) by mx.google.com with ESMTPSA id y5sm1928678wje.32.2014.09.01.05.53.34 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Sep 2014 05:53:36 -0700 (PDT) From: Eric Auger To: eric.auger@st.com, eric.auger@linaro.org, christoffer.dall@linaro.org, marc.zyngier@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, alex.williamson@redhat.com, joel.schopp@amd.com, kim.phillips@freescale.com, paulus@samba.org, gleb@kernel.org, pbonzini@redhat.com Cc: linux-kernel@vger.kernel.org, patches@linaro.org, will.deacon@arm.com, a.motakis@virtualopensystems.com, a.rigo@virtualopensystems.com, john.liuli@huawei.com, Kim Phillips Subject: [RFC v2 3/9] ARM: KVM: Enable the KVM-VFIO device Date: Mon, 1 Sep 2014 14:52:42 +0200 Message-Id: <1409575968-5329-4-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1409575968-5329-1-git-send-email-eric.auger@linaro.org> References: <1409575968-5329-1-git-send-email-eric.auger@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: eric.auger@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Kim Phillips Used by KVM-enabled VFIO-based device passthrough support in QEMU. Signed-off-by: Kim Phillips --- arch/arm/kvm/Kconfig | 1 + arch/arm/kvm/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/kvm/Kconfig b/arch/arm/kvm/Kconfig index e519a40..aace254 100644 --- a/arch/arm/kvm/Kconfig +++ b/arch/arm/kvm/Kconfig @@ -24,6 +24,7 @@ config KVM select KVM_MMIO select KVM_ARM_HOST depends on ARM_VIRT_EXT && ARM_LPAE + select KVM_VFIO select HAVE_KVM_EVENTFD ---help--- Support hosting virtualized guest machines. You will also diff --git a/arch/arm/kvm/Makefile b/arch/arm/kvm/Makefile index 859db09..ea1fa76 100644 --- a/arch/arm/kvm/Makefile +++ b/arch/arm/kvm/Makefile @@ -15,7 +15,7 @@ AFLAGS_init.o := -Wa,-march=armv7-a$(plus_virt) AFLAGS_interrupts.o := -Wa,-march=armv7-a$(plus_virt) KVM := ../../../virt/kvm -kvm-arm-y = $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o $(KVM)/eventfd.o +kvm-arm-y = $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o $(KVM)/eventfd.o $(KVM)/vfio.o obj-y += kvm-arm.o init.o interrupts.o obj-y += arm.o handle_exit.o guest.o mmu.o emulate.o reset.o