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

[PATCH v1 20/25] xen/domctl: wrap around XEN_DOMCTL_set_virq_handler


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Penny Zheng <Penny.Zheng@xxxxxxx>
  • Date: Sun, 3 Aug 2025 17:47:33 +0800
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • 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=QxBVVuM9AFCNC1071z+SXo53e0F+nIHP1SBsQrWMLKg=; b=IJ3XW5phwL533XiKaSkIw1CMjebW/luFPHSNjQGCCcbhO3LnLf19WGIVXvs3VL0VOoMxFGMF93NQlJ9D0Sfu+oHk6xZkcWoL547BhCqSXD9qGnC9y9u/7mUMRp8OtKrvHTid1llmCzDKmXtWPoT1+Eua24XdpJgeHA2ledRN43MthaISwOc3a2bhwD4Ejj5VP6Vq4cFciP3x3vUAAhdiE8IX/xVdUbbZi/0lULrjFyMfmjOrUcypa6L/mA63PeMdj18zNF2fcBft5dQ1cHB1qXp/HfBS3Tdt+UKe13jBXgvyEKcrK8paXa6TaDlw6DN0u0Y2sGTIL28LwEJPTn7Ckw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fC1OHj1cEdST+Sem+H/jGhJ/X/yidKNipd7iiDwyBGIobZmgq6oovEvKAlua7DjAYeGRMsyMZNJfHon5ZEhfQ57q4VLYT3dMDqFn5f1UNTwf5EOou0lyQ4umu1uCQiUxZaq698yX96e6DDVNSSlcS0vbiIgW2E1Z4lac8H7ehlOO61Qema0FXuD+iynhp+sv+LtirEb4unTcCZIh23chvLgnlLlSg1y49P4ZsdGIBslm8ClY+vnFaZvzPVofEXgNlmG6B9V2zJEfFq6aJS6CPNrl8F6TJ9mROD6dKEE/Ogkdtp/pHoCQSiCD+5D5mOvy1ExrKfgjPS9I+q4pFyESTQ==
  • Cc: <ray.huang@xxxxxxx>, Penny Zheng <Penny.Zheng@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, "Julien Grall" <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • Delivery-date: Sun, 03 Aug 2025 09:50:55 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Function set_global_virq_handler() is reponsible for
XEN_DOMCTL_set_virq_handler domctl-op, and shall be wrapped.

Signed-off-by: Penny Zheng <Penny.Zheng@xxxxxxx>
---
 xen/common/event_channel.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c
index 67700b050a..e11b677cac 100644
--- a/xen/common/event_channel.c
+++ b/xen/common/event_channel.c
@@ -1006,6 +1006,7 @@ void send_global_virq(uint32_t virq)
     send_guest_domain_virq(get_global_virq_handler(virq), virq);
 }
 
+#ifdef CONFIG_DOMCTL
 int set_global_virq_handler(struct domain *d, uint32_t virq)
 {
     struct domain *old, *hdl;
@@ -1068,6 +1069,7 @@ int set_global_virq_handler(struct domain *d, uint32_t 
virq)
 
     return rc;
 }
+#endif /* CONFIG_DOMCTL */
 
 static void clear_global_virq_handlers(struct domain *d)
 {
-- 
2.34.1




 


Rackspace

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