[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] xen/arm: smmu: Set/clear IOMMU domain for device
- To: Oleksandr Andrushchenko <andr2000@xxxxxxxxx>
- From: Rahul Singh <Rahul.Singh@xxxxxxx>
- Date: Tue, 17 Aug 2021 10:38:17 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; 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-SenderADCheck; bh=/7F8gfvnwmUxiQcItD5/pScr+v8xAjhIUmd/k4Jkob8=; b=hNJXHvLXXGDCnvodhrLbnilTTFoTuGb9Fet+iejaABNNBSi6rwhjRCDQwaSd0IPpvlHjC5d7ooKAZZ7fuOAHr9kcAAJeq+ZLAGEVBD31eWxN9UT8Ttdv9edmShfXPZpzf0BW2X24SZyi9h9kxPgMiV2nG62ZA32lHiLqt1E3d1NOzSx8KNnzEDv99ZBXKdTdW/q2XAH0El5iRH2UbtMqCq3apLzge05PMeHl21oYH45GcZOXZ+PS4a/AjcvJ7k8b+3J2G38u+SGPWl6xwJkQwJ8ugkAKFOa66+7UQb6MPN5YxWAgRah8NcJdOIxdHc1xHmvrD9DDXG2et4j0IjvN5Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jkRD1NOunQ0FzBF/krbvAPtwibm20s/u4Tj8/wBRk/iG+CQiq8ZkAm6VjyQf769/enofJezadO379dBpRTJM1LWIdW+2LDlsccg2161TJnWEpPnWsbIbwwBy2AU2kBjth8iKiFhTaR9lQEYfBqQuQAq7tGI4U2yX14bw3emuKUP1z0Wpi/jkKH9E4L3Dx9/4i1BIgfQjA3aIElP1Qabm80sWNm5BIQ06zKOIOyCdQ8CsFpbSAO4Mq2ul+ZhsLFMH2RL9pGrGZV0NNXYdoCQV75+LfNaJIwfy4ubgN6ok5FPngh/GiRghvbZORpXlZ7cymuxHNCXrL37ExPUftlaw6A==
- Authentication-results-original: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=arm.com;
- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>, Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>
- Delivery-date: Tue, 17 Aug 2021 10:38:37 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=arm.com;
- Thread-index: AQHXjrFrTVH+aiOPq0+hBS5mdWMgaKt3ipeA
- Thread-topic: [PATCH] xen/arm: smmu: Set/clear IOMMU domain for device
Hi Oleksandr,
> On 11 Aug 2021, at 2:03 pm, Oleksandr Andrushchenko <andr2000@xxxxxxxxx>
> wrote:
>
> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
>
> When a device is assigned/de-assigned it is required to properly set
> IOMMU domain used to protect the device. This assignment was missing,
> thus it was not possible to de-assign the device:
>
> (XEN) Deassigning device 0000:03:00.0 from dom2
> (XEN) smmu: 0000:03:00.0: not attached to domain 2
> (XEN) d2: deassign (0000:03:00.0) failed (-3)
>
> Fix this by assigning IOMMU domain on arm_smmu_assign_dev and reset it
> to NULL on arm_smmu_deassign_dev.
>
> Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
> Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>
Reviewed-by: Rahul Singh <rahul.singh@xxxxxxx>
Regards,
Rahul
|