[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] xencommons: write domain 0's domid to xenstore



commit 02ebea7768fe723deaa56c2cfcb860874544b47d
Author:     Matthew Daley <mattjd@xxxxxxxxx>
AuthorDate: Thu Oct 31 19:03:55 2013 +1300
Commit:     Ian Campbell <ian.campbell@xxxxxxxxxx>
CommitDate: Thu Oct 31 20:59:34 2013 +0000

    xencommons: write domain 0's domid to xenstore
    
    libvchan's init_xs_srv (server-side xenstore-related initialization)
    expects to find the current domain's domid at this xenstore key. libxl
    (and xend) write this for domains they create. Do the same for domain 0,
    allowing the use of libvchan in dom0.
    
    Signed-off-by: Matthew Daley <mattjd@xxxxxxxxx>
    Acked-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
    Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 tools/hotplug/Linux/init.d/xencommons |    3 ++-
 tools/hotplug/NetBSD/rc.d/xencommons  |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/tools/hotplug/Linux/init.d/xencommons 
b/tools/hotplug/Linux/init.d/xencommons
index a2e633b..4ebd636 100644
--- a/tools/hotplug/Linux/init.d/xencommons
+++ b/tools/hotplug/Linux/init.d/xencommons
@@ -108,8 +108,9 @@ do_start () {
                    exit 1
                fi
 
-               echo Setting domain 0 name...
+               echo Setting domain 0 name and domid...
                ${BINDIR}/xenstore-write "/local/domain/0/name" "Domain-0"
+               ${BINDIR}/xenstore-write "/local/domain/0/domid" 0
        fi
 
        echo Starting xenconsoled...
diff --git a/tools/hotplug/NetBSD/rc.d/xencommons 
b/tools/hotplug/NetBSD/rc.d/xencommons
index fe4c9ac..b1c3531 100644
--- a/tools/hotplug/NetBSD/rc.d/xencommons
+++ b/tools/hotplug/NetBSD/rc.d/xencommons
@@ -68,8 +68,9 @@ xen_startcmd()
 
        printf "\n"
 
-       printf "Setting domain 0 name.\n"
+       printf "Setting domain 0 name and domid.\n"
        ${BINDIR}/xenstore-write "/local/domain/0/name" "Domain-0"
+       ${BINDIR}/xenstore-write "/local/domain/0/domid" 0
 }
 
 xen_stop()
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.