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: 3890781 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7D8CBBF540 for ; Tue, 25 Mar 2014 22:09:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A5783201F9 for ; Tue, 25 Mar 2014 22:09:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CF046201C8 for ; Tue, 25 Mar 2014 22:09:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752046AbaCYWI3 (ORCPT ); Tue, 25 Mar 2014 18:08:29 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]:53394 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751616AbaCYWI1 (ORCPT ); Tue, 25 Mar 2014 18:08:27 -0400 Received: by mail-ob0-f174.google.com with SMTP id wo20so1377953obc.5 for ; Tue, 25 Mar 2014 15:08:27 -0700 (PDT) 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; bh=sBwmHkt4UW0ZaWnfaX9i102OMFH4t0ti5ZUZrcOdMls=; b=e/CuK/b6ZQSDERFpD5lihx08/CAgsJCxF2NoXW0ecqP54IjhZSZOD4HrKfcc6QfiZR 6Yc1EwqbyNdgw0Sbs90shHqybI4WYcp6oZY4Hn9KKCObt4Rqo349NWoNss7S0yQFFSnt 5Pw97MVCbwmJIP1WPjJFQ0vz5PcYIMyGUQMj5uviq5ilfn711EgOp2l0R+Q7LG+YwKfv K2B51XEieC8w7W5dFd5T2wUjyTxrBkTXv6BnIwL00fkVpvxw8A5kBLEjWvYuHc2eALDs TOZTK20NkTg3gq/C5wCnJhbT+9yT7M8dZ3zZjtAm7d20j8dP2Ax6D9RiLLySaoBOvWVF TIvQ== X-Gm-Message-State: ALoCoQmCMpkvTP3S8YfMTDonGI6IFAAteY7TFx+ercfXOdEgmgTFJfi8FmjgTWdpgdcWNQQ8RChu 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: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 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