tools/helpers: allocate xenstore event channel for xenstore stubdom

In order to prepare support of PV frontends in xenstore-stubdom, add
allocation of a Xenstore event channel to init-xenstore-domain.c.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jason Andryuk <jandryuk@gmail.com>
This commit is contained in:
Juergen Gross authored and Julien Grall committed 2024-02-05 19:26:32 +00:00
1 parent 29f17d8374
commit 9c076988fe
1 file changed
+7
+7
View File
@@ -248,6 +248,13 @@ static int build(xc_interface *xch)
dom->cmdline = xc_dom_strdup(dom, cmdline);
dom->xenstore_domid = domid;
dom->console_evtchn = console_evtchn;
rv = xc_evtchn_alloc_unbound(xch, domid, domid);
if ( rv < 0 )
{
fprintf(stderr, "xc_evtchn_alloc_unbound failed\n");
goto err;
}
dom->xenstore_evtchn = rv;
rv = xc_dom_mem_init(dom, memory);
if ( rv )
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.