From patchwork Tue Mar 25 22:08:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kim-phillips X-Patchwork-Id: 27088 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f198.google.com (mail-yk0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7199B20539 for ; Tue, 25 Mar 2014 22:08:41 +0000 (UTC) Received: by mail-yk0-f198.google.com with SMTP id 9sf5777466ykp.1 for ; Tue, 25 Mar 2014 15:08:41 -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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=fw6ENWJzHl5RTnzmvRg8Sc5nuB68qs2iSleJaNh54jg=; b=e77OzBq90LOUV+43+RJCFITngnqEyNsauP6oxQDGxxIDDmffNlB9QjTiujFiHiKKjc Qg5FdJJ2WsWaOiQLM9llBa8cTc+UYpNSyNdxWxHwavFcUi4uyzBSN0CzGxR5lZMPaEzm 1hOWGiC+MxBorISFHopwf0f+fp1UvzKA46KuHeyxxaJK6Xyid0XBbsdeL4nFGPH7Vn46 4Elyqh27lvQ6XD9wxIp3cYQGKBeugOYXvsJPOpnlWuch0diPaPDcH+OnHJItFvpLyz58 U3BmpDpY+Exu0NfSBVIX4zjyc3LjMwinB5Pq6/eMG5mAmI724Abm4VDZXREI9kRzK60S tsCg== X-Gm-Message-State: ALoCoQnMMSAiThebdjn46MOHrC8QJgFUzKfErvm+U1lCiybEPWXJjuxT9WKbnPrCIUaG/p3ZFLmB X-Received: by 10.58.170.6 with SMTP id ai6mr20864258vec.7.1395785321191; Tue, 25 Mar 2014 15:08:41 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.34.233 with SMTP id l96ls364349qgl.90.gmail; Tue, 25 Mar 2014 15:08:41 -0700 (PDT) X-Received: by 10.52.120.6 with SMTP id ky6mr1772272vdb.38.1395785321069; Tue, 25 Mar 2014 15:08:41 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id sq9si4146269vdc.179.2014.03.25.15.08.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 15:08:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id hu19so1427947vcb.15 for ; Tue, 25 Mar 2014 15:08:41 -0700 (PDT) X-Received: by 10.220.95.139 with SMTP id d11mr9351707vcn.21.1395785320979; Tue, 25 Mar 2014 15:08:40 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp341014vck; Tue, 25 Mar 2014 15:08:40 -0700 (PDT) X-Received: by 10.67.2.106 with SMTP id bn10mr81033098pad.38.1395785319749; Tue, 25 Mar 2014 15:08:39 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id se7si12213962pbb.311.2014.03.25.15.08.39; Tue, 25 Mar 2014 15:08:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754033AbaCYWI3 (ORCPT + 26 others); Tue, 25 Mar 2014 18:08:29 -0400 Received: from mail-ob0-f181.google.com ([209.85.214.181]:54633 "EHLO mail-ob0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751682AbaCYWI1 (ORCPT ); Tue, 25 Mar 2014 18:08:27 -0400 Received: by mail-ob0-f181.google.com with SMTP id wp4so1381777obc.40 for ; Tue, 25 Mar 2014 15:08:27 -0700 (PDT) X-Received: by 10.182.107.232 with SMTP id hf8mr65435obb.75.1395785307345; Tue, 25 Mar 2014 15:08:27 -0700 (PDT) Received: from ntel.Asprouli (cpe-70-112-130-68.austin.res.rr.com. [70.112.130.68]) by mx.google.com with ESMTPSA id x3sm524956oek.3.2014.03.25.15.08.26 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 15:08:26 -0700 (PDT) From: Kim Phillips To: Christoffer Dall , Gleb Natapov , Paolo Bonzini , Russell King , kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Eric Auger , Alex Williamson , Antonios Motakis , Kim Phillips , Kim Phillips Subject: [PATCH 1/2] ARM: KVM: Enable the KVM-VFIO device Date: Tue, 25 Mar 2014 17:08:13 -0500 Message-Id: <1395785294-2545-1-git-send-email-kim.phillips@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: kim.phillips@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Used by KVM-enabled VFIO-based device passthrough support in QEMU. Signed-off-by: Kim Phillips --- This is just a couple of patches developed during platform device passthrough development in QEMU. Based on linux v3.14-rc8. 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 466bd29..22ca356 100644 --- a/arch/arm/kvm/Kconfig +++ b/arch/arm/kvm/Kconfig @@ -23,6 +23,7 @@ config KVM select HAVE_KVM_CPU_RELAX_INTERCEPT select KVM_MMIO select KVM_ARM_HOST + select KVM_VFIO depends on ARM_VIRT_EXT && ARM_LPAE ---help--- Support hosting virtualized guest machines. You will also diff --git a/arch/arm/kvm/Makefile b/arch/arm/kvm/Makefile index 789bca9..21a6ee0 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-arm-y = $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.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