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.

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

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

2010-06-04 Thread Stefan Hajnoczi
On Fri, Jun 4, 2010 at 10:35 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 >