summaryrefslogtreecommitdiffstats
path: root/drivers/xen/xenbus
diff options
context:
space:
mode:
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>2011-10-13 22:07:07 +0200
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-10-14 15:25:17 +0200
commit77447991b6c9aef83d101aae4a9e5d83c206b9c5 (patch)
treef6480bc56e9cb016d77b7dfdd9a6b2e52f851fd1 /drivers/xen/xenbus
parentxen/pv-on-hvm:kexec: Fix implicit declaration of function 'xen_hvm_domain' (diff)
downloadlinux-77447991b6c9aef83d101aae4a9e5d83c206b9c5.tar.xz
linux-77447991b6c9aef83d101aae4a9e5d83c206b9c5.zip
xenbus: Fix loopback event channel assuming domain 0
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 <dgdegra@tycho.nsa.gov> Reviewed-by: Ian Campbell <Ian.Campbell@citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/xenbus')
-rw-r--r--drivers/xen/xenbus/xenbus_probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/xenbus/xenbus_probe.c b/drivers/xen/xenbus/xenbus_probe.c
index 739769551e33..d5347fe15882 100644
--- a/drivers/xen/xenbus/xenbus_probe.c
+++ b/drivers/xen/xenbus/xenbus_probe.c
@@ -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);