]> xenbits.xensource.com Git - qemu-xen-unstable.git/commit
Add exit notifiers.
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 13 Mar 2020 12:35:26 +0000 (12:35 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Fri, 24 Apr 2020 14:43:09 +0000 (15:43 +0100)
commiteb9bf793f5857ab5ca850bfecba4f11496881500
tree7ff4b6f3c5737450185bb12f8be2e93f7279381b
parent211ed7d2da5abe7bb17cedc2debbe248c1d1f5d6
Add exit notifiers.

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 device.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit fd42deeb4cb42f90084046e3ebdb4383953195e3)
Signed-off-by: Maximilian Heyne <mheyne@amazon.de>
Reviewed-by: Paul Durrant <paul@xen.org>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
sysemu.h
vl.c