[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qemu-s390x] [PULL v2 16/27] s390/stattrib: Make SaveVMHandlers data sta
From: |
Cornelia Huck |
Subject: |
[qemu-s390x] [PULL v2 16/27] s390/stattrib: Make SaveVMHandlers data static |
Date: |
Thu, 1 Mar 2018 14:01:50 +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 v2 06/27] s390-ccw: parse and set boot menu options, (continued)
- [qemu-s390x] [PULL v2 06/27] s390-ccw: parse and set boot menu options, Cornelia Huck, 2018/03/01
- [qemu-s390x] [PULL v2 02/27] s390-ccw: refactor eckd_block_num to use CHS, Cornelia Huck, 2018/03/01
- [qemu-s390x] [PULL v2 04/27] s390-ccw: update libc, Cornelia Huck, 2018/03/01
- [qemu-s390x] [PULL v2 03/27] s390-ccw: refactor IPL structs, Cornelia Huck, 2018/03/01
- [qemu-s390x] [PULL v2 05/27] s390-ccw: move auxiliary IPL data to separate location, Cornelia Huck, 2018/03/01
- [qemu-s390x] [PULL v2 07/27] s390-ccw: set up interactive boot menu parameters, Cornelia Huck, 2018/03/01
- [qemu-s390x] [PULL v2 08/27] s390-ccw: read stage2 boot loader data to find menu, Cornelia Huck, 2018/03/01
- [qemu-s390x] [PULL v2 09/27] s390-ccw: print zipl boot menu, Cornelia Huck, 2018/03/01
- [qemu-s390x] [PULL v2 10/27] s390-ccw: read user input for boot index via the SCLP console, Cornelia Huck, 2018/03/01
- [qemu-s390x] [PULL v2 12/27] s390-ccw: use zipl values when no boot menu options are present, Cornelia Huck, 2018/03/01
- [qemu-s390x] [PULL v2 16/27] s390/stattrib: Make SaveVMHandlers data static,
Cornelia Huck <=
- [qemu-s390x] [PULL v2 11/27] s390-ccw: set cp_receive mask only when needed and consume pending service irqs, Cornelia Huck, 2018/03/01
- [qemu-s390x] [PULL v2 13/27] s390-ccw: interactive boot menu for scsi, Cornelia Huck, 2018/03/01
- [qemu-s390x] [PULL v2 15/27] s390x/cpu: expose the guest crash information, Cornelia Huck, 2018/03/01
- [qemu-s390x] [PULL v2 17/27] s390x/tcg: fix disabling/enabling DAT, Cornelia Huck, 2018/03/01
- [qemu-s390x] [PULL v2 18/27] s390x/tcg: add various alignment checks, Cornelia Huck, 2018/03/01
- [qemu-s390x] [PULL v2 20/27] qmp: add query-cpus-fast, Cornelia Huck, 2018/03/01
- [qemu-s390x] [PULL v2 19/27] qmp: expose s390-specific CPU info, Cornelia Huck, 2018/03/01
- [qemu-s390x] [PULL v2 22/27] qemu-doc: deprecate query-cpus, Cornelia Huck, 2018/03/01
- [qemu-s390x] [PULL v2 23/27] hmp: change hmp_info_cpus to use query-cpus-fast, Cornelia Huck, 2018/03/01
- [qemu-s390x] [PULL v2 24/27] s390x/cpumodel: document S390FeatDef.bit not applicable, Cornelia Huck, 2018/03/01