|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH V5 2/3] libxl/arm: Add handling of extended regions for DomU
On 07.10.21 13:57, Ian Jackson wrote: Hi Ian.
Yes, you could say that. Below are reasons why we need the hypervisor to provide these ranges on Arm from my understanding. [leaving aside hotplug case]1. [Related to Dom0] Dom0 is mapped 1:1 on Arm, but there might be some guest mapping, mapped identically in P2M (GFN == MFN) for PV drivers to work. So Xen has everything in hand to be able to choose extended regions (which won't clash with other resources). 2. [Related to every domain] Not all device I/O regions might be known (registered) by the time the guest starts creating grant/foreign mappings, so guest cannot guess by itself what is really unused, but the entity which creates the domain (Xen, toolstack) knows these details in advance to be able to choose extended regions (which won't clash with other resources). Two more things about this being ARM-specific. Even if x86 was affected exactly by the same problem, the code to expose the safe memory ranges to DomU is arch-specific (currently device tree.) Also the code to calculate the safe memory ranges is arch-specific as it depends on the DomU memory layout which is arch-specific.This demonstrates that the implementation is arch-specific. But one of libxl's functions is to abstract away implementation details and provide an interface that can be used to "do the right thing". Ian. -- Regards, Oleksandr Tyshchenko
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |