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

Re: [PATCH v1 2/3] xen/dom0less: refactor architecture-specific DomU construction


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • Date: Thu, 15 May 2025 08:46:38 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none
  • 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=SxxI1N4Y+6xmDawm3ZS8BKZzhQdt9UuahaoFkuRjb6w=; b=ER85F/EjG1QGKHUUGFqTA2xi5R5ZMOMAqd+Y2Aw6Ag64IDIc/AlyMYzofKzZjkhhmZGmjLebpIb8ByJ/QuahZLFers4XlLGSd3II9bBEJh0IU/sRb8y3E0dkJTm7iP0gcaKtc007mMgplw/lME2wujHKf6uK/SuUQdTvx1TtCAQ3yuGt0vMqAg3NQQY10dFo93ulVTXRaoINHeSjwVPZY4+bcx7RQrw+7KvxAigNyIjyClNkHbT7GGlEfR7KMXw9ibTESjUVAcKhR2E+qF+HCng7uA6gfq88eEUGhwIt2JeKNDhhhpXbn6VhcoD/AYD06i1ImX/W6YmC+cbJa/2vuQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=iMplpcBxrK6kQqARv4FaC7Rkw7CxR3uGfZU8haLro7zdC4ZscZQdNMECkbm0MxhtyO2c9miUI97LKdaB37fNZMs8uuD40pYcBlYxShITLIFGx5nW7zexorutM8j5eJciXi80Rjz8uPLji1P+8y3U2vykRsGNJsJuzFNcmkVbydDhtGbFBzBf0DeC1ZBIqv1myx4BrtuTiIPPRbqTIgR21AJH3q0ztRmTDpwGT3YBqEX00qtzM7sWhztsyu1AegSV8IjtzxW/vWtYcse0BnVsXnZu36aulk9dpKqfOyYCU3vUwTf0JDjgi8qG8bc/7rEvJjur5Pmkrm/ZdVbhE95KBA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
  • Cc: Julien Grall <julien@xxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Thu, 15 May 2025 06:46:49 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 15/05/2025 02:07, Stefano Stabellini wrote:
> On Wed, 14 May 2025, Orzel, Michal wrote:
>>> Sure. But my point is rather more that static memory is not a feature 
>>> described by the Arm Arm. Instead, it is a feature of Xen that is ti to 
>>> device-tree. So inherently there is no reason to be implemented in arch/arm.
>> I agree, it can and should be made common. But exposing only callers makes no
>> sense at all for me. Callers should be exposed together with feature code 
>> movement.
> 
> [...]
> 
>>>>> back to Arm for then moving back to common potentially in a few weeks 
>>>>> time.
>>>> What about static memory code? With the recent Oleksii code movement, the 
>>>> inline
>>>> helpers like allocate_static_memory() became unreachable when the feature 
>>>> is
>>>> disabled and the main purpose for helpers was to avoid ifdefery.
>>>
>>> Sorry I am not sure which part you are referring to.
>> With the current code, allocate_static_memory(), assign_static_memory_11()
>> callers (that were moved to common) are protected with #ifdef. This causes 
>> the
>> helpers defined in case CONFIG_STATIC_MEMORY is not defined to be unreachable
>> (see static-memory.h).
> 
> At a high level I agree with Julien, this is the kind of feature that
> should be common. In fact, I would even say that I consider the related
> device tree bindings common.  But looking at the code movements and the
> #ifdef's, I think that as of today, this patch series is improving
> things.
I've said multiple times already that I also agree that static mem/shmem should
be common. It was not the point of this discussion. My only concern is that it
should be done in a proper way and not in 5% like it was done recently that also
resulted in issues I mentioned above. Therefore I also (hence my tag) believe we
should accept it.

~Michal




 


Rackspace

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