xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [xen/arm]: Mapping physical memory to dom0/domU
@ 2019-05-29 14:06 Lukas Jünger
  2019-05-29 14:06 ` [Xen-devel] " Lukas Jünger
  2019-06-03 15:16 ` Julien Grall
  0 siblings, 2 replies; 4+ messages in thread
From: Lukas Jünger @ 2019-05-29 14:06 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 332 bytes --]

Hi all,

Is there a way to map a region of physical memory to dom0/domU?
Let's say I have a custom device mapped at that memory region and I want 
either dom0 or a domU to have full access to this device.
There seems to be a way to share memory between dom0 and a domU, maybe 
also between domU and domU.

Thanks,
Lukas


[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5388 bytes --]

[-- Attachment #2: Type: text/plain, Size: 157 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

* [Xen-devel] [xen/arm]: Mapping physical memory to dom0/domU
  2019-05-29 14:06 [xen/arm]: Mapping physical memory to dom0/domU Lukas Jünger
@ 2019-05-29 14:06 ` Lukas Jünger
  2019-06-03 15:16 ` Julien Grall
  1 sibling, 0 replies; 4+ messages in thread
From: Lukas Jünger @ 2019-05-29 14:06 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 332 bytes --]

Hi all,

Is there a way to map a region of physical memory to dom0/domU?
Let's say I have a custom device mapped at that memory region and I want 
either dom0 or a domU to have full access to this device.
There seems to be a way to share memory between dom0 and a domU, maybe 
also between domU and domU.

Thanks,
Lukas


[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5388 bytes --]

[-- Attachment #2: Type: text/plain, Size: 157 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

* Re: [xen/arm]: Mapping physical memory to dom0/domU
  2019-05-29 14:06 [xen/arm]: Mapping physical memory to dom0/domU Lukas Jünger
  2019-05-29 14:06 ` [Xen-devel] " Lukas Jünger
@ 2019-06-03 15:16 ` Julien Grall
  2019-06-03 15:16   ` [Xen-devel] " Julien Grall
  1 sibling, 1 reply; 4+ messages in thread
From: Julien Grall @ 2019-06-03 15:16 UTC (permalink / raw)
  To: Lukas Jünger, xen-devel



On 29/05/2019 15:06, Lukas Jünger wrote:
> Hi all,

Hi,

> Is there a way to map a region of physical memory to dom0/domU?

Yes, you can use the option 'iomem'.

> Let's say I have a custom device mapped at that memory region and I want either 
> dom0 or a domU to have full access to this device.

The page [1] will give you instruction how to passthrough a device.

> There seems to be a way to share memory between dom0 and a domU, maybe also 
> between domU and domU.

This can be done dynamically using grant-table. There are patches on the ML for 
static sharing.

Cheers,

> 
> Thanks,
> Lukas

[1] https://xenbits.xen.org/docs/unstable/misc/arm/passthrough.txt

> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xenproject.org
> https://lists.xenproject.org/mailman/listinfo/xen-devel
> 

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

* Re: [Xen-devel] [xen/arm]: Mapping physical memory to dom0/domU
  2019-06-03 15:16 ` Julien Grall
@ 2019-06-03 15:16   ` Julien Grall
  0 siblings, 0 replies; 4+ messages in thread
From: Julien Grall @ 2019-06-03 15:16 UTC (permalink / raw)
  To: Lukas Jünger, xen-devel



On 29/05/2019 15:06, Lukas Jünger wrote:
> Hi all,

Hi,

> Is there a way to map a region of physical memory to dom0/domU?

Yes, you can use the option 'iomem'.

> Let's say I have a custom device mapped at that memory region and I want either 
> dom0 or a domU to have full access to this device.

The page [1] will give you instruction how to passthrough a device.

> There seems to be a way to share memory between dom0 and a domU, maybe also 
> between domU and domU.

This can be done dynamically using grant-table. There are patches on the ML for 
static sharing.

Cheers,

> 
> Thanks,
> Lukas

[1] https://xenbits.xen.org/docs/unstable/misc/arm/passthrough.txt

> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xenproject.org
> https://lists.xenproject.org/mailman/listinfo/xen-devel
> 

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

end of thread, other threads:[~2019-06-03 15:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-29 14:06 [xen/arm]: Mapping physical memory to dom0/domU Lukas Jünger
2019-05-29 14:06 ` [Xen-devel] " Lukas Jünger
2019-06-03 15:16 ` Julien Grall
2019-06-03 15:16   ` [Xen-devel] " Julien Grall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).