[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: smmu-related clarification
- To: Jorge Pereira <jorge.pereira@xxxxxxx>
- From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
- Date: Thu, 19 Nov 2020 15:25:34 +0000
- Accept-language: en-GB, 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=fnRy+fxV9dnRf6NefZ4V+5c/BTUDI2EIrMkGJmEKFTQ=; b=abENyA61P2vmdfwGM75bt20qEyXhRETyOlm26zXR6NJRfeFvYPLR6+IfQPXaJ3QFHl086YJDk+pd6WJdtLP0pg5BzkFGpSc2IsRm55DKml1ko+E8JXMfQk5QziNoWwNjreUMO/zIJYaLOMP92t7pGWazCwxnYTt3TLFSz65LeplqxH3UdcL75kuCdmLxt7TSUnJkWOun2xKxhgg1EtYmGuqZRaqEAckjU8YHYgi1x5HE/C4CfuFjBwfWnBONpWX0+yJbMoBjC8IMqzPTri/ggSGI9cRUNLOVDounnjvYZeQkmdOe0VEeGoGDDgYaRH/EJIdnD8D+jPx7OB3+phR24w==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JLIM1IEVW/g1W9lifEZe1Q42fe9uWHwiilTG3rqUOAwkRdxEQhXI7526+wNy9NQCB/tcg2Q540lLhQ9bmX5vs2IK9RztMbRP8FQNJrv44y16PeNDclAhc/M7TqMFswCHFmoJ71tdTUe6Enb36Y+voTEarWv2zH0Tf/7RfvPz6VugRXN70zvVvEzwGt6MMMOwCA1s0BMofoEaxfRaVzAA7ELblR9XuKxMLXwN1agA6/9Lrig1j0IHE+NKq7AiN0yvGZHKnkJgIL0GVbzBwhhf5JL8jucF0DFqmUXVHgcp0gJL6SwZhOL0HMALqhyuCHnskWmMiJDqfoViYt+MzTyDfg==
- Authentication-results-original: nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=arm.com;
- Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Thu, 19 Nov 2020 15:26:18 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=arm.com;
- Thread-index: Ada+dgwvLpGgRoDvTYGCt70DgFD1qgAEi0YA
- Thread-topic: smmu-related clarification
Hi Jorge,
> On 19 Nov 2020, at 13:16, Jorge Pereira <jorge.pereira@xxxxxxx> wrote:
>
> Hi All,
>
> I’m having some smmu-related issues, I need help.
>
> So, in my use-case scenario I have two linux guests running in parallel –
> dom0 and domU-. I have to enable the smmu because I want to passthough
> devices to domU.
>
> Would be great if you help me to clarify the following questions:
> • if I enable SMMU, it will applies not only to domU but also to
> dma-capable devices assigned to dom0?
yes it will apply to all your domains.
> • Do I have to add all smmu-masters of dom0 in device tree as well? Or
> since dom0 has 1:1 mapping I don’t have to do anything?
smmu is not only used for remapping but also to protect DMA accesses which
means for dom0 it will use 1:1 mapping but will limit DMA to the memory
accessible to dom0.
So you will need to add all required smmu information to all devices you need
otherwise devices will be denied any DMA access.
Regards
Bertrand
>
> Thanks,
> Jorge
|