From nobody Sun Dec 22 08:35:38 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; arc=fail (BodyHash is different from the expected one); dmarc=pass(p=reject dis=none) header.from=lists.libvirt.org Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1733963348986917.5782430679129; Wed, 11 Dec 2024 16:29:08 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id E94D711A8; Wed, 11 Dec 2024 19:29:07 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 793281392; Wed, 11 Dec 2024 19:25:38 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 24C22E69; Wed, 11 Dec 2024 19:25:34 -0500 (EST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2054.outbound.protection.outlook.com [40.107.237.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 37BEA12AE for ; Wed, 11 Dec 2024 19:25:10 -0500 (EST) Received: from SN7PR12MB6838.namprd12.prod.outlook.com (2603:10b6:806:266::18) by CY5PR12MB6322.namprd12.prod.outlook.com (2603:10b6:930:21::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.14; Thu, 12 Dec 2024 00:25:04 +0000 Received: from SN7PR12MB6838.namprd12.prod.outlook.com ([fe80::529d:478:bc5d:b400]) by SN7PR12MB6838.namprd12.prod.outlook.com ([fe80::529d:478:bc5d:b400%6]) with mapi id 15.20.8251.008; Thu, 12 Dec 2024 00:25:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, FORGED_SPF_HELO,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.4 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cOkI7gTfxfeLXjL5CB0P4c0mhDlb8jeFyH92w8WMbpv+yJFy0Lhs+m2BWSpHtJTHa5O+TpRk0Shq77KqFUk9ZKrKLcw2O95E8sT6zVoerLB/i7QQuuT2UdHWfRBd21M2pIVgyAcxkXP6yzT5uDfWsVbLR6AB450HRAV09a1YbhqQIzLyCd+82JF385svCDD7ktn/3oFXUdlw0Z/7P4+9woVDvS16V2McPEUyQV2GhyCGAhc2zPuHqNZrll1sua8zg8LrJFwHe64Z5otmxqz3u9dwTp4pWr9FoBeGcb+lRmkGsBszRfl5zp6QbCQZqZxkAofnZZ1/eneSTSS69H6n6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=JwNegjpvHPDapC53ZQbYNC+oOpok57Dky1wT93CzSpY=; b=Lua5qKBsmSD+gOwfNb/2xP+pXmUPU/wsGE+uS3apiX7JNvcYpDF4AX/jNr0mx+6TP3/p5+s+kH4vZAjq/V1gW2jxvycukfBwTEr9c9I67SHibOrhOAjHwEl8gD9f1WOiZkSTFjyBrKIfM45ZJ3nNrj9jFiPQyiW/JPPcUj/ZLXo9U4/JNTTEwE2Ejy5IncfDZ+U5Ai6IoddTm+sO1OLjHqFKuISi6sHNw5RTzQEGDwQjOtA4FxtPQM83lmTHR/mtzlmBTLTNNQh2MiSAje3Ikzdr41t20LVRZCDbxUZ53lEWHmD9kJ7JMmkNY/Vv6hYp2YruUt+F7s4CipruIN+xww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JwNegjpvHPDapC53ZQbYNC+oOpok57Dky1wT93CzSpY=; b=YndvbS8z2rYGsP3VDZqI/F5zDknVBDj72DdSj7wX9WCEq4is8pH6VQNluOtY5PqVS3oyhGDFgddarNVPDMBXRXis1c4gy/kk4as36tiz4X2jGCfXEC6PsoNk31e4GIeL+47YNeRL83zNd6R1YZj8qB1cyTrb60cnWx3B11Qg1l97EgZ06JKbq4f8sO8J04nNeIyCQD4wu1J7+d73LJL7Yt8ARDq7N4L5bbzKSv3talal7lro6aBRDuzXJQ+HlWaetR/9fK3NanP1Va6FNDm0tNHA2Jr+AvgzlNWhl0PIjXv6te0oF6qqYEc7rGX+PxhLVtum2q6GmSDqK0LBT//jQQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; To: devel@lists.libvirt.org Subject: [RFC PATCH 5/5] qemu: Add test case for specifying multiple nested SMMUs Date: Wed, 11 Dec 2024 16:24:23 -0800 Message-Id: <20241212002423.1050892-6-nathanc@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241212002423.1050892-1-nathanc@nvidia.com> References: <20241212002423.1050892-1-nathanc@nvidia.com> X-ClientProxiedBy: BYAPR05CA0001.namprd05.prod.outlook.com (2603:10b6:a03:c0::14) To SN7PR12MB6838.namprd12.prod.outlook.com (2603:10b6:806:266::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN7PR12MB6838:EE_|CY5PR12MB6322:EE_ X-MS-Office365-Filtering-Correlation-Id: 3cf7a31c-ed95-4274-576c-08dd1a436c84 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|366016; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?YYfAYBYL3DqxhsuNlGcopyr9c0Xebi8kOXSj+Wg25Heo4Os9+pw+vmJJBdVO?= =?us-ascii?Q?1pwU0QVqfhRAifXyhafIvo106PwXQu+6InnvFORRER8HRjbHJlB4gcHa/Mmx?= =?us-ascii?Q?b5ooNwahCS2wH2ecRclaPEhLii2uQ068bk3Au5AS/1r6O8hy101Fo4nK7EHr?= =?us-ascii?Q?EyOdmO3icNGMvaxmjk/EXRcpcbFYhf14clwku4ymUdgwm8hswZEpuka9MFq6?= =?us-ascii?Q?F8AUO+5+Dfn4jj56WEQsqPsq3XzuOQu/nYH+Z2k/xdV5hb3sUZh/c33rdibd?= =?us-ascii?Q?m1jjEOoQW+/0psT7YcwQmPg3CEvponLdc8F0N6mUVwP27mUkDmqB0k6AcsUO?= =?us-ascii?Q?jA0hnN3HIsdxI06s4V4SW1lfrKkRQ+ZMvB+XS6Wdi+DTgBOG/fQKeIWKWDLT?= =?us-ascii?Q?8VN/M0FdGYVfc+M3ABTLZsbjkGJ8Y0u6FWVTKfSqNYFkjSVhIiUo5Zzpl7Xz?= =?us-ascii?Q?soaBR0iuiOlPiDI3o6T69X0bboD6JL+GmAw4MtKLBk7bosxJHS+TrHg2Bnsp?= =?us-ascii?Q?5m58ZP16t31GMVCiTvgC6ZXL+Uf49bvxEU/DKaEB2dU1h08ReOFWVQ6Fq/9i?= =?us-ascii?Q?HjNJ1cGfujLZq0FtcZxwwakl39q7eSlwLIqKMRN7kTyiJcjF6USU8sJPLAxv?= =?us-ascii?Q?4KZhRN5WGNtfLAB9FHbvn5RZZCamEkpm1wnwBnU+gD+KsuppazZjvOxzv3Ye?= =?us-ascii?Q?/lYGvk1u7L6fCEuh/KmGfbVcJ2nGEBpQqJP6CK6kECRrsa5S9KxCVRlO1A9Y?= =?us-ascii?Q?QiWoLspDvYYqR746NsVxkaM5mmuRCOSzdmN21yBswJbkUWWasmEEhm8IU1w+?= =?us-ascii?Q?xeTwDI2D1E9+Caim+TzTWxZ1ss59yREalKmU625fwFcEvHRORmOq2owkg+0P?= =?us-ascii?Q?Au9ivh7i+ahESrE1M+5PMnAULoavv8g2V1e6sAcyum3in3nMFtbr7Gwwtxgj?= =?us-ascii?Q?Cv/8V56t0GNUdOmNXdlhscoWEAbghjPIN8u/8sePKfKEL4ye3pCkRvV3M0gn?= =?us-ascii?Q?KeQJnwyTSzVvEDxWORuHCEuzUV0UwcZAG69k1CX3zT/nvRDxDrQQ0M2VFCwL?= =?us-ascii?Q?3e/zRRGCnIGBur52FhO3uV5LS3YmtvZWgpcEZBKPMhEAbDyJ8RpF1YmPuQm2?= =?us-ascii?Q?o2UG/2Up6fnoy1qbRzfcaF9Hz3Zi/SyejvqpG0Ktu3zQldBrPbJ9o5uyHOIE?= =?us-ascii?Q?TJELWhjGgazw2amwO3KwAYeiZRY5HfKTYezi6ZXS9d1O9CrcccvFOKmWitVa?= =?us-ascii?Q?2zW/v8PhAAKoqhs2Rxd7ss3Ug7bhLspyO0PjRz8COCh6EvmIuC7bYdeAX8jO?= =?us-ascii?Q?ghK8wtOcgO4JOOb3a1sBUzIqxumyxyqOYtg0z9+2VUnnKA4QJhRhAOQ9yYwR?= =?us-ascii?Q?HGgy9lM=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN7PR12MB6838.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?gcHBhHWZgiyRM8Fhjkhwwbef3x6H8UkZTVxocJAmWtBM2jIpVYqslcR0ZJqX?= =?us-ascii?Q?0U6dlqPqKp8raA7144GKGBr5Ce/aY2JNSbgfb1XjNqQzY3yNZjjDlDXSh9no?= =?us-ascii?Q?SSaT7z/F01npEATMLJqSzxRA/Gx4+LqZa3VFCinbIH9GZEv54Y8uFQ5jzuzy?= =?us-ascii?Q?y+D6ly0pdPD110XcjZXnGEi5+0nm9SAiRCDWKR7jDOOP5ptgdvvNT9zW8KLj?= =?us-ascii?Q?xgyIBzXYWh+G96vPG0dICxGDFc/UAux7a1f3WCr8nS1o+V7v55BfYXzUChCZ?= =?us-ascii?Q?Cvm814KKDuA4SOQ6pMBr4SLc0Xt/HljtbM5zxMyIgtLIYePTXQqyD1fekkgb?= =?us-ascii?Q?AyWwwqkdACwlyJjyrCEoEDDwNJfffGMS74o+xqOwUh1TxBPA0dHm7OLBOUhb?= =?us-ascii?Q?LkNi0Lq6mEX7c3a6+Iy9EI09ADVrsv0WNiKCMy9JwZgyImQ5mfr3/GYjlSYm?= =?us-ascii?Q?XJiaaGMTCaXPeQ/UddwLeopAGboTOsaYcCbxHnTF5ixwdhO9DBv7FKOEEsPW?= =?us-ascii?Q?h1kSXOo9Bq2dUGWfEG/xeXVJKfFjWnpGTmuwiKkxkWKhyu2jBWAv7a25SO5E?= =?us-ascii?Q?Ax79UXW9tNmDcBL0l4R4dHKEwzCH0R5Nk1iIgwC01vB/TaSUQfcKrZYyEpNx?= =?us-ascii?Q?jNb1PCnPLjPz4ICg7QnXnKh3IY7V3QyzmBos6uHWEBcNqqUleDB6X8wUl5SC?= =?us-ascii?Q?q2wgUG7KXOD7rMDODVzjIYLlvcezGPHRIzFMT0BMs6QUrluvpHSQ6sHCDY39?= =?us-ascii?Q?3g23TwOoRH23uRDyvOMxGyL6o2gHQSaLoTgYzBKcec61vNpxDP3WjQ9GomWw?= =?us-ascii?Q?qD6cqRfDvNXX2ftKw1Q851igESF//f0GDyUO6JMR2A5aq+h96f9Mwnsjm+4j?= =?us-ascii?Q?jJXPeswjtxYh2X+PdjqE2x3UQpM1R/ykhy5qb9zepmhx0Bh4LxQEV3l7xDjg?= =?us-ascii?Q?tDpHrG9QPrZFzLGNE3ZrkNUMLbNi7yEyZCFLB4kOlTSMs4VErj1E1mFir11J?= =?us-ascii?Q?qJqvdvpDn64J/XDNbdk+Z5FF4ODALQyRKIvsejLsEa71WQgGQ7iwo+Gow1m3?= =?us-ascii?Q?xwnrZJ05cEIoapsMhpLTgl3dPuJnYo+6G4yU4YpeT1Farp/s/uRAinUsCoEp?= =?us-ascii?Q?Rmrb61fwFHmU7kPom1VqVBd6iW6P18F1Fb1SgFo0tnK2zMb073K3UgbWsbTh?= =?us-ascii?Q?+tGg/nBVmPpdSOXVHuRmyIIeyuxB6HEFQ8lm5vXKqOA23miQWQa9v3SWgxFE?= =?us-ascii?Q?ulkwdeF489qklAqIKpi7vVKbDaWtG22Akg4RiHGc+jXsIsW+/Z1LB1YQI9gm?= =?us-ascii?Q?0cOP7RUizZAHqBEWaktBP+ba0XwP20y6sNtGMDTJtrFfmCLg0cdFKgS8uInV?= =?us-ascii?Q?m8aOIQ2efGjU2X2Qp5iPSzUUPOCDEH3W7yPMqZP7zU8rZcCOn5K/+vpOdRfK?= =?us-ascii?Q?xRRFaziCZI3arK3RUWZ8VhlRjsy4F3N2IGhi9tz0eYLN+wI2KNZkf2wNMQd+?= =?us-ascii?Q?wVArwAc96fbhcZgrcRcTQ8WE6O2yVtHQMVS+0m4qfFUTCTbJJ7mQvNGU9ZJ2?= =?us-ascii?Q?26tev6OVrt46fQZ5E1N860l+4sc3G2+7inZ/mFMG?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3cf7a31c-ed95-4274-576c-08dd1a436c84 X-MS-Exchange-CrossTenant-AuthSource: SN7PR12MB6838.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Dec 2024 00:25:04.3488 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: dDf2MeYXZ63oEXToQ6XcfWyKfZ0Ntgr5TAmpngNQwMAAcS6RgZ6cB9AHWUr5dYwtFZE6KQJmNmDC9G5+t/Nsmw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6322 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: DJUJZGCPHIAU4JPFPIF2MNVLMBU7Q6LW X-Message-ID-Hash: DJUJZGCPHIAU4JPFPIF2MNVLMBU7Q6LW X-MailFrom: nathanc@nvidia.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: Nicolin Chen , Shameerali Kolothum Thodi , Nathan Chen X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: From: Nathan Chen via Devel Reply-To: Nathan Chen X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1733963350505116600 Content-Type: text/plain; charset="utf-8" Implement a sub-test in qemuxmlconftest that mocks the scanning of sysfs to determine how many "nestedSmmuv3" devices to assign to the VM when "nestedSmmuv3" IOMMU model is parsed from the VM definition. Add a VM definition example with an associated qemu command line that exercises the detection of "nestedSmmuv3" IOMMU model and auto-creation of PXB controller= s and "nestedSmmuv3" devices. Signed-off-by: Nathan Chen --- src/conf/domain_conf.c | 2 +- src/conf/domain_conf.h | 2 + src/libvirt_private.syms | 2 + tests/meson.build | 1 + .../iommu-nestedsmmuv3.aarch64-latest.args | 38 ++++++++++++ .../iommu-nestedsmmuv3.aarch64-latest.xml | 61 +++++++++++++++++++ tests/qemuxmlconfdata/iommu-nestedsmmuv3.xml | 29 +++++++++ tests/qemuxmlconftest.c | 4 +- tests/virnestedsmmuv3mock.c | 57 +++++++++++++++++ 9 files changed, 194 insertions(+), 2 deletions(-) create mode 100644 tests/qemuxmlconfdata/iommu-nestedsmmuv3.aarch64-latest= .args create mode 100644 tests/qemuxmlconfdata/iommu-nestedsmmuv3.aarch64-latest= .xml create mode 100644 tests/qemuxmlconfdata/iommu-nestedsmmuv3.xml create mode 100644 tests/virnestedsmmuv3mock.c diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 46f9b9b0cf..d8b473854e 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -22491,7 +22491,7 @@ virDomainDefAddImplicitVideo(virDomainDef *def, vir= DomainXMLOption *xmlopt) return 0; } =20 -static int +int virDomainDefAddImplicitNestedSmmuv3(virDomainDef *def) { // Get the number of host-level SMMUv3 instances diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index edde9b63d6..8e7e8166e3 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -3873,6 +3873,8 @@ bool virDomainDefCheckABIStabilityFlags(virDomainDef = *src, int virDomainDefAddImplicitDevices(virDomainDef *def, virDomainXMLOption *xmlopt); =20 +int virDomainDefAddImplicitNestedSmmuv3(virDomainDef *def) G_NO_INLINE; + virDomainIOThreadIDDef *virDomainIOThreadIDFind(const virDomainDef *def, unsigned int iothread_id); virDomainIOThreadIDDef *virDomainIOThreadIDAdd(virDomainDef *def, diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index c931003fad..2527f0844a 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -312,6 +312,7 @@ virDomainCryptoTypeTypeFromString; virDomainCryptoTypeTypeToString; virDomainDefAddController; virDomainDefAddImplicitDevices; +virDomainDefAddImplicitNestedSmmuv3; virDomainDefAddUSBController; virDomainDefCheckABIStability; virDomainDefCheckABIStabilityFlags; @@ -531,6 +532,7 @@ virDomainMemorySourceTypeFromString; virDomainMemorySourceTypeToString; virDomainMouseModeTypeFromString; virDomainMouseModeTypeToString; +virDomainNestedSmmuv3DefNew; virDomainNetAllocateActualDevice; virDomainNetAppendIPAddress; virDomainNetARPInterfaces; diff --git a/tests/meson.build b/tests/meson.build index 0d76d37959..d3b9d4612b 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -177,6 +177,7 @@ if conf.has('WITH_QEMU') { 'name': 'qemuhotplugmock', 'link_with': [ test_qemu_driver_lib, test= _utils_qemu_lib, test_utils_lib ] }, { 'name': 'qemuxml2argvmock' }, { 'name': 'virhostidmock' }, + { 'name': 'virnestedsmmuv3mock' }, ] else test_qemu_driver_lib =3D [] diff --git a/tests/qemuxmlconfdata/iommu-nestedsmmuv3.aarch64-latest.args b= /tests/qemuxmlconfdata/iommu-nestedsmmuv3.aarch64-latest.args new file mode 100644 index 0000000000..bf094dd20a --- /dev/null +++ b/tests/qemuxmlconfdata/iommu-nestedsmmuv3.aarch64-latest.args @@ -0,0 +1,38 @@ +LC_ALL=3DC \ +PATH=3D/bin \ +HOME=3D/var/lib/libvirt/qemu/domain--1-guest \ +USER=3Dtest \ +LOGNAME=3Dtest \ +XDG_DATA_HOME=3D/var/lib/libvirt/qemu/domain--1-guest/.local/share \ +XDG_CACHE_HOME=3D/var/lib/libvirt/qemu/domain--1-guest/.cache \ +XDG_CONFIG_HOME=3D/var/lib/libvirt/qemu/domain--1-guest/.config \ +/usr/bin/qemu-system-aarch64 \ +-name guest=3Dguest,debug-threads=3Don \ +-S \ +-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/va= r/lib/libvirt/qemu/domain--1-guest/master-key.aes"}' \ +-machine virt,usb=3Doff,gic-version=3D2,dump-guest-core=3Doff,memory-backe= nd=3Dmach-virt.ram,acpi=3Doff \ +-accel tcg \ +-cpu cortex-a15 \ +-m size=3D1048576k \ +-object '{"qom-type":"memory-backend-ram","id":"mach-virt.ram","size":1073= 741824}' \ +-overcommit mem-lock=3Doff \ +-smp 1,sockets=3D1,cores=3D1,threads=3D1 \ +-uuid 1ccfd97d-5eb4-478a-bbe6-88d254c16db7 \ +-display none \ +-no-user-config \ +-nodefaults \ +-chardev socket,id=3Dcharmonitor,fd=3D1729,server=3Don,wait=3Doff \ +-mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol \ +-rtc base=3Dutc \ +-no-shutdown \ +-boot strict=3Don \ +-device '{"driver":"pxb-pcie","bus_nr":254,"id":"pci.1","bus":"pcie.0","ad= dr":"0x1"}' \ +-device '{"driver":"pxb-pcie","bus_nr":252,"id":"pci.2","bus":"pcie.0","ad= dr":"0x2"}' \ +-device '{"driver":"pxb-pcie","bus_nr":250,"id":"pci.3","bus":"pcie.0","ad= dr":"0x3"}' \ +-device '{"driver":"pcie-root-port","port":32,"chassis":4,"id":"pci.4","bu= s":"pcie.0","addr":"0x4"}' \ +-audiodev '{"id":"audio1","driver":"none"}' \ +-device '{"driver":"arm-smmuv3-nested","bus":"pci.1"}' \ +-device '{"driver":"arm-smmuv3-nested","bus":"pci.2"}' \ +-device '{"driver":"arm-smmuv3-nested","bus":"pci.3"}' \ +-sandbox on,obsolete=3Ddeny,elevateprivileges=3Ddeny,spawn=3Ddeny,resource= control=3Ddeny \ +-msg timestamp=3Don diff --git a/tests/qemuxmlconfdata/iommu-nestedsmmuv3.aarch64-latest.xml b/= tests/qemuxmlconfdata/iommu-nestedsmmuv3.aarch64-latest.xml new file mode 100644 index 0000000000..0aa9296eaa --- /dev/null +++ b/tests/qemuxmlconfdata/iommu-nestedsmmuv3.aarch64-latest.xml @@ -0,0 +1,61 @@ + + guest + 1ccfd97d-5eb4-478a-bbe6-88d254c16db7 + 1048576 + 1048576 + 1 + + hvm + + + + + + + cortex-a15 + + + destroy + restart + destroy + + /usr/bin/qemu-system-aarch64 + + + + + +
+ + + + +
+ + + + +
+ + + + +
+ +