[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qemu-s390x] [PULL 16/26] s390/stattrib: Make SaveVMHandlers data static
From: |
Cornelia Huck |
Subject: |
[qemu-s390x] [PULL 16/26] s390/stattrib: Make SaveVMHandlers data static |
Date: |
Tue, 27 Feb 2018 14:21:40 +0100 |
From: "Dr. David Alan Gilbert" <address@hidden>
There's no need for this to be dynamic, make it static.
Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: David Hildenbrand <address@hidden>
Reviewed-by: Thomas Huth <address@hidden>
Reviewed-by: Claudio Imbrenda <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>
---
hw/s390x/s390-stattrib.c | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/hw/s390x/s390-stattrib.c b/hw/s390x/s390-stattrib.c
index a1d2135a60..adf07ef312 100644
--- a/hw/s390x/s390-stattrib.c
+++ b/hw/s390x/s390-stattrib.c
@@ -365,22 +365,22 @@ static inline void
s390_stattrib_set_migration_enabled(Object *obj, bool value,
s->migration_enabled = value;
}
+static SaveVMHandlers savevm_s390_stattrib_handlers = {
+ .save_setup = cmma_save_setup,
+ .save_live_iterate = cmma_save_iterate,
+ .save_live_complete_precopy = cmma_save_complete,
+ .save_live_pending = cmma_save_pending,
+ .save_cleanup = cmma_save_cleanup,
+ .load_state = cmma_load,
+ .is_active = cmma_active,
+};
+
static void s390_stattrib_instance_init(Object *obj)
{
S390StAttribState *sas = S390_STATTRIB(obj);
- SaveVMHandlers *ops;
-
- /* ops will always be freed by qemu when unregistering */
- ops = g_new0(SaveVMHandlers, 1);
-
- ops->save_setup = cmma_save_setup;
- ops->save_live_iterate = cmma_save_iterate;
- ops->save_live_complete_precopy = cmma_save_complete;
- ops->save_live_pending = cmma_save_pending;
- ops->save_cleanup = cmma_save_cleanup;
- ops->load_state = cmma_load;
- ops->is_active = cmma_active;
- register_savevm_live(NULL, TYPE_S390_STATTRIB, 0, 0, ops, sas);
+
+ register_savevm_live(NULL, TYPE_S390_STATTRIB, 0, 0,
+ &savevm_s390_stattrib_handlers, sas);
object_property_add_bool(obj, "migration-enabled",
s390_stattrib_get_migration_enabled,
--
2.13.6
- [qemu-s390x] [PULL 05/26] s390-ccw: move auxiliary IPL data to separate location, (continued)
- [qemu-s390x] [PULL 05/26] s390-ccw: move auxiliary IPL data to separate location, Cornelia Huck, 2018/02/27
- [qemu-s390x] [PULL 04/26] s390-ccw: update libc, Cornelia Huck, 2018/02/27
- [qemu-s390x] [PULL 06/26] s390-ccw: parse and set boot menu options, Cornelia Huck, 2018/02/27
- [qemu-s390x] [PULL 08/26] s390-ccw: read stage2 boot loader data to find menu, Cornelia Huck, 2018/02/27
- [qemu-s390x] [PULL 09/26] s390-ccw: print zipl boot menu, Cornelia Huck, 2018/02/27
- [qemu-s390x] [PULL 07/26] s390-ccw: set up interactive boot menu parameters, Cornelia Huck, 2018/02/27
- [qemu-s390x] [PULL 11/26] s390-ccw: set cp_receive mask only when needed and consume pending service irqs, Cornelia Huck, 2018/02/27
- [qemu-s390x] [PULL 10/26] s390-ccw: read user input for boot index via the SCLP console, Cornelia Huck, 2018/02/27
- [qemu-s390x] [PULL 12/26] s390-ccw: use zipl values when no boot menu options are present, Cornelia Huck, 2018/02/27
- [qemu-s390x] [PULL 13/26] s390-ccw: interactive boot menu for scsi, Cornelia Huck, 2018/02/27
- [qemu-s390x] [PULL 16/26] s390/stattrib: Make SaveVMHandlers data static,
Cornelia Huck <=
- [qemu-s390x] [PULL 18/26] s390x/tcg: add various alignment checks, Cornelia Huck, 2018/02/27
- [qemu-s390x] [PULL 15/26] s390x/cpu: expose the guest crash information, Cornelia Huck, 2018/02/27
- [qemu-s390x] [PULL 17/26] s390x/tcg: fix disabling/enabling DAT, Cornelia Huck, 2018/02/27
- [qemu-s390x] [PULL 21/26] qmp: add architecture specific cpu data for query-cpus-fast, Cornelia Huck, 2018/02/27
- [qemu-s390x] [PULL 20/26] qmp: add query-cpus-fast, Cornelia Huck, 2018/02/27
- [qemu-s390x] [PULL 19/26] qmp: expose s390-specific CPU info, Cornelia Huck, 2018/02/27
- [qemu-s390x] [PULL 22/26] qemu-doc: deprecate query-cpus, Cornelia Huck, 2018/02/27
- [qemu-s390x] [PULL 23/26] hmp: change hmp_info_cpus to use query-cpus-fast, Cornelia Huck, 2018/02/27
- [qemu-s390x] [PULL 24/26] s390x/cpumodel: document S390FeatDef.bit not applicable, Cornelia Huck, 2018/02/27
- [qemu-s390x] [PULL 26/26] s390x: remove s390_get_memslot_count, Cornelia Huck, 2018/02/27