[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/8] hw/intc/s390_flic: Remove the obsolete migration_enabled fla
From: |
Thomas Huth |
Subject: |
[PATCH 4/8] hw/intc/s390_flic: Remove the obsolete migration_enabled flag |
Date: |
Wed, 15 Jan 2025 08:38:15 +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/s390_flic.h | 1 -
hw/intc/s390_flic.c | 14 --------------
2 files changed, 15 deletions(-)
diff --git a/include/hw/s390x/s390_flic.h b/include/hw/s390x/s390_flic.h
index 85016d5ccc..91edaaca40 100644
--- a/include/hw/s390x/s390_flic.h
+++ b/include/hw/s390x/s390_flic.h
@@ -42,7 +42,6 @@ OBJECT_DECLARE_TYPE(S390FLICState, S390FLICStateClass,
struct S390FLICState {
SysBusDevice parent_obj;
bool ais_supported;
- bool migration_enabled;
};
diff --git a/hw/intc/s390_flic.c b/hw/intc/s390_flic.c
index c20f4c1075..4fae023197 100644
--- a/hw/intc/s390_flic.c
+++ b/hw/intc/s390_flic.c
@@ -470,11 +470,6 @@ static void qemu_s390_flic_class_init(ObjectClass *oc,
void *data)
fsc->inject_crw_mchk = qemu_s390_inject_crw_mchk;
}
-static const Property s390_flic_common_properties[] = {
- DEFINE_PROP_BOOL("migration-enabled", S390FLICState,
- migration_enabled, true),
-};
-
static void s390_flic_common_realize(DeviceState *dev, Error **errp)
{
S390FLICState *fs = S390_FLIC_COMMON(dev);
@@ -486,7 +481,6 @@ static void s390_flic_class_init(ObjectClass *oc, void
*data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
- device_class_set_props(dc, s390_flic_common_properties);
dc->realize = s390_flic_common_realize;
}
@@ -515,18 +509,10 @@ static void qemu_s390_flic_register_types(void)
type_init(qemu_s390_flic_register_types)
-static bool adapter_info_so_needed(void *opaque)
-{
- S390FLICState *fs = s390_get_flic();
-
- return fs->migration_enabled;
-}
-
const VMStateDescription vmstate_adapter_info_so = {
.name = "s390_adapter_info/summary_offset",
.version_id = 1,
.minimum_version_id = 1,
- .needed = adapter_info_so_needed,
.fields = (const VMStateField[]) {
VMSTATE_UINT32(summary_offset, AdapterInfo),
VMSTATE_END_OF_LIST()
--
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, 2025/01/15
- [PATCH 4/8] hw/intc/s390_flic: Remove the obsolete migration_enabled flag,
Thomas Huth <=
- [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