Skip to content

Commit

Permalink
xenbus: Fix loopback event channel assuming domain 0
Browse files Browse the repository at this point in the history
The xenbus event channel established in xenbus_init is intended to be a
loopback channel, but the remote domain was hardcoded to 0; this will
cause the channel to be unusable when xenstore is not being run in
domain 0.

Signed-off-by: Daniel De Graaf <[email protected]>
Reviewed-by: Ian Campbell <[email protected]>
Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
  • Loading branch information
dgdegraaf authored and konradwilk committed Oct 14, 2011
1 parent 5b25d89 commit 7744799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/xen/xenbus/xenbus_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ static int __init xenbus_init(void)

/* Next allocate a local port which xenstored can bind to */
alloc_unbound.dom = DOMID_SELF;
alloc_unbound.remote_dom = 0;
alloc_unbound.remote_dom = DOMID_SELF;

err = HYPERVISOR_event_channel_op(EVTCHNOP_alloc_unbound,
&alloc_unbound);
Expand Down

0 comments on commit 7744799

Please sign in to comment.