Skip to contentSkip to conversation

ARM-Xen customization of stage two translation.

DISCUSSION Mazen Ezzeddine (Student) 2 participants 5 messages May 20, 2015 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Dear all,

I am using hardware assisted XEN on ARM cortex A-15, could you please hint me on the below:

I want the stage two translation from IPA to PA through the stage two translation to exclude a particular small contiguous region (some physical frames) of the physical memory ? is this achievable? could you please hint me on how can I accomplish?

Please share your experience experts.

Thank you so much.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw
Quoted 1 line · Mazen Ezzeddine (Student)

Dear all,

Hello,

Quoted 9 lines

I am using hardware assisted XEN on ARM cortex A-15, could you please hint me on the below:

I want the stage two translation from IPA to PA through the stage two translation to exclude a particular small contiguous region (some physical frames) of the physical memory ? is this achievable? could you please hint me on how can I accomplish?

Is this physical region belong to the RAM or a device?

Regards,

Signature · 1 line
Julien Grall

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

Hello,

Please keep xen-devel CCed and avoid to top-post.

Quoted 3 lines · Mazen Ezzeddine (Student)

Thanks Jlien,

Mainly it belongs to a device. I can't see why it would be problematic for a device and not for RAM or vice-versa? could you please hint me on what is the difference?

Because you have to do it differently.

For avoiding DOM0 to use a device, you can blacklist it per platform (see blacklist_dev xen/arch/arm/platforms/vexpress.c). While for the RAM you can update your device tree (see /memreserve/).

Regards,

Signature · 1 line
Julien Grall
#4 lore raw

Thanks so much.

I will ensure to keep xen-devel cced and avoid top-post. Sorry and thanks for notifying me.

However, my use-case will involve a scenario where the the page frames excluded from the second stage translation are to be allocated on the fly (through a slightly modified second stage translation) to a special guest when scheduled. Does mreserve work in such scenario?

Best regards,

#5 lore raw
Quoted 6 lines · Mazen Ezzeddine (Student)

Thanks so much.

I will ensure to keep xen-devel cced and avoid top-post. Sorry and thanks for notifying me.

However, my use-case will involve a scenario where the the page frames excluded from the second stage translation are to be allocated on the fly (through a slightly modified second stage translation) to a special guest when scheduled. Does mreserve work in such scenario?

Give a look to {,un}map_mmio_regions and guest_physmap_add_entry/guest_physmap_remove_page in xen/arch/arm/p2m.c

regards,

Signature · 1 line
Julien Grall