From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a17:505:57c2:b0:1be9:327d:8ee3 with SMTP id yd2csp433548njb; Fri, 13 Dec 2024 05:20:45 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUJnuc3qAebL4nB/wphGa1Y2UwMz0Ab85LOemZEMS2KzIe8A70Ew/LRkR792LNtjvib7Er8LJO26BRSrA==@linaro.org X-Google-Smtp-Source: AGHT+IETVSG/AY/HZuT442S1wP163PKnlh/dxWMDIH7/FSlmMe1zkrpiZUM6kK9d09Ie2t5Kv72O X-Received: by 2002:a05:620a:40c4:b0:7b6:cb81:95d with SMTP id af79cd13be357-7b6fbee9bc2mr453167985a.21.1734096045190; Fri, 13 Dec 2024 05:20:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734096045; cv=none; d=google.com; s=arc-20240605; b=hlBZHyrOjmk8SPS9Midl5sbT1kMDg3iUnDX8kB57HGV68jKhTy7FSpvfZkcZ2ZILd8 sryhucXsjjqrgFwM/o6ldherjq4HAX0ceD3NmZPyacAKxc3ZnGwHCaT7OtLuo2d5imsD 2RzBaPOZPZdoMho/hY61Ki5WMm+uwSKJ4+KBEBP9svr0g29wQu0qrYZnRihMjTiaSzje pqM2ISuJdCcKEMNxMEfabO6wr6+LCLcJPnbAcrPKjx1iyJieTMwlurUnCjwvpiLjzEcK dH1dqx83kbCvYNquI7jOBiUA4yG/x589WOsDPoKu+RhBNLxIwH/NDacVhlfuHzkfFwjK V1Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:user-agent :in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=hDVPbiR3ltA744kJJVDgG00hc45F88qSKEtNzbzyiqI=; fh=WWB1wtDIpUa/ySgb4SqRHWkTVOZ9QgvmqHMbzCBWnsE=; b=epbwS0vhwUQ6jy7mwMSlVTGpB1vg0KLm1JSeTRvPtWHZx/u/74xOjCnvK6rngpCaCp pSFSRN3EdpO2V/hTlZUZc85j+kfHKBk1+GFsGLzeEKWsXIcw+Svyx3C/harKcQJSSKW2 52bM0v/fbt0nYjnfoiyaRH9Hpneu087zmc6rv/R5uuUgG5hdpTkm/noio2RWx/2WXoZt mj7lvkZ0ROf46dJ700PefuVXu03CT06xzrTSh62oS1PAHNOY6Rw5asL7g6/iksDxkoCQ e/oqLQMtdJV0CwJDS76s/4gpszv3JRZ19OuHfVPnS23MfdYr7z9KCbJAqD/ny332Umk/ uWEQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gRcQUIXr; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b6f6872049si367123685a.376.2024.12.13.05.20.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Dec 2024 05:20:45 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gRcQUIXr; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tM5ah-0003E6-8T; Fri, 13 Dec 2024 08:20:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tM5aX-00038f-Bh for qemu-arm@nongnu.org; Fri, 13 Dec 2024 08:20:14 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tM5aV-0006kQ-Bd for qemu-arm@nongnu.org; Fri, 13 Dec 2024 08:20:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1734096006; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hDVPbiR3ltA744kJJVDgG00hc45F88qSKEtNzbzyiqI=; b=gRcQUIXregrVewE+7JZO2XGuhuA4jeJnGJNyT9Px3vzzTCTo5JT8bX0w+TXTclzBu/eL5e ZNF71rRiu5kZOG54tKNJIXxk8By5U6VrwnxC51B9b3HFZl8LvA1tj65Amm9ZpQibG0gfej GNnsQm9pPjxFTS3mdRugCZ4cS6+ggkI= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-221-qICFY9fNMmCDeWlDKOWCDQ-1; Fri, 13 Dec 2024 08:20:00 -0500 X-MC-Unique: qICFY9fNMmCDeWlDKOWCDQ-1 X-Mimecast-MFC-AGG-ID: qICFY9fNMmCDeWlDKOWCDQ Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9824B19560A5; Fri, 13 Dec 2024 13:19:56 +0000 (UTC) Received: from redhat.com (unknown [10.42.28.42]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 775DB195605A; Fri, 13 Dec 2024 13:19:50 +0000 (UTC) Date: Fri, 13 Dec 2024 13:19:46 +0000 From: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= To: Jason Gunthorpe Cc: Shameer Kolothum , qemu-arm@nongnu.org, qemu-devel@nongnu.org, eric.auger@redhat.com, peter.maydell@linaro.org, nicolinc@nvidia.com, ddutile@redhat.com, linuxarm@huawei.com, wangzhou1@hisilicon.com, jiangkunkun@huawei.com, jonathan.cameron@huawei.com, zhangfei.gao@linaro.org Subject: Re: [RFC PATCH 0/5] hw/arm/virt: Add support for user-creatable nested SMMUv3 Message-ID: References: <20241108125242.60136-1-shameerali.kolothum.thodi@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/2.2.13 (2024-03-09) X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 Received-SPF: pass client-ip=170.10.129.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.495, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: KVyxcIs6yoss On Fri, Dec 13, 2024 at 08:46:42AM -0400, Jason Gunthorpe wrote: > On Fri, Dec 13, 2024 at 12:00:43PM +0000, Daniel P. Berrangé wrote: > > On Fri, Nov 08, 2024 at 12:52:37PM +0000, Shameer Kolothum via wrote: > > > Hi, > > > > > > This series adds initial support for a user-creatable "arm-smmuv3-nested" > > > device to Qemu. At present the Qemu ARM SMMUv3 emulation is per machine > > > and cannot support multiple SMMUv3s. > > > > > > In order to support vfio-pci dev assignment with vSMMUv3, the physical > > > SMMUv3 has to be configured in nested mode. Having a pluggable > > > "arm-smmuv3-nested" device enables us to have multiple vSMMUv3 for Guests > > > running on a host with multiple physical SMMUv3s. A few benefits of doing > > > this are, > > > > I'm not very familiar with arm, but from this description I'm not > > really seeing how "nesting" is involved here. You're only talking > > about the host and 1 L1 guest, no L2 guest. > > nesting is the term the iommu side is using to refer to the 2 > dimensional paging, ie a guest page table on top of a hypervisor page > table. > > Nothing to do with vm nesting. Ok, that naming is destined to cause confusion for many, given the commonly understood use of 'nesting' in the context of VMs... > > > Also what is the relation between the physical SMMUv3 and the guest > > SMMUv3 that's referenced ? Is this in fact some form of host device > > passthrough rather than nesting ? > > It is an acceeleration feature, the iommu HW does more work instead of > the software emulating things. Similar to how the 2d paging option in > KVM is an acceleration feature. > > All of the iommu series on vfio are creating paravirtualized iommu > models inside the VM. They access various levels of HW acceleration to > speed up the paravirtualization. ... describing it as a HW accelerated iommu makes it significantly clearer to me what this proposal is about. Perhaps the device is better named as "arm-smmuv3-accel" ? With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|