On Wed, Dec 14, 2011 at 11:17:47AM -0700, Eric Blake wrote:
On 12/13/2011 05:38 PM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange(a)redhat.com>
>
> The Xen & VBox drivers deal with callbacks & dispatching of
> events directly. All the other drivers use a timer to dispatch
> events from a clean stack state, rather than deep inside the
> drivers. Convert Xen & VBox over to virDomainEventState so
> that they match behaviour of other drivers
>
> * src/conf/domain_event.c: Return count of remaining
> callbacks when unregistering event callback
Does this part of the commit message belong with 2/8?
No, this is done in this patch. The next patch only deals with
returning counts when registering callbacks.
> * src/vbox/vbox_tmpl.c, src/xen/xen_driver.c,
> src/xen/xen_driver.h: Convert to virDomainEventState
> ---
> src/conf/domain_event.c | 58 ++++++++++++++++--
> src/conf/domain_event.h | 6 +-
The rename of virDomainEventStateDeregisterAny to
virDomainEventStateDeregisterID wasn't mentioned in the commit message.
Did you rebase things incorrectly? That said, these changes look
useful, even if they were meant for a separate commit.
I've updated the commit message.
> src/vbox/vbox_tmpl.c | 146 +++++++++++++++++++++++++----------------------
> src/xen/xen_driver.c | 68 ++++++++++------------
> src/xen/xen_driver.h | 4 +-
> 5 files changed, 164 insertions(+), 118 deletions(-)
ACK.
Daniel
--
|:
http://berrange.com -o-
http://www.flickr.com/photos/dberrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|:
http://entangle-photo.org -o-
http://live.gnome.org/gtk-vnc :|