|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [RFC] xen/arm: domain_build: introduce dom0_lowmem bootargs
On 13/09/16 14:12, Peng Fan wrote: Hi Julien, On Tue, Sep 13, 2016 at 01:59:01PM +0100, Julien Grall wrote:Hello Peng, On 13/09/16 13:55, Peng Fan wrote:On AArch64 SoCs, some IPs may only have the capability to access 32bits address space. The physical memory assigned for Dom0 maybe not in 4GB address space, then the IPs will not work properly. Introduce dom0_lowmem bootargs, user could pass "dom0_lowmem=xx" to xen. It means how much memory user would like to be allocated in lower 4GB memory space. If there is not enough memory for dom0_lowmem, higher memory will be allocated. Thinking such a memory layout on an AArch64 SoC: Region 0: 2GB(0x80000000 - 0xffffffff) Region 1: 4GB(0x880000000 - 0x97fffffff) If user would like to assign 2GB for Dom0 and 1GB of the 2GB memory in Region 0, user could pass "dom0=2048M dom0_lowmem=1024M" to xen. Signed-off-by: Peng Fan <peng.fan@xxxxxxx> Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx> Cc: Julien Grall <julien.grall@xxxxxxx> --- This patch is to resolve the issue mentioned in https://lists.xen.org/archives/html/xen-devel/2016-09/msg00235.html This patch not tested on latest 4.8-unstable, I only tested similar patch on xen 4.7 on AArch64 platform.Please test any patch send upstream on 4.8-unstable. The code may have changed. How do you make sure that DomU will program the device with the correct address? A malicious DomU could decide to use a physical address belonging to another DomU or even Xen and would be able to read/write on it. So if a device needs to access the physical memory it either needs to be protected by an SMMU or Xen/DOM0 is programming the device on behalf of the guest. All other solutions are IHMO unsafe. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |