[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 10/17] tools/xenstored: Read event channel from xenstored page
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Jason Andryuk <jason.andryuk@xxxxxxx>
- Date: Wed, 16 Jul 2025 17:14:57 -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=SihKPN69NGNjyt8htAUPBNJrQwfMQFZ0+BHxqWgh8vk=; b=Ob9zSMsFK64xjgv+CHr2aQdW1EWmczVb5ALOeAHntW1pe6RSiEqYxhHhGSgkIft6H/avDlmKUouR/ylHSWX21NIeH1yp/RmQh8+3WnhSJIafA4Ux0wu1f3TBpKhti41E8cOhfWYC0/RYhYBkI3RJ1EU7brSLHmLHSHWr+2cFv7FRbnLfjz1a+nqf/lYBvgdw5gIpqt68IFrsrv3ToWr3u9nn1FDjlo3gklBTXic3Xc8jMt/IHvRtA8QFUqHNrVWz+YcsleObVBJtsR0vB9OIyNm2RHLP17uz+8VfQ9vLTlZ+usDQxwKEZDDNcW3PtE1rZSLmh2lDQ09SttvTQ9sh+Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VXzi0RU3GeC8oU94E6Fhh5buKidh996E4/65hK0fGYdJIJl3ReM+2reMpRS+3Moa8aPpXf3jQQFK6h6uczlm84EewrZhXoywoV+aHOgj27T4FRI4tvwtDNFulbWM6Xbn/O4OuIAN+g8xIN0z9rCG8bByL9rJcbyqS3Gof478EkJQoG1gTcIuhLJSkZHNOdvhncQJaysURAWtM+Yl0QlGKDQh5H6LuMVf+Noj41ywSuum13uk1fkqDC3+BuSLVJ2AVfsDMQ+5nxv9voX/bkzAWKV6l0/bv9wUqi9z/8SmDOKG2TTqlEuNb1CQw1LYmzzdA/loXjAp34rUjBA93v7inQ==
- Cc: Jason Andryuk <jason.andryuk@xxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
- Delivery-date: Wed, 16 Jul 2025 21:22:41 +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>
---
tools/xenstored/domain.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tools/xenstored/domain.c b/tools/xenstored/domain.c
index e1d5e8d614..94b2a1eaa7 100644
--- a/tools/xenstored/domain.c
+++ b/tools/xenstored/domain.c
@@ -1021,9 +1021,15 @@ static struct domain *introduce_domain(const void *ctx,
return NULL;
if (!domain->introduced) {
+ evtchn_port_t iface_port;
interface = map_interface(domid);
if (!interface && !restore)
return NULL;
+
+ iface_port = interface->evtchn_port;
+ if (iface_port)
+ port = iface_port;
+
if (new_domain(domain, port, restore)) {
rc = errno;
if (interface)
--
2.50.0
|