From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2397C21422E for ; Wed, 22 Jan 2025 16:20:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737562860; cv=none; b=sEYrIHvy8UOyk+zO2hJfSR44PElcpWkgZRv0oNlK+GodFWcLoE05l5N2fLn9iulMDRM/QFyyC3no1cvQ8PpXrQJPmNt9Zs02N1IJIkxhgLvCDW9tOoffCeNV+1iUSVvMOURwamsse6PRUm+C+9iYQnPktZTUN7/HcbFITSjqWxA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737562860; c=relaxed/simple; bh=P2EqU1UXlLpqlLpL3YBFhOiIS1vRxeXI/7MP+rcwyE8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=F0EsNmRNpzirVyIBx98Irzfxo8iokicC9eYiz/Bfk/tV6Wv7N+KJwDpr51hEGk9mURGAsXCpW9ZshPNKjOnMLjHTf4gFLMvmeRHITo4LmYQtcUALjAuZFqAu9OImqKrXsBHh8QsMINxO4AKNDJnbai6Sw+yYgmQxBa1WFUCAAmU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=ab5Sbocx; arc=none smtp.client-ip=209.85.219.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="ab5Sbocx" Received: by mail-qv1-f45.google.com with SMTP id 6a1803df08f44-6e17d3e92d9so52937126d6.1 for ; Wed, 22 Jan 2025 08:20:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1737562857; x=1738167657; darn=lists.linux.dev; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=T9hDFjf5DGvpzHigba5X0fDbl6l6sC1pecUGU0oUOE0=; b=ab5SbocxSz+gFl5RWbOC41teDo9Vh04WJdrtssB4GanMU6XhzPlYTF6IYjMk20afGd UM/YTe+cK8MWXbaRAZfopUve8Qt5VxUlDNCZuBuAysZ3qvMRrOxYlA0Yi07LYODHIr4Z rpatAY8fwMgeryeyPtwwvB9l65Alt27sjww5NKrhyv/ARhwtYHwPkvChS/kgo0uNHzLk EMeTyS3kmE4iYVTEof/cwcPAcKrU88uE1HLW/WDUZEMIxnRzIz6pyVJfbFKkAbZVtl9t uTca8nLDIZriU0gli9U7ZptHl241A7xwxYBg92YBJEVNSFzLNRcpI2NfWFm93/O+gab1 /ZUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737562857; x=1738167657; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=T9hDFjf5DGvpzHigba5X0fDbl6l6sC1pecUGU0oUOE0=; b=gySzBDmfUWRGWB1B2/XvEjF6R1wY82/s83FGaMMnzyKSmAMQPj1f0Pbgz76gBdepKE 45eHzNtkwOdo78iVf53R50K4lmgqjbXh/obrQfI2pcMkF3dulTb8QBzP16gnXYaL9Gpm 5abSgNH97JIDwNRhIWi2Jn1SnaEFf8x3et5tnPUOObFs+0R2+00ISor+0++hQ6BB5PW1 d7Z+zIFBkfYIM8SDLoACK9FQ2gmLAExNKYj/P95oJa3fpWcdUvqJGgTMEaE9uFnjfP2R UwybYmTAIyP/E5ilmo8XDf1hu1DE5rro22qn/4ju+USrpzANURF/Z1aHonNNkEXiv3gR AE7Q== X-Forwarded-Encrypted: i=1; AJvYcCW4BDjYu81wWhizXWKoD0uP5RWpAWW3HnbEuUHD2Yt4IuRuKkcHd9cM/44CVuGrPu/MZfyifg==@lists.linux.dev X-Gm-Message-State: AOJu0Yw3nrJJvd8bQYlRBrYx184wFN4frdQg+1IEEFqTg4KcAreDtV3+ 4SHBPpZhWlOmly5StwhlVemfMDrFn38tfvqCUsuHYZ7Fr+diINGRECBsInjXaYU= X-Gm-Gg: ASbGnctNDc49yTkMrRv5xUPJChOirm+vmGQANdHES75xMRCA6RmaoVaGsMQ3yUty22T 8eiBFkmWrfhMud3FtmppzutBGuzXLpY+YWvEGZttnE6lCLTZWysSC+mkiCqX38EAXvL4sallC8y jfxieku9hQKrhHfONDfCa7mzz3B+BiqjfKVJbanbpI9tV9/hllpT8XtyCdSwKuZYxaU3xK3vIFZ ZaqQ7ZSQhu6I0ASa09CM6DuP/UR0JBmGxuVsyoREzUa8EPmtGhVLd3ym1qXcmJy0AEwLdrTtvLe BpXmPFLvoIswyWo5Q7RnEAdzAAMVVN+gQSie4X/HD9U= X-Google-Smtp-Source: AGHT+IEO4sjsfZ98DUdmFnOpRcKd5hBontzItCkyvXoYAGu8ZhSlBVq4j7OqBMeWhGsiwNzwffbF2Q== X-Received: by 2002:a0c:bf44:0:b0:6e1:f40c:b558 with SMTP id 6a1803df08f44-6e1f40cb631mr18093296d6.44.1737562856988; Wed, 22 Jan 2025 08:20:56 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-68-128-5.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.128.5]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6e1afc23080sm61987686d6.54.2025.01.22.08.20.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2025 08:20:56 -0800 (PST) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1tadTL-00000003qLW-46Wn; Wed, 22 Jan 2025 12:20:55 -0400 Date: Wed, 22 Jan 2025 12:20:55 -0400 From: Jason Gunthorpe To: Mostafa Saleh Cc: "Tian, Kevin" , "iommu@lists.linux.dev" , "kvmarm@lists.linux.dev" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "catalin.marinas@arm.com" , "will@kernel.org" , "maz@kernel.org" , "oliver.upton@linux.dev" , "joey.gouly@arm.com" , "suzuki.poulose@arm.com" , "yuzenghui@huawei.com" , "robdclark@gmail.com" , "joro@8bytes.org" , "robin.murphy@arm.com" , "jean-philippe@linaro.org" , "nicolinc@nvidia.com" , "vdonnefort@google.com" , "qperret@google.com" , "tabba@google.com" , "danielmentz@google.com" , "tzukui@google.com" Subject: Re: [RFC PATCH v2 00/58] KVM: Arm SMMUv3 driver for pKVM Message-ID: <20250122162055.GV674319@ziepe.ca> References: <20241212180423.1578358-1-smostafa@google.com> <20241212194119.GA4679@ziepe.ca> <20250102201614.GA26854@ziepe.ca> <20250116191455.GC674319@ziepe.ca> Precedence: bulk X-Mailing-List: iommu@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Jan 22, 2025 at 11:04:24AM +0000, Mostafa Saleh wrote: > AFAIK, the most common use cases would be: > - Devices using DMA API because it requires a lot of memory to be > contiguous in IOVA, which is hard to do with identity This is not a feature of the DMA API any driver should rely on .. Are you aware of one that does? > - Devices with security requirements/constraints to be isolated from the > rest of the system, also using DMA API This is real, but again, in a mobile context does this even exist? It isn't like there are external PCIe ports that need securing on a phone? > - VFIO is something we are looking at the moment and have prototyped with > pKVM, and it should be supported soon in Android (only for platform > devices for now) Yes, this makes sense Jason