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

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


  • To: Oleksii <oleksii.kurochko@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 23 Oct 2023 12:45:05 +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=1WrEJq6GHbceI60mOoVZ4AhSkq3MWIYPGNLx94MPG58=; b=IGVN8o5o7Zjy8j5gdzypSNezNEVEgeIx5GEMQDrqZxJVPGIv4ZaZSumgHXxJf7f4bp/q1FijQ6In+1P8E0mbQzGRwtpx8F0DR5iOY/DqRN5b0+J4Ut67PbGpaQwFo/OjEj3w8sQYC+TFjWexLDWRsxLLCd73inRS4bfc0RtjoRBtVoBLpg4wTUwT9pV00mrjQrDrD+V1riD7Fv2bmLO/2lAG/j36+LyHNRFgQ/nQPNNQtnzcT/lmPrFw1GqFvEiDbWkgj6MTtWCVwLDOLMfls8vgb9NTJQbgePWHR84d7r3IuGpVxUpRVeAXTCRrm02s6shJCL0HJ58m0qHbdAvpfA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gr5HjlkXimy2NxfhTyNIpU2PqQJIyghEeVOkDMeNWpPmoOTNXzR075fEaisvlBuZbgklvw53up4oKlIVUVhbQoOYowa/ttcOIyC8Yqo8VVxBxvhmqGlyuz4AJ2yDB1NRGM4gkj5edctO6zLYhcVtHGbsdXUiDnA0RyHaL5QhlaSAjNn7AZMXKb8Q9G4GYxrKbE4+yY4+hVPIJhN8Cdj3aehSfF+ZHCum1zpm49aRHk8ZzA3sLLE8QYdWm4Rn6CT5i1BxVVYcSzNxe06z1S0ZSVsX8zEt6vmOt4CBfRS7Znat90lpUfBMEVtrP3UnJiR8NNpFl7iA1/Qr6FcXaGtkPg==
  • 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:45:12 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 23.10.2023 12:32, Oleksii wrote:
> On Thu, 2023-10-19 at 11:19 +0200, Jan Beulich wrote:
>> On 14.09.2023 16:56, Oleksii Kurochko wrote:
>>> --- /dev/null
>>> +++ b/xen/include/asm-generic/grant_table.h
>>> @@ -0,0 +1,14 @@
>>> +/* SPDX-License-Identifier: GPL-2.0-only */
>>> +#ifndef __ASM_GENERIC_GRANTTABLE_H__
>>> +#define __ASM_GENERIC_GRANTTABLE_H__
>>> +
>>> +#endif /* __ASM_GENERIC_GRANTTABLE_H__ */
>>
>> This isn't going to work with CONFIG_GRANT_TABLE=y, is it?
> Yes, it won't work with CONFIG_GRANT_TABLE=y. Missed that as
> CONFIG_GRANT_TABLE is disabled for RISC-V.
> 
> It looks like it should be moved to arch specific folder but as I
> mentioned before I don't see a lot of sense to introduce an empty
> header for new arch each time when it will be needed to enable full Xen
> build.

Here I'm okay with an almost empty header in asm-generic/, so long as
it properly rejects CONFIG_GRANT_TABLE=y (indicating in the diagnostic
that for this to build an arch needs to have its own header).

However, then the question again arises where it wouldn't be possible
to have xen/grant_table.h avoid including asm/grant_table.h when
!CONFIG_GRANT_TABLE, eliminating the question whether to have a fallback
header in asm-generic/. If that's not possible, the reason may be a good
thing to put in the description here.

Jan



 


Rackspace

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