[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 01/41] migration: Constify migration_properties
From: |
Paolo Bonzini |
Subject: |
[PULL 01/41] migration: Constify migration_properties |
Date: |
Thu, 19 Dec 2024 09:31:48 +0100 |
From: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Link:
20241216035109.3486070-2-richard.henderson@linaro.org">https://lore.kernel.org/r/20241216035109.3486070-2-richard.henderson@linaro.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
migration/options.h | 2 +-
migration/options.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/migration/options.h b/migration/options.h
index 79084eed0dd..a360f93a44f 100644
--- a/migration/options.h
+++ b/migration/options.h
@@ -20,7 +20,7 @@
/* migration properties */
-extern Property migration_properties[];
+extern const Property migration_properties[];
/* capabilities */
diff --git a/migration/options.c b/migration/options.c
index ad8d6989a80..24cc8471aa0 100644
--- a/migration/options.c
+++ b/migration/options.c
@@ -85,7 +85,7 @@
#define DEFAULT_MIGRATE_VCPU_DIRTY_LIMIT_PERIOD 1000 /* milliseconds */
#define DEFAULT_MIGRATE_VCPU_DIRTY_LIMIT 1 /* MB/s */
-Property migration_properties[] = {
+const Property migration_properties[] = {
DEFINE_PROP_BOOL("store-global-state", MigrationState,
store_global_state, true),
DEFINE_PROP_BOOL("send-configuration", MigrationState,
--
2.47.1
- [PULL 00/41] Rust, qdev, target/i386 changes for 2024-12-19, Paolo Bonzini, 2024/12/19
- [PULL 01/41] migration: Constify migration_properties,
Paolo Bonzini <=
- [PULL 02/41] hw/ide: Constify sysbus_ahci_properties, Paolo Bonzini, 2024/12/19
- [PULL 03/41] target/ppc: Remove empty property list, Paolo Bonzini, 2024/12/19
- [PULL 04/41] target/s390x: Use s390x_cpu_properties for system mode only, Paolo Bonzini, 2024/12/19
- [PULL 06/41] hw/ppc: Only register spapr_nvdimm_properties if CONFIG_LIBPMEM, Paolo Bonzini, 2024/12/19
- [PULL 05/41] hw/pci-host/astro: Remove empty Property list, Paolo Bonzini, 2024/12/19
- [PULL 08/41] hw/s390x: Remove empty Property lists, Paolo Bonzini, 2024/12/19
- [PULL 09/41] hw/xen: Remove empty Property lists, Paolo Bonzini, 2024/12/19
- [PULL 10/41] hw/sparc: Remove empty Property lists, Paolo Bonzini, 2024/12/19
- [PULL 11/41] hw/virtio: Remove empty Property lists, Paolo Bonzini, 2024/12/19
- [PULL 12/41] include/hw/qdev-core: Detect most empty Property lists at compile time, Paolo Bonzini, 2024/12/19