[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v12 03/12] xen/arm: permit non direct-mapped Dom0 construction


  • To: Carlo Nonato <carlo.nonato@xxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Mon, 16 Dec 2024 18:01:18 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=minervasys.tech smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=v/opseh/KZDIsGsMACfVtPaEUrDMyjerWeUE+G3JzKw=; b=UEYK3aliDOJxdYgVAWjsf8vbfxVOt4OwtunR8VkEgl1N0GgndyCZ7FP1e3TU9WZwrTcZy4rp7Vqfy8uo6FKfq9z6wOjt1Mnf8hISlb2rSzk6nERrYyKg3VnlU1Aqjdrb8qjKPpOCHB7miMZdY9ofXenSdhXASbYqWeXZtisLPYg2sLAo9PJ6ZDgMGVe/ubQ+Sm671IF1SAmfVUYJJ/BboK2N5tA9ogV5Be1/Jn+FjEMcLeGOCqcrJzjsyJJjwHu3hI5xTzA+TWM5jDqQO0Q7tykLBZC2DAbRV35DUwUs32uUFjESk9ZmIhlcUxKewLAR0N8kmqtIsVExkCmZpOOkbw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MIdEGTsZ/MjCWE6LLtVlTCbgFyfYvrQ00guAWAKzjgaQh/xpTmzMTNBCItdpML1qUgCyLIILUYn0L65P0R8UHS89YLg2Ush53tE5RaRnIQpvPCvPEACXTGR8dhcNvCydgJDCKgsFVx/SaVhBce5UGUvcB4aLECxpOsvDa0tm/OEs2597fy0zPErXgDdZLlvrkWFi0wqDuVO3w94ZGZHAjBCWo6hFeWV7W79DFICvmptsR54UyV/kQE2cs2GqFQGna+x7BCNWvvuMEag3jtwOuyCPWZVP7pygxNU1gBWaGOZuYNOYQBJ4yaGfL6ZAyU9H5F7CczAZKjACOuhO0msmPA==
  • Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, <andrea.bastoni@xxxxxxxxxxxxxxx>, <marco.solieri@xxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Mon, 16 Dec 2024 17:01:31 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 16/12/2024 16:51, Carlo Nonato wrote:
> 
> 
> Hi Michal,
> 
> On Mon, Dec 16, 2024 at 1:08 PM Michal Orzel <michal.orzel@xxxxxxx> wrote:
>>
>> On 13/12/2024 17:28, Carlo Nonato wrote:
>>>
>>> Cache coloring requires Dom0 not to be direct-mapped because of its non
>>> contiguous mapping nature, so allocate_memory() is needed in this case.
>>> 8d2c3ab18cc1 ("arm/dom0less: put dom0less feature code in a separate 
>>> module")
>>> moved allocate_memory() in dom0less_build.c. In order to use it
>>> in Dom0 construction bring it back to domain_build.c and declare it in
>>> domain_build.h.
>>>
>>> Adapt the implementation of allocate_memory() so that it uses the host
>>> layout when called on the hwdom, via find_unallocated_memory(). Take the
>>> opportunity to keep the parameter order consistent with
>>> rangeset_report_ranges() and move the membanks struct after the callback
>>> function in find_unallocated_memory().
>> Why? What benefit does this change (that is irrelevant to the goal of this 
>> patch) provide?
> 
> You're right, it's irrelevant to this patch. Do you think it can be done in a
> separate patch? If nothing else, find_unallocated_memory() appears to be
> called 2 times while rangeset_report_ranges() 11 times.
Leave it as is. I don't understand why you think find_unallocated_memory is 
supposed to follow some
special format like rangeset_report_ranges. Don't focus on things that are not 
relevant for now. Merging this series for
4.20 is more important.

Also, please trim down your replies.

~Michal




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.