From patchwork Sun Nov 23 18:35:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 41388 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A12942036A for ; Sun, 23 Nov 2014 18:37:33 +0000 (UTC) Received: by mail-wi0-f197.google.com with SMTP id l15sf1215993wiw.4 for ; Sun, 23 Nov 2014 10:37:32 -0800 (PST) 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=jZ67h6B/ekcpaCwYnkR/0LC951nmgUKmKHK9BLGq4Ns=; b=gwy5pIHKoMl8MQD201wNzU8BfalXtdTTjXzlXFYvFLEstId4M32nR/WiKbXvw5NcMR FYt3Uu+NAwRXisR0YqZYuf42tPn/P9At3dvq/8HlxhuRvhHGE54SlFWx2JjAAIFG/6Gf 2Ia+oljzogzDApSbfcu65SuD0Ei3UwXW1QUC0rsrI5tc5x1EiwdPqNBFV2+K1np17S9J ZFHkzq5gx9UmsHbUEmienR3kX8XtjW9zyrPJW1VWjGUledzb+JGmFeL64rZWcId+nfC0 a1xYYZOgU2GZmyVeBfSj7WizpOIWiPyO3IG1RwK30NrKvzndg7TAWaS4Ct7fqI0s0ykx OWIw== X-Gm-Message-State: ALoCoQnekwh9HYQzVnzy+pT5YAQDn37iviMHLQNKS+eFFTGtB+bKgZtr52K+jrMd6hsk3ZtfovQy X-Received: by 10.112.142.36 with SMTP id rt4mr5076113lbb.3.1416767852884; Sun, 23 Nov 2014 10:37:32 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.22.130 with SMTP id d2ls404529laf.32.gmail; Sun, 23 Nov 2014 10:37:32 -0800 (PST) X-Received: by 10.112.136.164 with SMTP id qb4mr16725045lbb.62.1416767852674; Sun, 23 Nov 2014 10:37:32 -0800 (PST) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id am7si3289261lac.15.2014.11.23.10.37.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Nov 2014 10:37:32 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id mc6so6626360lab.10 for ; Sun, 23 Nov 2014 10:37:32 -0800 (PST) X-Received: by 10.112.62.166 with SMTP id z6mr16171791lbr.74.1416767852545; Sun, 23 Nov 2014 10:37:32 -0800 (PST) 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.112.184.201 with SMTP id ew9csp156294lbc; Sun, 23 Nov 2014 10:37:32 -0800 (PST) X-Received: by 10.180.98.169 with SMTP id ej9mr15089586wib.1.1416767851914; Sun, 23 Nov 2014 10:37:31 -0800 (PST) Received: from mail-wg0-f51.google.com (mail-wg0-f51.google.com. [74.125.82.51]) by mx.google.com with ESMTPS id z5si19417583wjx.127.2014.11.23.10.37.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Nov 2014 10:37:31 -0800 (PST) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 74.125.82.51 as permitted sender) client-ip=74.125.82.51; Received: by mail-wg0-f51.google.com with SMTP id k14so10510846wgh.10 for ; Sun, 23 Nov 2014 10:37:31 -0800 (PST) X-Received: by 10.194.175.202 with SMTP id cc10mr24315374wjc.27.1416767851703; Sun, 23 Nov 2014 10:37:31 -0800 (PST) Received: from gnx2579.gnb.st.com (weg38-3-78-232-41-119.fbx.proxad.net. [78.232.41.119]) by mx.google.com with ESMTPSA id hk9sm17535471wjb.46.2014.11.23.10.37.29 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Nov 2014 10:37:31 -0800 (PST) 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, agraf@suse.de 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, ming.lei@canonical.com, feng.wu@intel.com Subject: [PATCH v3 2/8] KVM: arm64: Enable the KVM-VFIO device Date: Sun, 23 Nov 2014 19:35:54 +0100 Message-Id: <1416767760-14487-3-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1416767760-14487-1-git-send-email-eric.auger@linaro.org> References: <1416767760-14487-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.215.51 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: , Used by KVM-enabled VFIO-based device passthrough support in QEMU. Signed-off-by: Joel Schopp Signed-off-by: Eric Auger --- Extracted from [RFC PATCH] arm64: KVM: add irqfd support http://www.spinics.net/lists/kvm-arm/msg10798.html --- arch/arm64/kvm/Kconfig | 1 + arch/arm64/kvm/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kvm/Kconfig b/arch/arm64/kvm/Kconfig index 09c25c2..2edf926 100644 --- a/arch/arm64/kvm/Kconfig +++ b/arch/arm64/kvm/Kconfig @@ -26,6 +26,7 @@ config KVM select KVM_ARM_HOST select KVM_ARM_VGIC select KVM_ARM_TIMER + select KVM_VFIO select HAVE_KVM_EVENTFD ---help--- Support hosting virtualized guest machines. diff --git a/arch/arm64/kvm/Makefile b/arch/arm64/kvm/Makefile index 2e6b827..81ed091 100644 --- a/arch/arm64/kvm/Makefile +++ b/arch/arm64/kvm/Makefile @@ -11,7 +11,7 @@ ARM=../../../arch/arm/kvm obj-$(CONFIG_KVM_ARM_HOST) += kvm.o -kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o $(KVM)/eventfd.o +kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o $(KVM)/eventfd.o $(KVM)/vfio.o kvm-$(CONFIG_KVM_ARM_HOST) += $(ARM)/arm.o $(ARM)/mmu.o $(ARM)/mmio.o kvm-$(CONFIG_KVM_ARM_HOST) += $(ARM)/psci.o $(ARM)/perf.o