ARM-Xen customization of stage two translation.
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
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]
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
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,
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