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

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


  • To: Oleksii <oleksii.kurochko@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 23 Oct 2023 12:40:59 +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=KaXZ/EqFpYS8eZVeGMBdiUOk1MfQP0UUpm9Zqz+UNKM=; b=VuXNSJgesCH/2RXNGTPSrgbcpgc85y8bNlpjVVr/ktvD+posj73mGfyIm9aMYCjfB1XbuhUg9spjsyPSe5Bs7BrIXoP2Gz3pv2zDWQatQEM1pfVHi/GBPXSOOEsCNzcp/vo89TylpiGV24JyJwbx5o0W6PQFi8TN+72BxKWqgAttfk2HUDaDfg+xnW8UrSK1S/5g6YkdYzmssoTCXxJ673L4D97MWKttQU92TEirtzFVzzpROQMqMm+C7y+XB2fsmoL+wh607tI5CVjFrAraEIhTsBou1TY4XdtfBe9NsBR9EKltXq2eB9CRF8X9V142gfEPnMREIxYBa6YgzBUVaw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PSEB1WY+iwRQQq0PyLjxdNbPIMbTkA6Za8J16wO5uzEJnvOGvWD0CLrYcXb69ZSrvBtEC8P3pFDR0YO+P19rokOIrTsMM1KF9q7iXq+OCOLEgorQ8n4hDHcpzhUjyNdk+iUvWc32Ee6I8nrpiaomFJHowqEkUg63o8lgUKJucEK2LJcRA+HnzzT7gW09icIq/Bjq6PjNut/TL7lk7optB0Uy+xmLlkCBZM3LyZe5E/x0oVYujSonySa07Ad2u+PemsJxUpQ9WvNCRNfMBCrEfpmSf//RU8+ucM8y2WJXYE1Id0bioDLTcSyIxh+4mDOLSg7jBPG3PyiV/+XQcZQ6TA==
  • 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:41:11 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 23.10.2023 12:23, Oleksii wrote:
> On Thu, 2023-10-19 at 11:18 +0200, Jan Beulich wrote:
>> On 14.09.2023 16:56, Oleksii Kurochko wrote:
>>> --- /dev/null
>>> +++ b/xen/include/asm-generic/event.h
>>> @@ -0,0 +1,39 @@
>>> +/* SPDX-License-Identifier: GPL-2.0-only */
>>> +#ifndef __ASM_GENERIC_EVENT_H__
>>> +#define __ASM_GENERIC_EVENT_H__
>>> +
>>> +#include <xen/sched.h>
>>> +
>>> +static inline void vcpu_mark_events_pending(struct vcpu *v)
>>> +{
>>> +}
>>
>> While this will satisfy callers from a build perspective, no port
>> will be functional with an implementation like this. Yet the
>> generic headers need to provide the required functionality, not
>> just build stubs.
> It makes sense but then we will have the similar patches when new
> architecture is introduced.
> 
>>
>> Going further in the series, I won't repeat this kind of comment.
>> Unless others disagree, my view is that headers put here should
>> be of use beyond initial bring-up of a new port.
>>
> Then we have two options here:
> 1. leave only declaration of the function.

Which would then require a stub to be introduced in the arch, or else
linking will fail (unless all calls can be compile-time eliminated,
which I doubt would be the case here).

As before a requirement (imo) is that headers introduced into
asm-generic/ are functional. An arch would introduce its own instance
if it wants to do certain things better, or if it has further needs.

Jan

> 2. remove it from asm-generic.
> 
> ~ Oleksii




 


Rackspace

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