[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 01/10] xen/arm: introduce domain on Static Allocation
On 15/06/2021 08:08, Penny Zheng wrote: Hi julien Hi Penny, -----Original Message----- From: Julien Grall <julien@xxxxxxx> Sent: Wednesday, June 9, 2021 6:47 PM To: Bertrand Marquis <Bertrand.Marquis@xxxxxxx> Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>; Julien Grall <julien.grall.oss@xxxxxxxxx>; Penny Zheng <Penny.Zheng@xxxxxxx>; xen- devel@xxxxxxxxxxxxxxxxxxxx; Wei Chen <Wei.Chen@xxxxxxx>; nd <nd@xxxxxxx> Subject: Re: [PATCH 01/10] xen/arm: introduce domain on Static Allocation On 09/06/2021 10:56, Bertrand Marquis wrote:Hi All,Hi,On 7 Jun 2021, at 19:09, Julien Grall <julien@xxxxxxx <mailto:julien@xxxxxxx>> wrote: Feel free to propose one. I suggested to use /reserved-memory because this is the approach that makes the most sense to me (see my reply above). TBH, even after your explanation, I am still a bit puzzled into why /reserved-memory cannot be leveraged to exclude domain region from the hypervisor allocator.I really tend to think that the original solution from Penny is for now the easiest and simplest to document.I can live with Penny's solution so long we don't duplicate the parsing and we don't create new datastructure in Xen for the new type of reserved memory. However...Just to confirm what I understand here, you are not only worrying about the duplication code imported in dt_unreserved_regions, but also must introducing another path in func early_scan_node to parse my first implementation "xen,static-mem = <...>", right? That's correct. On duplication code part, I could think of a way to extract common codes to fix, but for introducing another new path to parse, FWIT, it is inevitable if not re-using reserved-memory. ;/ I don't think this is inevitable. If you look at the code, we already share the parsing between reserved-memory and memory. AFAICT, the main difference now is the property to parse. Other than that, the content is exactly the same. So we could pass the name of the property to parse. Cheers, -- Julien Grall
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |