diff options
author | Shivaprasad G Bhat <sbhat@linux.ibm.com> | 2022-02-18 08:34:13 +0100 |
---|---|---|
committer | Cédric Le Goater <clg@kaod.org> | 2022-02-18 08:34:13 +0100 |
commit | 3e35960bf130f759c1b6d72f6a8c08039c08ec16 (patch) | |
tree | 7067fee7e1e0888e88f5808bc0e71e27c90b81c1 /include/hw/mem/pc-dimm.h | |
parent | c13b8e9973635f34f3ce4356af27a311c993729c (diff) | |
download | qemu-3e35960bf130f759c1b6d72f6a8c08039c08ec16.zip qemu-3e35960bf130f759c1b6d72f6a8c08039c08ec16.tar.gz qemu-3e35960bf130f759c1b6d72f6a8c08039c08ec16.tar.bz2 |
nvdimm: Add realize, unrealize callbacks to NVDIMMDevice class
A new subclass inheriting NVDIMMDevice is going to be introduced in
subsequent patches. The new subclass uses the realize and unrealize
callbacks. Add them on NVDIMMClass to appropriately call them as part
of plug-unplug.
Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Acked-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <164396253158.109112.1926755104259023743.stgit@ltczzess4.aus.stglabs.ibm.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'include/hw/mem/pc-dimm.h')
-rw-r--r-- | include/hw/mem/pc-dimm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/mem/pc-dimm.h b/include/hw/mem/pc-dimm.h index 1473e6d..322bebe 100644 --- a/include/hw/mem/pc-dimm.h +++ b/include/hw/mem/pc-dimm.h @@ -63,6 +63,7 @@ struct PCDIMMDeviceClass { /* public */ void (*realize)(PCDIMMDevice *dimm, Error **errp); + void (*unrealize)(PCDIMMDevice *dimm); }; void pc_dimm_pre_plug(PCDIMMDevice *dimm, MachineState *machine, |