All of lore.kernel.org
 help / color / mirror / Atom feed
* smmu-related clarification
@ 2020-11-19 13:16 Jorge Pereira
  2020-11-19 15:25 ` Bertrand Marquis
  0 siblings, 1 reply; 2+ messages in thread
From: Jorge Pereira @ 2020-11-19 13:16 UTC (permalink / raw)
  To: 'xen-devel@lists.xenproject.org'

[-- Attachment #1: Type: text/plain, Size: 561 bytes --]

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?
  *   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?

Thanks,
Jorge



[-- Attachment #2: Type: text/html, Size: 5129 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: smmu-related clarification
  2020-11-19 13:16 smmu-related clarification Jorge Pereira
@ 2020-11-19 15:25 ` Bertrand Marquis
  0 siblings, 0 replies; 2+ messages in thread
From: Bertrand Marquis @ 2020-11-19 15:25 UTC (permalink / raw)
  To: Jorge Pereira; +Cc: xen-devel

Hi Jorge,

> On 19 Nov 2020, at 13:16, Jorge Pereira <jorge.pereira@nxp.com> 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-19 15:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-19 13:16 smmu-related clarification Jorge Pereira
2020-11-19 15:25 ` Bertrand Marquis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.