[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 23/23] doc/arm: vIOMMU design document
- To: Milan Djokic <milan_djokic@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: abhash <a-kumar2@xxxxxx>
- Date: Tue, 28 Jul 2026 16:28:49 +0530
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 198.47.21.194) smtp.rcpttodomain=kernel.org smtp.mailfrom=ti.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=ti.com; dkim=none (message not signed); arc=none (0)
- 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=TibgPS++9FfXpZf9mM3lLS9tHvMhA0yWBeGVgpWpBxQ=; b=Xh4/gl7mmJF9agXlh8691C3bekEwBk1ptwxmkUycXzsugAEa1bnsTrO+UPtN7uCRMAqAHrRcqe/8G/HBVXOO4xJzcxDFI6IgBhmrRDEqciIEn1IqIPXnjkuogIFxLodHk0aC0HZpNag3A7IOErkymYB2slBarED4KUwVtg0XcQ9SwXuw1fbI0A//+wNa5JBoJrOZ6YM+dCOxfksvba26UpvmIACAPIu6iUNoySHbCtQZiTFpQBKXBLRm8JqzjMsGuL+opk/8k0rlHGoFovWwngPKr5EcdEMQ6lKTQ65E0K+Q26dKVLiKf+GKLLYtt4YRFFPVNc2g+1aIy5aQNWKMrg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=V8Z9iUNUJluFH7Tec6jJv12GdR/kRI5oeoBS6YUi10pmznrf+fC10efG5J5dCRbEduE06kletbGnDyFw0pHRCTHpIBnWWJFnGSlN2q6la88UIb1U2lwCT/+IYwFg6Kne6Pw4QDN9Akuf3nDFU1II/6gf2en9X6c0TVevLcuarbcWWI5kTD1eJibHaQwSMWgy3nQVX1Y/w75NXVmeOVlf/pTe0+UzG5KC1GrnX1CM9irD5VCGPYJX8XDQwMi1ePX1+TFMM0faVVfpORHR+6rHmVOfJq6kT2UVXgBBFJC5lxiTXWCxspj8fDqvNc8q907QzR3jRsTOsW7HBiGGJLhZWg==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=proofpoint-05-2026 header.d=ti.com header.i="@ti.com" header.h="CC:Content-Transfer-Encoding:Content-Type:Date:From:In-Reply-To:Message-ID:MIME-Version:References:Subject:To"; dkim=pass header.s=selector1 header.d=ti.com header.i="@ti.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
- Delivery-date: Tue, 28 Jul 2026 10:59:24 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
+Performance Impact
+==================
+
+With iommu stage-1 and nested translation inclusion, performance
+overhead is introduced comparing to existing,
+stage-2 only usage in Xen. Once mappings are established, translations
+should not introduce significant overhead.
+Emulated paths may introduce moderate overhead, primarily affecting
+device initialization and event/command handling.
+Testing is performed on Renesas R-Car platform.
Hi Milan,
I tested this series on a TI platform. I was not able to get the DMA
test inside a DOM1 guest
to work with nested virtualization.
On the top level, my changes are:
- Enabled CONFIG_VIRTUAL_IOMMU and CONFIG_VIRTUAL_ARM_SMMU_V3 in Xen
- Added viommu=true in xen-bootargs
- Added a "smmu" node in my DOM1 passthrough node, so that it can be
replaced by the viommu.
- Added "iommus" for my DMA controller.
I can see that the smmuv3 is probed successfully inside of DOM1 and my
dma-controller is added to the iommu group.
""
[ 0.161594] arm-smmu-v3 4040000.iommu: probing device
[ 0.162067] arm-smmu-v3 4040000.iommu: ias 48-bit, oas 48-bit
(features 0x0000020d)
[ 0.162993] arm-smmu-v3 4040000.iommu: allocated 65536 entries for cmdq
[ 0.163730] arm-smmu-v3 4040000.iommu: allocated 32768 entries for evtq
[ 0.164281] arm_smmu_device_reset
[ 0.164559] ARM_SMMU_GBPA reg = 0
[ 0.164924] smmu->evtq.q.q_base = 45a0000f
[ 0.165609] platform 30100000.dma-controller: Adding to iommu group 0
""
Did you have any changes in the kernel tree as well?
Could you provide the testing setup that you used?
Best Regards,
Abhash
|