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

Re: [XEN][PATCH v2 1/2] xen/evtchn: enable build optimization for evtchn_move_pirqs()/send_guest_pirq()


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Grygorii Strashko <grygorii_strashko@xxxxxxxx>
  • Date: Thu, 31 Jul 2025 12:44:04 +0300
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.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=OY9dFuUw0RlhET8v5X3xIK6bJIoUGEJqfIYBKVg+qJQ=; b=kk+0eFFXjR6bS4Em2/9a/KjrBtcImKow7UQIyIkEwge3hXJEALCbcB3E6/q7C9G3FdJK6pjDM8SdxPk5P6U33slURYJgaa/8q4XYZuqUHPuOCYaUt+BfTDucxsn9Hr+j7aHsY5w9H7AKWMTv0ug4kjaWKnrfhTwWtZstPAO7lXAtaYHg6V3iF1wsVVnQsFOyWqnH/Bmae2YtlfXgzpVcy07+sdybLKJHGRaYLy5/KFHF1PNhdgHseKCX3FpSJCOtjq9O4aQZ/CbxP29V4k3YvN9PSDaOXt03Hp/zmIBT2++4RMVo1kachQrFnTYX1Dgymx5Ps0r1Tlt7yVQiRxz+3g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ABoOhfBc02Y4hbeNrWfYfWxCvzoWsYVX3r43u1mT8KtYp6LpcE8hiRbq5mqgzGq/3K33VnwkRAFA0t9WdKXw1PNXeSIVrPNeGEUxvSoB2l6u+vHXyVv8Jjd8FPoJAWm81Hgnf2VguS/904te6GhyNqvZ5N4c+w42qYpktKw5HAW1uF0K7yJR9qmv6ABxRw9x0g3b9yAD+jXemHZXmWSglsdZlt0luaE7igl9U7YtRo3Nyzfw3COnIzjozYk77arWbSS2Jbz36tcrtpCGfXRmjsQVP+f930YtkAjVQpdC0PjWfHD/qS1rnzPtu7y9vjiBicK0mqDwhGrJfo2j8ByP/w==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>, Ayan Kumar Halder <ayankuma@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Dario Faggioli <dfaggioli@xxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, George Dunlap <gwd@xxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 31 Jul 2025 09:44:13 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>



On 31.07.25 10:42, Jan Beulich wrote:
On 22.07.2025 15:46, Grygorii Strashko wrote:


On 22.07.25 11:23, Jan Beulich wrote:
On 18.07.2025 12:11, Grygorii Strashko wrote:
From: Grygorii Strashko <grygorii_strashko@xxxxxxxx>

On platforms without PIRQ support evtchn_move_pirqs()/send_guest_pirq()
functions are unreachable (Misra rule 2.1).

Move these function under CONFIG_HAS_PIRQ ifdefs to fix Misra rule 2.1
violation and resolve call of evtchn_move_pirqs() from common /sched/core.c
vcpu_move_irqs() code by moving evtchn_move_pirqs() into x86
arch_move_irqs() callback (which is converted to define).

The patch title isn't quite appropriate anymore with this description, I
think.

Signed-off-by: Grygorii Strashko <grygorii_strashko@xxxxxxxx>

Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
preferably with ...

@@ -1707,6 +1709,7 @@ void evtchn_destroy_final(struct domain *d)
   }
+#ifdef CONFIG_HAS_PIRQ
   void evtchn_move_pirqs(struct vcpu *v)
   {
       struct domain *d = v->domain;

... one of the two blank lines also dropped here, just like you do ...

@@ -1722,7 +1725,7 @@ void evtchn_move_pirqs(struct vcpu *v)
       }
       read_unlock(&d->event_lock);
   }
-
+#endif /* CONFIG_HAS_PIRQ */

... here. Happy to adjust while committing,

Thank you.

but please consider suggesting a replacement patch title.

Honestly, I, by myself, not sure about proper patch title :(
My options would be:

   "xen/evtchn: evtchn_move_pirqs()/send_guest_pirq() fix MISRA Rule 2.1 
violation"

   "xen/evtchn: opt out of common pIRQ code for arches without pIRQ support"

   "xen/evtchn: fully restrict concept of pIRQ for arches with pIRQ support 
only"

I would probably pick one of the latter two, but as said - an ack is still
missing here. FTAOD: It is on you to chase it.


Could you merge first patch and I'll send cumulative arch clean-up patches?

--
Best regards,
-grygorii



 


Rackspace

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