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] RE: XCP: Patch to XenAPI stack to allow domain resume, HAP c

To: 'Roger Cruz' <rcruz@xxxxxxxxxxxxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] RE: XCP: Patch to XenAPI stack to allow domain resume, HAP control and a few other features.
From: Dave Scott <Dave.Scott@xxxxxxxxxxxxx>
Date: Thu, 3 Dec 2009 14:39:23 +0000
Accept-language: en-US
Acceptlanguage: en-US
Cc:
Delivery-date: Thu, 03 Dec 2009 06:39:48 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <40B551BEDC7945419A5897958AB3947C01B5F771@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: <40B551BEDC7945419A5897958AB3947C01B5F771@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcpoibIbfKuooXA3R8imFYni29lN2ALmVvsQ
Thread-topic: XCP: Patch to XenAPI stack to allow domain resume, HAP control and a few other features.
Hi Roger,

Sorry for the delay reviewing this patch.

I'm fine with all the changes except this one:

> diff -r 3e8c0167940d -r 80df1bc7ce62 ocaml/xapi/xapi_event.ml
> --- a/ocaml/xapi/xapi_event.ml      Wed Nov 11 16:55:51 2009 +0000
> +++ b/ocaml/xapi/xapi_event.ml      Wed Nov 18 14:49:01 2009 -0500
> @@ -282,10 +282,10 @@ let heartbeat ~__context =
>        (fun () ->
>        (* We must hold the database lock since we are sending an update for a 
> real object
>           and we don't want to accidentally transmit an older snapshot. *)
> -     let pool = Helpers.get_pool ~__context in
> -     let pool_r = Db.Pool.get_record ~__context ~self:pool in
> -     let pool_xml = API.To.pool_t pool_r in
> -     event_add ~snapshot:pool_xml "pool" "mod" (Ref.string_of pool)
> +     let sm = List.hd (Db.SM.get_all ~__context) in
> +     let sm_r = Db.SM.get_record ~__context ~self:sm in
> +     let sm_xml = API.To.sM_t sm_r in
> +     event_add ~snapshot:sm_xml "SM" "mod" (Ref.string_of sm)
>        )
>    with e ->
>      error "Caught exception sending event heartbeat: %s" 
> (ExnHelper.string_of_exn e)

Could you explain why you want to change a Pool event into an SM one? 
Unfortunately I think some people are depending on receiving these regular Pool 
events to verify that the connection is still alive... It's a bit ugly but will 
have to do until we think of something better.

Anyway, if you resend a patch containing everything but this (with a 
signed-off-by: line and a nice commit comment) then I'll put it in the queue 
for pushing.

Cheers,
Dave

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] RE: XCP: Patch to XenAPI stack to allow domain resume, HAP control and a few other features., Dave Scott <=