Received: by 2002:a17:505:610b:b0:1be9:327d:8ee3 with SMTP id tt11csp4897105njc; Fri, 8 Nov 2024 05:06:04 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUjjN8pFpc7meIWgHy6xlsFbAEf2VheRqKvFdccXtfSxmraKDdauRKHbvcmQFOqplG8CmW71IVh9jL5GA==@linaro.org X-Google-Smtp-Source: AGHT+IFx5rkcCAphhE7y6zSCNoAonLFP/+DEayrPA2BU7+kBjn7Ah0fEad2Su25feIw8lTND7Vjn X-Received: by 2002:a05:620a:4449:b0:7a9:d0ec:2d9d with SMTP id af79cd13be357-7b331eac340mr343777085a.15.1731071164677; Fri, 08 Nov 2024 05:06:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731071164; cv=none; d=google.com; s=arc-20240605; b=BzjglphDqYWK+Ac3yeeL7nj5XTcc3COI0mLZXmt63WCv0Ix0DLw5DHrHwEdec72KVl wP/K5J5wDCenYHjeD/crDjJ4jpdD3SbnFaIrSuMecyQ94uceIuK8LXqeIC6qwIb+jucR WxPKq3xRyL23NLkRIF7uztGJMRDoHxGx02sxHXrUFPYJJFxa+L6gefA6KkzAMhmgIfUu ZSsr/g8CX2wU+1UxGatUmcslgAr0d8fGCPAgT0d4GioEgc6xtttDpFaiwJpuPB6vBURx yxOD6XsLBlLyPL3MKuN7v5+FAdti/ImYvAkOy10CknykbPV5+dvPaYPRtGZOfyGzarfy NFdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:from:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to; bh=KKn0oCMx9t8sk74y63hkFYkpeJrrNhscq4Md8Nnv/dw=; fh=RNJ+0uUWiIBO2ZtF9AoBFZekqv+LKBL1Ue5ZuxB+6h4=; b=bEFQ9dLW1yKuDEuPQT8aPlxzZKxIKFCNz3UazCAbGFunpaxR0UaPJalbH50FvMfUff DBR+jgv7w095H/pypEN3pR6mbH2MqXjEOcW4rrz6DY6vQyLFf6L47YQO3DXF5elUuxhL IuUrA3oqKUuYIZZ7qibYdkJurEsY681YRAW0n+iVfKwoPvN47iizooiFoGMDKyubyoBV fCYlVDMWgrqhHw05vdfk4rOcf9+trHX+rjuYa9qQD3knwB22BRuvc4ARE83FKo2OYiOj 2x6M17NdIh48iuo7O1v2VRilyitI6mr3pm/7Sge3/qBIxabE8QTTNmZl3CZWgnkx5VQr mirw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; 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=nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-462ff680b82si38894901cf.586.2024.11.08.05.06.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Nov 2024 05:06:04 -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; 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=nongnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9Ofy-0002Iu-Fz; Fri, 08 Nov 2024 08:05:22 -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 1t9Ofv-0002IQ-Ic; Fri, 08 Nov 2024 08:05:20 -0500 Received: from frasgout.his.huawei.com ([185.176.79.56]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9Ofs-00082D-Vt; Fri, 08 Nov 2024 08:05:19 -0500 Received: from mail.maildlp.com (unknown [172.18.186.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4XlK0y5n9gz6DBXr; Fri, 8 Nov 2024 21:05:06 +0800 (CST) Received: from frapeml100006.china.huawei.com (unknown [7.182.85.201]) by mail.maildlp.com (Postfix) with ESMTPS id 3AB5E140B3C; Fri, 8 Nov 2024 21:05:12 +0800 (CST) Received: from frapeml500008.china.huawei.com (7.182.85.71) by frapeml100006.china.huawei.com (7.182.85.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 8 Nov 2024 14:05:11 +0100 Received: from frapeml500008.china.huawei.com ([7.182.85.71]) by frapeml500008.china.huawei.com ([7.182.85.71]) with mapi id 15.01.2507.039; Fri, 8 Nov 2024 14:05:11 +0100 To: Nicolin Chen CC: Eric Auger , Mostafa Saleh , "qemu-arm@nongnu.org" , "qemu-devel@nongnu.org" , Peter Maydell , "Jason Gunthorpe" , Jean-Philippe Brucker , Moritz Fischer , Michael Shavit , "Andrea Bolognani" , "Michael S. Tsirkin" , "Peter Xu" , Zhangfei Gao , "nathanc@nvidia.com" , "arighi@nvidia.com" , "ianm@nvidia.com" , "jan@nvidia.com" , "mochs@nvidia.com" Subject: RE: nested-smmuv3 topic for QEMU/libvirt, Nov 2024 Thread-Topic: nested-smmuv3 topic for QEMU/libvirt, Nov 2024 Thread-Index: AQHbLBPkDYWW/RlwrUqSJByfpx0jw7KisNtQgAAO5ACACqTPgA== Date: Fri, 8 Nov 2024 13:05:11 +0000 Message-ID: <3e452b1e4d634e8da8e939e1ba89075e@huawei.com> References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.203.177.241] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received-SPF: pass client-ip=185.176.79.56; envelope-from=shameerali.kolothum.thodi@huawei.com; helo=frasgout.his.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, 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: Shameerali Kolothum Thodi From: Shameerali Kolothum Thodi via Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: OOxUp4lSpfQe > -----Original Message----- > From: Nicolin Chen > Sent: Friday, November 1, 2024 7:29 PM > To: Shameerali Kolothum Thodi > Cc: Eric Auger ; Mostafa Saleh > ; qemu-arm@nongnu.org; qemu- > devel@nongnu.org; Peter Maydell ; Jason > Gunthorpe ; Jean-Philippe Brucker philippe@linaro.org>; Moritz Fischer ; Michael Shavit > ; Andrea Bolognani ; > Michael S. Tsirkin ; Peter Xu ; > Zhangfei Gao ; nathanc@nvidia.com; > arighi@nvidia.com; ianm@nvidia.com; jan@nvidia.com; mochs@nvidia.com > Subject: Re: nested-smmuv3 topic for QEMU/libvirt, Nov 2024 >=20 > On Fri, Nov 01, 2024 at 06:35:23PM +0000, Shameerali Kolothum Thodi > wrote: > > > @Shameer, > > > Do you have some update on the pluggable smmuv3 module? > > > > I have a bare minimum prototype code that works with a pluggable > smmuv3. > > > > ... > > -device pxb-pcie,id=3Dpcie.1,bus_nr=3D2,bus=3Dpcie.0 \ > > -device pcie-root-port,id=3Dpcie.port1,bus=3Dpcie.1 \ > > -device arm-smmuv3-nested,id=3Dsmmuv1,pci-bus=3Dpcie.1 \ > > -device vfio-pci- > nohotplug,host=3D0000:75:00.1,bus=3Dpcie.port1,iommufd=3Diommufd0 \ > > -device pxb-pcie,id=3Dpcie.2,bus_nr=3D8,bus=3Dpcie.0 \ > > -device pcie-root-port,id=3Dpcie.port2,bus=3Dpcie.2,chassis=3D8 \ > > -device arm-smmuv3-nested,id=3Dsmmuv2,pci-bus=3Dpcie.2 \ > > -device vfio-pci- > nohotplug,host=3D0000:7d:02.1,bus=3Dpcie.port2,iommufd=3Diommufd0 \ > > ... > > > > Something like above can now boot a Guest with the latest kernel. But I > am not > > sure it actually works correctly. I need a bit more time to update this= and > carry > > out some tests. Will target that in Nov. >=20 > That looks nice to me! Thanks for the update. I have sent out an initial RFC here(Might have missed CC few in this email.= Apologies.), https://lore.kernel.org/qemu-devel/20241108125242.60136-1-shameerali.koloth= um.thodi@huawei.com/ Please take a look and let me know. Thanks, Shameer