[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/8] hw/s390x/s390-stattrib: Remove the old migration_enabled fla
From: |
Thomas Huth |
Subject: |
[PATCH 3/8] hw/s390x/s390-stattrib: Remove the old migration_enabled flag |
Date: |
Wed, 15 Jan 2025 08:38:14 +0100 |
Now that the machine types that set the migration_enabled flag to
false are gone, we can remove it and the related code.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
include/hw/s390x/storage-attributes.h | 1 -
hw/s390x/s390-stattrib-kvm.c | 2 +-
hw/s390x/s390-stattrib.c | 7 +------
3 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/include/hw/s390x/storage-attributes.h
b/include/hw/s390x/storage-attributes.h
index 8921a04d51..b5c6d8fa55 100644
--- a/include/hw/s390x/storage-attributes.h
+++ b/include/hw/s390x/storage-attributes.h
@@ -25,7 +25,6 @@ OBJECT_DECLARE_TYPE(S390StAttribState, S390StAttribClass,
S390_STATTRIB)
struct S390StAttribState {
DeviceState parent_obj;
uint64_t migration_cur_gfn;
- bool migration_enabled;
};
diff --git a/hw/s390x/s390-stattrib-kvm.c b/hw/s390x/s390-stattrib-kvm.c
index 2a8e31718b..d0ff04364d 100644
--- a/hw/s390x/s390-stattrib-kvm.c
+++ b/hw/s390x/s390-stattrib-kvm.c
@@ -185,7 +185,7 @@ static long long
kvm_s390_stattrib_get_dirtycount(S390StAttribState *sa)
static int kvm_s390_stattrib_get_active(S390StAttribState *sa)
{
- return kvm_s390_cmma_active() && sa->migration_enabled;
+ return kvm_s390_cmma_active();
}
static void kvm_s390_stattrib_class_init(ObjectClass *oc, void *data)
diff --git a/hw/s390x/s390-stattrib.c b/hw/s390x/s390-stattrib.c
index 8e07acbddc..d720f05cce 100644
--- a/hw/s390x/s390-stattrib.c
+++ b/hw/s390x/s390-stattrib.c
@@ -304,7 +304,7 @@ static int
qemu_s390_set_migrationmode_stub(S390StAttribState *sa, bool value,
static int qemu_s390_get_active(S390StAttribState *sa)
{
- return sa->migration_enabled;
+ return true;
}
static void qemu_s390_stattrib_class_init(ObjectClass *oc, void *data)
@@ -360,10 +360,6 @@ static void s390_stattrib_realize(DeviceState *dev, Error
**errp)
&savevm_s390_stattrib_handlers, dev);
}
-static const Property s390_stattrib_props[] = {
- DEFINE_PROP_BOOL("migration-enabled", S390StAttribState,
migration_enabled, true),
-};
-
static void s390_stattrib_class_init(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
@@ -371,7 +367,6 @@ static void s390_stattrib_class_init(ObjectClass *oc, void
*data)
dc->hotpluggable = false;
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
dc->realize = s390_stattrib_realize;
- device_class_set_props(dc, s390_stattrib_props);
}
static void s390_stattrib_instance_init(Object *obj)
--
2.47.1
- [PATCH 0/8] s390x: Remove deprecated machine types v2.9 up to v2.12, Thomas Huth, 2025/01/15
- [PATCH 1/8] hw/s390x/s390-virtio-ccw: Remove the deprecated 2.9 machine type, Thomas Huth, 2025/01/15
- [PATCH 2/8] hw/s390x/css: Remove the obsolete "css_migration_enabled" variable, Thomas Huth, 2025/01/15
- [PATCH 3/8] hw/s390x/s390-stattrib: Remove the old migration_enabled flag,
Thomas Huth <=
- [PATCH 4/8] hw/intc/s390_flic: Remove the obsolete migration_enabled flag, Thomas Huth, 2025/01/15
- [PATCH 5/8] hw/s390x/s390-virtio-ccw: Remove the deprecated 2.10 and 2.11 machine types, Thomas Huth, 2025/01/15
- [PATCH 6/8] hw/s390x/event-facility: Remove the obsolete "allow_all_mask_sizes" code, Thomas Huth, 2025/01/15
- [PATCH 7/8] target/s390x/gen-features: Remove the v2.11 qemu CPU model, Thomas Huth, 2025/01/15
- [PATCH 8/8] hw/s390x/s390-virtio-ccw: Remove the deprecated 2.12 machine type, Thomas Huth, 2025/01/15
- Re: [PATCH 0/8] s390x: Remove deprecated machine types v2.9 up to v2.12, Philippe Mathieu-Daudé, 2025/01/15