WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 4 of 7] [OCAML] Fix a problem with ocaml xenstored

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 4 of 7] [OCAML] Fix a problem with ocaml xenstored
From: Jon Ludlam <jonathan.ludlam@xxxxxxxxxxxxx>
Date: Thu, 29 Sep 2011 22:17:26 +0100
Cc: jonathan.ludlam@xxxxxxxxxxxxx
Delivery-date: Thu, 29 Sep 2011 14:26:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1317331042@xxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1317331042@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.4.3
Have xenstored trigger an @introduceDomain event even if the
introduce call tries to introduce an already existing domain.

Signed-off-by: Thomas Gazagnaire <thomas@xxxxxxxxxxxx>
Acked-by: Jon Ludlam <jonathan.ludlam@xxxxxxxxxxxxx>

diff -r 734cb0807357 -r b6022a18ebb0 tools/ocaml/xenstored/process.ml
--- a/tools/ocaml/xenstored/process.ml
+++ b/tools/ocaml/xenstored/process.ml
@@ -168,9 +168,10 @@
                | _                         -> raise Invalid_Cmd_Args;
                in
        let dom =
-               if Domains.exist domains domid then
+               if Domains.exist domains domid then begin
+                       Connections.fire_spec_watches cons "@introduceDomain";
                        Domains.find domains domid
-               else try
+               end else try
                        let ndom = Xc.with_intf (fun xc ->
                                Domains.create xc domains domid mfn port) in
                        Connections.add_domain cons ndom;

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>