[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:15:27 +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=kMmEnqBJouoEbqHFYP/sBwuxGAbMQYANWOUYsV3GV5c=; b=VFj3H5gRD4CmPXNMWGIW4M6izgBSEb5+GM+382Z5YYilH7eV8BzGt1aQjQ3htFCawdbCBrjxevbqhxCBail0NkWJJ8os2hNBTlwI19XReDBnUVMd3yhlqX5LTYma2iA6854v7OXpxio50XMvNwkp+5TS770eM7ejxfzL+4xGv+j821D+Du3vh2Xj/e8nWgePndcJJUu/lpZd8knK60eNY0fGjqc0oV0RR39wcq8qb2k8lnJG20W8+OjJOjqK/6lIyUir7s5U+u/QgUypU9DKnMx35xY+QRqej7m7O7CwSiq0+BCxQbJiEatux3QavdYVH6NwL26dyZL9fBNH7iD3JQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CDZwFr0oziFv5tipW0tlHuOmS/nSf8bHcv54UEEQdflnTNfSJkqfEZmNTluexEeX9HhK9QCrh7qNdC946I+2pnLPWWak5WjhiyEBRoWzHRaGRE7BqrykvV0w6EeWLrXQnNinXm+0sP8CKbnopXUTefNXz+Qc9yrgELYJCr72Hrtkd7yv84DHwkX75d0aCbCTsuKruAfOuDGmbqt7AJsEPeYT+fxDFyyiYv2hezrsE7QLq72yDKjeYB2YQ/CVEZxfj2IDL3bcP22crMuq6zKl8nqXkCHHNAoFQcCdBGPqKVtCGcat194fLX7ERGoBRPcv3ZVMsFS8SYRnwnG7E0gm4Q==
  • 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>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, Julien Grall <julien@xxxxxxx>
  • Delivery-date: Mon, 23 Oct 2023 10:15:39 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 23.10.2023 11:35, Oleksii wrote:
> On Thu, 2023-10-19 at 11:35 +0100, Julien Grall wrote:
>> On 19/10/2023 10:05, 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)
>> This is more a question for Jan, in the past I recall you asked the 
>> macor to evaluate the argument. Shouldn't we do the same here?
> Could you please share a link?
> I am not sure that I am in the context.

There's no particular link to be provided, I think. It is simply good
practice to make sure macros evaluate each of the parameters exactly
once. This is simply to avoid surprises at use sites, where function-
like macro invocations - as that terminology says - look like
function invocations, where every argument expression is also
evaluated exactly once (and in unspecified order).

Jan



 


Rackspace

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