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

Re: [PATCH v1 02/29] xen/asm-generic: introduce stub header paging.h


  • To: Oleksii <oleksii.kurochko@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 23 Oct 2023 12:29:40 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=oNpN2Do1LmSoDh8/dS0736JwErDVTtV0NvfNFjq4qOQ=; b=aclIt9NT7HshJ9fqfUMThSZRcUeEXoMpvXVarUvT8Mq3YABSS+D2oZ2yKdgDX0ql082oc+/99UU+s4yhibTxBbgiQpPbGxCc95yadmui0KRY/0VuVFLW1D7yS7IFIQUcF/XAiWyPStOjzx8HmRMy+J511hbOY7X4HOEr+3dCW1QzgjE8FIWIJjhZdIeeayoqfGdEtOlh0uz3RCLQVYem+PzJlInsXaG5pLSFbWCRGGzY324Y188Hm/D/6izOiSML2MRvlAWBTuhJw0RaDEJ5WgEAi08vdIVnhlamm+elN6AmuERrC4PXiYJEKAS4kpZ0pSb0hkaHl2s+JyrMhPpb4Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hNtv8xKQtCh5glHrkOOiTLFp+LCoT2aRR0OT3i38OrltWA53G/k1bOUNq+4EBVcopXxvp/BUJhpeeXG1D5/VpSR2VwhpLiMoaPTe31d2eJ8R6KY5ZaQJStQveUhbZq6mG1f6t2B3nI5cfGeCegQQb4DKmwAqSvP1qhRV6PfJEkJ0iSc6afyeLURXVdcXq6yhb7PRHZlGSTAEc40Atdpw+qFkAk7AdqtHLyN/sfUuMPFM+0aTQ5xMI/GVaW4nXHTNYviM3cXWqrUv3QeWcXZUR/Vse1N75M4iLz79Aw0wFlQogEJIUD6C2YPXJv+2tqpfg/EcuTshn6iG2zOq0KZVAg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 23 Oct 2023 10:29:47 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 23.10.2023 11:40, Oleksii wrote:
> On Thu, 2023-10-19 at 11:05 +0200, Jan Beulich wrote:
>> On 14.09.2023 16:56, Oleksii Kurochko wrote:
>>> The patch introduces stub header needed for full Xen build.
>>>
>>> Signed-off-by: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
>>> ---
>>>  xen/include/asm-generic/paging.h | 17 +++++++++++++++++
>>>  1 file changed, 17 insertions(+)
>>>  create mode 100644 xen/include/asm-generic/paging.h
>>>
>>> diff --git a/xen/include/asm-generic/paging.h b/xen/include/asm-
>>> generic/paging.h
>>> new file mode 100644
>>> index 0000000000..2aab63b536
>>> --- /dev/null
>>> +++ b/xen/include/asm-generic/paging.h
>>> @@ -0,0 +1,17 @@
>>> +/* SPDX-License-Identifier: GPL-2.0-only */
>>> +#ifndef __ASM_GENERIC_PAGING_H__
>>> +#define __ASM_GENERIC_PAGING_H__
>>> +
>>> +#define paging_mode_translate(d)       (1)
>>> +#define paging_mode_external(d)                (1)
>>> +
>>> +#endif /* __ASM_GENERIC_PAGING_H__ */
>>
>> Looks okay, but wants accompanying by dropping (i.e. effectively
>> moving)
>> Arm's respective header. The description than also wants adjusting
>> (it
>> wasn't quite suitable anyway, as there's missing context).
> If I understand you correctly, I'll re-use ARM's header, but I am not
> sure I know how the description should be changed except that it can be
> more specific regarding which one header is introduced.

Well, first of all context is missing in "full Xen build" - PPC has recently
reached that point already, and both Arm and x86 have been fully building
for quite some time. And then, as said elsewhere, imo headers needed solely
for building (but being otherwise non-functional) shouldn't be introduced.
At which point it may make sense to give a pointer as to where the
definitions are needed, and clarify why what is introduced is sufficient /
appropriate as fallback for a certain "common" default case of operation.

Jan



 


Rackspace

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