Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8938702rwd; Wed, 21 Jun 2023 00:26:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Zhv/jRNZxgFjy4YQZcNeZyXDURs9c2G/tt/3lJNtkttBEa9WW7eUuNGdNX9U5Vw3JBaP2 X-Received: by 2002:a17:902:e842:b0:1b5:64a4:bea0 with SMTP id t2-20020a170902e84200b001b564a4bea0mr5364609plg.10.1687332392908; Wed, 21 Jun 2023 00:26:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687332392; cv=pass; d=google.com; s=arc-20160816; b=O2RGPRvjKt5SZPsTtWunOz6a/fhJqcZBW4FS17nPRZaQgfazorH04LwDE1hbnChH9S k5oTNPQiuDMTx5DiS7xQ8hfsoqmk9QMdQeQJJmdgTJNnyhNrOV9QuMl8lHDAYh2tsnGG 5sp/2Xp9WmUFhRF8QCV28zZA6HNF+b+6TVVvGZrii6+HrcdZ3tEWZHHhpQHupahLUtDK qvweqdD5/Cs5bg7QhYOkNCV7gLXXtTP24dX2pG+JMYbQQ4cXML00m/aTZGI8wvj8iURz 8APVCG1xzXPys/edJoF1qiNw5wMPzZYkp8LqKOVQpWjYVWdupH8RazXC2kWvkBpksie8 E6zg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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:from:dkim-signature; bh=UallJ0mgjLZc1D/NJDUgDRjGn3GghdFmNlQ6sNfJ8nw=; b=SXc4zOunOPtUa6UMcmiF+AeZxK8XlbTW01yjLqps2cZ8wSWrY/9/LA0bQFKRbcF9ht EsOkBN6vK29lTLxJAVPWJKe5AvUeGoyzv+UsH4Yqe0z0OG7U36OC+Rd2C/oQ3pP2Wo2N EDnnR5CZKFWji3bKbaGS/30u2gX/Pf1/1nr2oO6Gx+C9/2/th1GVmHbbswEF81sFxbMP Ux75LZf8I0JRw/RAARnJgi8ArUPzpSocImA1Kg8DXbxJtOCwcEhU2wX3M21ytaBIiPIl TTo7NvQ6nc2XKJ3a95Vb5gwscpNVjbaq79DlaVjr+XksuLPNoXbBRXmC8hMSkCUv3nB7 vFaw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Rqa3vbB7; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lf5-20020a170902fb4500b001ae4c3bbb0dsi3280031plb.145.2023.06.21.00.26.20; Wed, 21 Jun 2023 00:26:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Rqa3vbB7; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231225AbjFUHKI (ORCPT + 99 others); Wed, 21 Jun 2023 03:10:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231297AbjFUHKC (ORCPT ); Wed, 21 Jun 2023 03:10:02 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B327A1703; Wed, 21 Jun 2023 00:10:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687331400; x=1718867400; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=0QPd+MI1FddaBkFC47EK8ZKP4ZmymvxUCkm5CfrqAaI=; b=Rqa3vbB7yZFCEWJPtD3zGWYay8juiCsXhT7P1eJ6KRCtCaLoc/Jx3YPk ap9XPMT499OOyD9BxEaLGqGXWYsWmQGv4qKVrhjFQ8cTHCoNTH3rvK6G+ UJPBm1Pj1Jz9nlkWz3aj3yOP0ishBIhz2LeiZ8rcgiWInCxtlEmtdRTyI Fq239QbpdgGR51KUSVmxZhVI2W5tQmmN4w3gJCkryoW0xFUjxB9sWNb91 T4a3wPa+a+XOHvQDoDMu5EcI4ldBFNqpI5c6h0pAMG7pCTx2QkFP3x3aI LT+MZ+Z9ZvrDEA1LBR72xgPCJ5jC7K0hqKrxCiSvuHVhcZwjromqeQdH2 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="344829142" X-IronPort-AV: E=Sophos;i="6.00,259,1681196400"; d="scan'208";a="344829142" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jun 2023 00:10:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="744064148" X-IronPort-AV: E=Sophos;i="6.00,259,1681196400"; d="scan'208";a="744064148" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga008.jf.intel.com with ESMTP; 21 Jun 2023 00:09:59 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 21 Jun 2023 00:09:59 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 21 Jun 2023 00:09:58 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Wed, 21 Jun 2023 00:09:58 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.109) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Wed, 21 Jun 2023 00:09:30 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lBe1TGmK3+YmpnxJ5nBA5Mr7TTF9JBg9+kB0oCHTb7YE1FVR25sq1VuQAtl1vUGnN8SK3eHQPMNfIMLq4vSoJgTJKYmsnGnGQaw8CSBeuCMQO88w0LC9vU5oJ3IoD85aELJdGsrolhHl3c9N9qsAONs/mxVEW7rV9mn9Y563Ly4z2bXdu9FLWC+2TImAGaaurG/eZOQRSR01u/0YXgLozTIOHb7h6GIvqDOkR3PTEnrU4REInf1E5tGlIID/yP0ks/x3WHNpaM8yE8TKdqMEJscNHtw68XETUG/mWXEoourwq7awNaR2TJUlviCmSHyoIj2U9dh2QMfVV1YSQp83mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UallJ0mgjLZc1D/NJDUgDRjGn3GghdFmNlQ6sNfJ8nw=; b=OyLGFagIFlqL3qwfmPudtP59DpqwPN6S32YDqhGHGRT2pzw9r6fSoDEtBl9bJzLCEIB6wKwxiB2/KJxqJ10NnHJwJhmXuLVDogSkPrIzpZq4tw93mayOgd6jzTVyVg4amMUxs7Y19h7wNOVj2RycKfGCf4r3Q6j0UmB1D6k4xPoquulHLkZrgJZ3yh24oKOCbEA4U2CST9mqWqJceB2Cjh/5YIpNNmy1fYssSVYeHmRp7ojjB5j6yFBKlbABSsM45/rILwKptxWDcvnx7pJtnGwqibW18xrfkRNaRemzVobLzdH7KUsOSwr32YiwuWfLpBGWXUDYtd7G5AVreVEK2w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DS0PR11MB7529.namprd11.prod.outlook.com (2603:10b6:8:141::20) by CH0PR11MB5522.namprd11.prod.outlook.com (2603:10b6:610:d5::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.23; Wed, 21 Jun 2023 07:09:29 +0000 Received: from DS0PR11MB7529.namprd11.prod.outlook.com ([fe80::e7db:878:dfab:826d]) by DS0PR11MB7529.namprd11.prod.outlook.com ([fe80::e7db:878:dfab:826d%3]) with mapi id 15.20.6500.036; Wed, 21 Jun 2023 07:09:28 +0000 From: "Liu, Yi L" To: "Tian, Kevin" , Jason Gunthorpe CC: "joro@8bytes.org" , "alex.williamson@redhat.com" , "robin.murphy@arm.com" , "baolu.lu@linux.intel.com" , "cohuck@redhat.com" , "eric.auger@redhat.com" , "nicolinc@nvidia.com" , "kvm@vger.kernel.org" , "mjrosato@linux.ibm.com" , "chao.p.peng@linux.intel.com" , "yi.y.sun@linux.intel.com" , "peterx@redhat.com" , "jasowang@redhat.com" , "shameerali.kolothum.thodi@huawei.com" , "lulu@redhat.com" , "suravee.suthikulpanit@amd.com" , "iommu@lists.linux.dev" , "linux-kernel@vger.kernel.org" , "linux-kselftest@vger.kernel.org" , "Duan, Zhenzhong" Subject: RE: [PATCH v2 00/11] iommufd: Add nesting infrastructure Thread-Topic: [PATCH v2 00/11] iommufd: Add nesting infrastructure Thread-Index: AQHZhBZTR8nfuQ+8HkGYw9uZHMojRq9haBIAgAAfs4CAB1VTgIAVHiGAgA71MYCABVzrgIAA28cAgAC5cgCAASEngIAAEmkQ Date: Wed, 21 Jun 2023 07:09:28 +0000 Message-ID: References: <20230511143844.22693-1-yi.l.liu@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS0PR11MB7529:EE_|CH0PR11MB5522:EE_ x-ms-office365-filtering-correlation-id: 2e0b899f-857a-4790-b5f6-08db722673d1 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /vEXWwq37Q3rP8e9pZgfXPeDm77CXfpuOKeaazIuas7uOA4N1G7un9g9f2ZitwOV7h+jC9IIFPNbeaAyAIApPG8aJqOKkjUNvAA+emgKPkl4DiFSTtqmwccFisvpa6xtZkFscFX4rB05izXfAQNgovrAGWymgRtOaKXB/a54dMwi4DipdiRnOY4fG2jw0OjAOYj8ddyn1/mjzwIs++Hyq15g7zpFXMgrvqk6pnStvl+cYf7RvZYo7lTvOYt+vYafGwkHo7fJRf5Ucoy8YWoGUDjgwEshlYowSXFPSGV+YqOORKVwMLhir1xO7yOki3wo+E5fvbIHMTMDMlpg9dqLRl+m989DfYdrzVUcTjGtPJJdiXF2+EksAX3Tsp5Y5XYJJCcP4CFHu4tiKf/0Zqq2zeTM+B2HLvdEyNH3GjjIDKifDhORyU0rz9xTRTxyNROQL0+MVyCUolW/uHaST5yBL0XCWNiebWLSheEEgK67OAFw9gxZX7cBC3F9LrmG4ytVnfpeN55YBRJtnR+OwDy3oh6+i+A0P9qiKgvnW0S6SY6wXKEWnk5L500ul9KA4ivai7cFzfsMd8D2bLTaf3gxmGg7cm7cxBkTme/n0BlxD6BlWqzfUri4r3tCF1N5Crxq x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR11MB7529.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(396003)(376002)(136003)(346002)(366004)(39860400002)(451199021)(122000001)(38100700002)(82960400001)(6506007)(83380400001)(9686003)(186003)(55016003)(7416002)(5660300002)(8936002)(8676002)(41300700001)(2906002)(52536014)(38070700005)(33656002)(71200400001)(76116006)(478600001)(7696005)(66446008)(64756008)(66556008)(66476007)(66946007)(316002)(110136005)(54906003)(86362001)(4326008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?MyTyMpKU6gumzhbRVMOVL76zMvMNMFt+Tzo7Y5/Uy0FoMThjQrddaLgmbhto?= =?us-ascii?Q?Q16PGHfbeJzBeVrpXMZ/jA1stTnN/60mWiawK83KCWUNQSZqefr/L2EDing5?= =?us-ascii?Q?Fj5j/WrkXP7ZzvkrGBRb9A0GxOZ/G7FJXi6O2qNO1LXoh4SBCgB05pm5/mFh?= =?us-ascii?Q?HPI/ocndlFXFP6o1Fgf385gZahgnDR/0mFLRAWk1A7ZSLhtGnWjvuQjuTCGi?= =?us-ascii?Q?EfN5FvaztmAKkybegHl+01JAfjkGd63rgrj6H5PcTCsPOgQ9v5Z4YWwEwqF9?= =?us-ascii?Q?ebCiQ67fVA+KggNwivhwVlpRSPedYAKa+zkkgGreZVhH9/3kZBtZRU5fFZau?= =?us-ascii?Q?CR1rM6J9hq81/C/egPVKOanDiwRc8JMvnbOD/X3Vfz5BlSY47P27nu+Pnya8?= =?us-ascii?Q?q59BWgJZj7NOGuYWU4A4Y/M0U1tyd23kKBcPKqnSHiNeLAPpX1W7GLL1Sea3?= =?us-ascii?Q?dr+z+B/2OH+61k1VaqMpg0ydy41fx+99cNXKAv1ajJ64cBK2Z6SvJhb/zMdy?= =?us-ascii?Q?gxGozMNGC6FhbnLUAdtJcwZ+BE7mrOzMX7Qsn38/e041zL8xCV6+EKM2dp5L?= =?us-ascii?Q?ZOLfK+PRfWHWZJbJWjqAuG8ltstfgwnNw11hT92xx4P6OV4kjTAq0ysjm2lj?= =?us-ascii?Q?MKfwZegdF5CN0ZWSiCZMu8AU1qDqqxHCwT1POrI2a7zgOltk854d6L+6Lo96?= =?us-ascii?Q?wquqnGoaEWJ785dRQD8pWsfOEAkqx9CCE8melkEaKtAYUB95gURPCRjglzZU?= =?us-ascii?Q?LsO5DHd6iE5VPGcUZvjRLo/68AVtarArKMw4LqlQ3pCjNqO2Vv0Cpy+mnyTr?= =?us-ascii?Q?RUgAZ8d3FKWfNL62Wt/Z7Mxl2LMhOWmVCKPJmYqvpfdbzzqEqVdpv8QfI80p?= =?us-ascii?Q?Xxz1f+94fQMu2O+4gVwe+FTr/zdYvyDszmK2N4xguiBE72B+W/qd1ZYM8qKR?= =?us-ascii?Q?7LVclK4F9rqZJxbwNufiKr39+HC/ueqPU8gJSnC8A+KSBuxHe9W2ki0UdX8J?= =?us-ascii?Q?wW3pT6asXqM54hKrHtNMEWAjNHPAOTZf9Q/TmoEG69j713Tnt4u/cXUu1E6u?= =?us-ascii?Q?9dUlHrGVsT8WHyHR2Hwm8fCTie91hePhvMBF1k7x+J9bsLx/eF6pIBpSaX/i?= =?us-ascii?Q?QCbdJ3nIkGnNUd5znfZPgtNFIA67R44YYT8S9HUO9WCG0zNmHB7ZVzjOeqRq?= =?us-ascii?Q?bNwKdwiQ9zpuUmj4rMo/LA/j5nbPp7Ie99QreaVyXABnQ/aIH0t60onKwKIx?= =?us-ascii?Q?LRmIklW6Y1kzR+6hW1xD39I54eRDHF0kfDgte+QKNYkRTuQh+ehTe0mLqriT?= =?us-ascii?Q?0qYTAvYINr8okzy5uN5QBIEaIbs/SoYjixT9AXgnvL9RtG2+0jhk40QLNRLe?= =?us-ascii?Q?IIWVvjLKYPXWVwRYslGQUQpwHKbPL2vmzClVqZbx5CROGs6IkeA2nSm2M1w1?= =?us-ascii?Q?Kg80+fy1ukv4in+NBU73zWuNwXh7Bh8YTPLuaOcrKKCRvZ070iLF/iZW1gio?= =?us-ascii?Q?mHc6dsYL/6R619KBVFAPi0MOhbdTgMSxJ+AhCI0tkEuyKozc/AAN7xBz+Q?= =?us-ascii?Q?=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7529.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2e0b899f-857a-4790-b5f6-08db722673d1 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jun 2023 07:09:28.0388 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: KFGwL6isqCGhXZLvBOepQxyoim5pOWLPS6tDriduTzazV2lJs9qGGI3km3BZqk2p775fbbBwXdalMKrFa9ilHg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR11MB5522 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Tian, Kevin > Sent: Wednesday, June 21, 2023 2:02 PM >=20 > > From: Jason Gunthorpe > > Sent: Tuesday, June 20, 2023 8:47 PM > > > > On Tue, Jun 20, 2023 at 01:43:42AM +0000, Tian, Kevin wrote: > > > I wonder whether we have argued passed each other. > > > > > > This series adds reserved regions to S2. I challenged the necessity a= s > > > S2 is not directly accessed by the device. > > > > > > Then you replied that doing so still made sense to support identity > > > S1. > > > > I think I said/ment if we attach the "s2" iommu domain as a direct > > attach for identity - eg at boot time, then the IOAS must gain the > > reserved regions. This is our normal protocol. > > > > But when we use the "s2" iommu domain as an actual nested S2 then we > > don't gain reserved regions. >=20 > Then we're aligned. >=20 > Yi/Nicolin, please update this series to not automatically add reserved > regions to S2 in the nesting configuration. Got it. > It also implies that the user cannot rely on IOAS_IOVA_RANGES to > learn reserved regions for arranging addresses in S1. >=20 > Then we also need a new ioctl to report reserved regions per dev_id. Shall we add it now? I suppose yes. > > > > > Intel VT-d supports 4 configurations: > > > - passthrough (i.e. identity mapped) > > > - S1 only > > > - S2 only > > > - nested > > > > > > 'S2 only' is used when vIOMMU is configured in passthrough. > > > > S2 only is modeled as attaching an S2 format iommu domain to the RID, > > and when this is done the IOAS should gain the reserved regions > > because it is no different behavior than attaching any other iommu > > domain to a RID. > > > > When the S2 is replaced with a S1 nest then the IOAS should loose > > those reserved regions since it is no longer attached to a RID. >=20 > yes Makes sense. Regards, Yi Liu >=20 > > > > > My understanding of ARM SMMU is that from host p.o.v. the CD is the > > > S1 in the nested configuration. 'identity' is one configuration in th= e CD > > > then it's in the business of nesting. > > > > I think it is the same. A CD doesn't come into the picture until the > > guest installs a CD pointing STE. Until that time the S2 is being used > > as identity. > > > > It sounds like the same basic flow. >=20 > After a CD table is installed in a STE I assume the SMMU still allows to > configure an individual CD entry as identity? e.g. while vSVA is enabled > on a device the guest can continue to keep CD#0 as identity when the > default domain of the device is set as 'passthrough'. In this case the > IOAS still needs to gain reserved regions even though S2 is not directly > attached from host p.o.v. >=20 > > > > > My preference was that ALLOC_HWPT allows vIOMMU to opt whether > > > reserved regions of dev_id should be added to the IOAS of the parent > > > S2 hwpt. > > > > Having an API to explicitly load reserved regions of a specific device > > to an IOAS makes some sense to me. > > > > Jason