Files
xen/tools
Jason Andryuk cec885de7f tools/xenstored: Add get_domain_evtchn() to find evtchn
Add helpers to lookup the event channel for a domid.  This hides some
of the differences between dom0 and stubdom xenstored.  Each version
defines its own.

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.

get_domain_evtchn() replaces get_xenbus_evtchn(), and
get_xenbus_evtchn() is removed from minios.c as it is inlined in the new
function.

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@amd.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
2025-08-19 11:03:43 +02:00
..
2024-09-04 16:06:21 +02:00
2024-05-15 19:59:52 +01:00
2025-06-02 10:31:21 +02:00
2025-06-02 10:31:21 +02:00
2025-06-02 10:31:21 +02:00
2025-06-02 10:31:21 +02:00