|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v4 06/12] tools/xenstored: Add get_domain_evtchn() to find evtchn
On 2025-07-25 02:41, Jürgen Groß wrote: On 25.07.25 04:28, Jason Andryuk wrote:Add a helper to lookup the event channel for a domid. This hides some of the differences between dom0 and stubdom xenstored. It highlights the different meanings between get_xenbus_evtchn() in a stubdom, where it looks up dom0's event channel, and dom0, where it looks up the local event channel. The default return 0 will be fine as any other auto-introduced domain will needs the event channel populated in the grant. Signed-off-by: Jason Andryuk <jason.andryuk@xxxxxxx> --- tools/xenstored/domain.c | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/tools/xenstored/domain.c b/tools/xenstored/domain.c index 1241f8c73e..1c52254ba8 100644 --- a/tools/xenstored/domain.c +++ b/tools/xenstored/domain.c@@ -1251,12 +1251,41 @@ const char *get_implicit_path(const struct connection *conn)return conn->domain->path; } +/* + * dom0 xenstored (posix.c) uses get_xenbus_evtchn() to lookup with + * XENSTORED_PORT_DEV. + *+ * minios stubdom uses get_xenbus_evtchn() to look up dom0's event channel+ * from the command line (--event). The stubdom's own event channel is + * returned directly. + * + * Any other existing domains from dom0less/Hyperlaunch will have+ * the event channel in the xenstore page, so lookup here isn't necessary. Sounds good.
Thanks, Jason
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |