From patchwork Wed Aug 28 08:37:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Kardashevskiy X-Patchwork-Id: 270404 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id E0DE82C0AEB for ; Wed, 28 Aug 2013 18:43:14 +1000 (EST) Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id A09E92C0194 for ; Wed, 28 Aug 2013 18:38:39 +1000 (EST) Received: by mail-pa0-f53.google.com with SMTP id lb1so5929855pab.40 for ; Wed, 28 Aug 2013 01:38:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qPpdX4Gf04kEayxNfgEbwX8c3J2YiDHGsHnJnR8qR7E=; b=R/qVQaudTS5336tiyABHRE07PZXcYJFbDZ+A33dTtqxK9gHCMf+jhQNp+mgimW1UU2 KgPoIXeqPqr+QR2CiEJVlV7e8f1CEWr53pedm7WJB8n9jWNKTus0gfysIaV23ie8YX3Z YcVm+ax0qrpH6AclKWr928IXPYhhQZDY5T5uoJBdxM6uMasugpXpMAuGMcgk2wibDp2u aXfxLFWYAcYy994mGylrDvJJQl4AUjPrxXXJ23zBZPsgYP2ExqFDZBZY6AQIj0RNl7DJ gloeAEoeGIvEVDVDuxi42pHIQJdNlv2HLPSegtCVlxfJDJfuiW+zpXCBudjXNS6zs8v4 6LFA== X-Gm-Message-State: ALoCoQlBBupyDsZFCRws9CDkkw0FHBDBhTbMXeVrIq1eK8qrsV6mQnjtVIxo2c7OMNG3GegrwbJW X-Received: by 10.66.122.40 with SMTP id lp8mr25013033pab.82.1377679117680; Wed, 28 Aug 2013 01:38:37 -0700 (PDT) Received: from ka1.ozlabs.ibm.com (ibmaus65.lnk.telstra.net. [165.228.126.9]) by mx.google.com with ESMTPSA id sb9sm20279902pbb.0.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 Aug 2013 01:38:36 -0700 (PDT) From: Alexey Kardashevskiy To: linuxppc-dev@lists.ozlabs.org Subject: [PATCH v9 07/13] KVM: PPC: enable IOMMU_API for KVM_BOOK3S_64 permanently Date: Wed, 28 Aug 2013 18:37:44 +1000 Message-Id: <1377679070-3515-8-git-send-email-aik@ozlabs.ru> X-Mailer: git-send-email 1.8.4.rc4 In-Reply-To: <1377679070-3515-1-git-send-email-aik@ozlabs.ru> References: <1377679070-3515-1-git-send-email-aik@ozlabs.ru> Cc: kvm@vger.kernel.org, Gleb Natapov , Alexey Kardashevskiy , Alexander Graf , kvm-ppc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Paul Mackerras , Paolo Bonzini , David Gibson X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.16rc2 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" It does not make much sense to have KVM in book3s-64bit and not to have IOMMU bits for PCI pass through support as it costs little and allows VFIO to function on book3s-kvm. Having IOMMU_API always enabled makes it unnecessary to have a lot of "#ifdef IOMMU_API" in arch/powerpc/kvm/book3s_64_vio*. With those ifdef's we could have only user space emulated devices accelerated (but not VFIO) which do not seem to be very useful. Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/kvm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kvm/Kconfig b/arch/powerpc/kvm/Kconfig index c55c538..3b2b761 100644 --- a/arch/powerpc/kvm/Kconfig +++ b/arch/powerpc/kvm/Kconfig @@ -59,6 +59,7 @@ config KVM_BOOK3S_64 depends on PPC_BOOK3S_64 select KVM_BOOK3S_64_HANDLER select KVM + select SPAPR_TCE_IOMMU ---help--- Support running unmodified book3s_64 and book3s_32 guest kernels in virtual machines on book3s_64 host processors.