Re: [Qemu-devel] [PATCH] Add exit notifiers.

2010-06-14 Thread Anthony Liguori
On 06/04/2010 07:08 AM, Gerd Hoffmann wrote: Hook up any cleanup work which needs to be done here. Advantages over using atexit(3): (1) You get passed in a pointer to the notifier. If you embed that into your state struct you can use container_of() to get get your state info.

[Qemu-devel] [PATCH] Add exit notifiers.

2010-06-04 Thread Gerd Hoffmann
Hook up any cleanup work which needs to be done here. Advantages over using atexit(3): (1) You get passed in a pointer to the notifier. If you embed that into your state struct you can use container_of() to get get your state info. (2) You can unregister, say when un-plugging a

Re: [Qemu-devel] [PATCH] Add exit notifiers.

2010-06-04 Thread Stefan Hajnoczi
On Fri, Jun 4, 2010 at 10:35 AM, Gerd Hoffmann kra...@redhat.com wrote: Hook up any cleanup work which needs to be done here.  Advantages over using atexit(3):  (1) You get passed in a pointer to the notifier.  If you embed that      into your state struct you can use container_of() to get

Re: [Qemu-devel] [PATCH] Add exit notifiers.

2010-06-04 Thread Gerd Hoffmann
--- a/roms/seabios +++ b/roms/seabios @@ -1 +1 @@ -Subproject commit 8f469b9676127ba6bb52609d89ec774e61db0ee1 +Subproject commit 7d09d0e3ba11310e973d4302c7fcc3fc2184e04c This hunk seems unrelated to your commit. Damn. Yea. These seem to creap in now and then, I think when rebasing to a new