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

[PATCH v5 05/11] tools/xenstored: Read event channel from xenstored page


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jason Andryuk <jason.andryuk@xxxxxxx>
  • Date: Fri, 25 Jul 2025 19:58:52 -0400
  • 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=mPrBHukDi4hPz8kOtyqBmvDdX0Dj7DBKmngLvcaAJr0=; b=ouRbrGMQACtRXSX832UZmD4kjkaXSuOBlJWrPOPwXfD8B/v/JpMPElkGzqj5sZGeV2mfIGLC/9ZMZapxOn2xLCmHyV/cMjrj6kUUsbl29egXVOd1NUlKJrjj3esbta3f/wOEeEVzXXfkOoDiwyAz1Sv7Nxd/YkE3fh/REHJ7YgrVINdtJl+dJYjggG7EI9MFi2buK3EiT3Xwwg1iJ/9xlKeuIoxylzP3JnE4cOpyiMVH55R3k3At3hnles0Uhm9pjfMkXWk+KGO3ukZRVyk4CRBM3soKkIVBBEAbo16HDQP5gErFWSd47kUm6ZapleGv+eWMNlcwQEUZ+SSD0+KjvA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=doEQl55OZFR8An7/bSDBArHrbuJnyQgFA/miUUs8EEwIEI3TOW7s5UFVpKr8LwVyMPWyFDzQboUL9oyZ4a4weMSlTInIaQoDus/WZnwZv4hOLLolIyQxU/JOfN80kgm5FBkNc9SlhAS6RO4aiAemLakprfHX8CbkweU/e2w3DF7g9BRnURg7Id9MJzaELjJFSeBx9NSXdWRjp35+799HlFbDphs0/Ivp+ne2diKqTYhv2VLcO5D2vyz3BRVA6OP1DF7NAUwYNEsuustB//I7iBYTELgtG2llbia5ZHHKIA5GhDnH6gVK0gROnabUFjIuO/CPqFSkpZqrbRdYMPimHw==
  • Cc: Jason Andryuk <jason.andryuk@xxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Delivery-date: Fri, 25 Jul 2025 23:59:45 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Make introduce_domain() use an event channel from the the xenstore page.
It is only used if non-zero.  Otherwise the passed in event channel port
is used.

The is useful for a xenstored stubdom to configure domains autonomously.

Signed-off-by: Jason Andryuk <jason.andryuk@xxxxxxx>
Reviewed-by: Juergen Gross <jgross@xxxxxxxx>
---
v4:
R-b Juergen

v2:
Remove iface_port variable.
---
 tools/xenstored/domain.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/xenstored/domain.c b/tools/xenstored/domain.c
index f119d714ac..1241f8c73e 100644
--- a/tools/xenstored/domain.c
+++ b/tools/xenstored/domain.c
@@ -1024,6 +1024,10 @@ static struct domain *introduce_domain(const void *ctx,
                interface = map_interface(domid);
                if (!interface && !restore)
                        return NULL;
+
+               if (interface->evtchn_port)
+                       port = interface->evtchn_port;
+
                if (new_domain(domain, port, restore)) {
                        rc = errno;
                        if (interface)
-- 
2.50.1




 


Rackspace

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