From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3vs08d0Db3zDq7d for ; Mon, 27 Mar 2017 14:37:37 +1100 (AEDT) From: Michael Ellerman To: Alexey Kardashevskiy , linuxppc-dev@lists.ozlabs.org Cc: kvm@vger.kernel.org, Alexey Kardashevskiy , kvm-ppc@vger.kernel.org, Alex Williamson , Paul Mackerras , David Gibson Subject: Re: [PATCH kernel v11 09/10] KVM: PPC: iommu: Unify TCE checking In-Reply-To: <20170322042156.11756-10-aik@ozlabs.ru> References: <20170322042156.11756-1-aik@ozlabs.ru> <20170322042156.11756-10-aik@ozlabs.ru> Date: Mon, 27 Mar 2017 14:36:33 +1100 Message-ID: <87h92ffl1a.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Alexey Kardashevskiy writes: > This reworks helpers for checking TCE update parameters in way they > can be used in KVM. > > This should cause no behavioral change. > > Signed-off-by: Alexey Kardashevskiy > Reviewed-by: David Gibson > --- > Changes: > v6: > * s/tce/gpa/ as TCE without permission bits is a GPA and this is what is > passed everywhere > --- > arch/powerpc/include/asm/iommu.h | 20 +++++++++++++++----- > arch/powerpc/include/asm/kvm_ppc.h | 6 ++++-- > arch/powerpc/kernel/iommu.c | 37 +++++++++++++------------------------ > arch/powerpc/kvm/book3s_64_vio_hv.c | 31 +++++++------------------------ Acked-by: Michael Ellerman cheers