[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 14/21] xen/arm: vIOMMU: IOMMU device tree node for dom0
- To: Rahul Singh <rahul.singh@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
- Date: Sat, 14 Jan 2023 12:14:26 -0500
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=arm.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
- 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=wz3KoBol57cyMe/+ZKbAqUlUeRlvIvDF9TO+e1H4Wlw=; b=WuXkhSXfE9zJVSUSkGY1rePj3xiWCPivz3wWzfAG3W9rHhdIeqG2u2yPj4SGlzC2e5bWpTgTc98OLwu0PSphd8kIcKE327nIBDbShgbB9qb9VFdDn5/Mfvgc8LP+OX+TRJgz/3cdTjRDPON/tABLvKTJhuhTMlykwupTtzDEGPMVYdX3HnoylDpCHhOUals74b/fRxaHYARs60FlIpajTuvI2DImw2y7V2CDDOTysSVFRmzPBBma/rqBRz35e0Ke/ANkMO8ChyDQ0Nd3d2My9ibWzUEcESP4tb+cbb8SEbTAnr5J9GJ2oBC6R4AP4nhsavhuwZ4o1FW7qhNPu0BK6w==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U09ZFGpT4xGD2M5j0l7EJan/vdLmpxFpItQ2edpQR01RM3YNubvOOYILitpJb6FimQrzdZqbxJRs/Qj93PfdpEf5BWCb+DpHYehhtIQ5ghHEJmcejwP9yBCUpDMaBDHc/1rV1OuUzQl9ha2MVw49cxezso89h3/tAf8zF55/wDYKgRceaBHAXY+vi6Ld0znMBlCwu06GIhL13UNq3WV6sxHJshuO7WkxXYqsaWdZgIHb4P0G+3HRtsryfZs0hR+76aiJZ3vNZhxWPQlD1QzfRJVCcNOFFFmZlffMjSbph17xEWlc1pjOrTPWIHtqzuly21YP9j07UYWGVPSajbdJqg==
- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Sat, 14 Jan 2023 17:14:49 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 12/1/22 11:02, Rahul Singh wrote:
> XEN will create an IOMMU device tree node in the device tree
> to enable the dom0 to discover the virtual SMMUv3 during dom0 boot.
> IOMMU device tree node will only be created when cmdline option viommu
> is enabled.
>
> Signed-off-by: Rahul Singh <rahul.singh@xxxxxxx>
> ---
> xen/arch/arm/domain_build.c | 94 +++++++++++++++++++++++++++++++
> xen/arch/arm/include/asm/viommu.h | 1 +
> 2 files changed, 95 insertions(+)
>
> diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
> index a5295e8c3e..b82121beb5 100644
> --- a/xen/arch/arm/domain_build.c
> +++ b/xen/arch/arm/domain_build.c
> @@ -2233,6 +2233,95 @@ int __init make_chosen_node(const struct kernel_info
> *kinfo)
> return res;
> }
>
> +#ifdef CONFIG_VIRTUAL_IOMMU
> +static int make_hwdom_viommu_node(const struct kernel_info *kinfo)
This should have the __init attribute
|