|
@@ -283,11 +283,9 @@ static void ccw_init(MachineState *machine)
|
|
s390_enable_css_support(s390_cpu_addr2state(0));
|
|
s390_enable_css_support(s390_cpu_addr2state(0));
|
|
|
|
|
|
ret = css_create_css_image(VIRTUAL_CSSID, true);
|
|
ret = css_create_css_image(VIRTUAL_CSSID, true);
|
|
-
|
|
|
|
assert(ret == 0);
|
|
assert(ret == 0);
|
|
- if (css_migration_enabled()) {
|
|
|
|
- css_register_vmstate();
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ css_register_vmstate();
|
|
|
|
|
|
/* Create VirtIO network adapters */
|
|
/* Create VirtIO network adapters */
|
|
s390_create_virtio_net(BUS(css_bus), mc->default_nic);
|
|
s390_create_virtio_net(BUS(css_bus), mc->default_nic);
|
|
@@ -749,7 +747,6 @@ static void ccw_machine_class_init(ObjectClass *oc, void *data)
|
|
|
|
|
|
s390mc->ri_allowed = true;
|
|
s390mc->ri_allowed = true;
|
|
s390mc->cpu_model_allowed = true;
|
|
s390mc->cpu_model_allowed = true;
|
|
- s390mc->css_migration_enabled = true;
|
|
|
|
s390mc->hpage_1m_allowed = true;
|
|
s390mc->hpage_1m_allowed = true;
|
|
s390mc->max_threads = 1;
|
|
s390mc->max_threads = 1;
|
|
mc->init = ccw_init;
|
|
mc->init = ccw_init;
|
|
@@ -819,11 +816,6 @@ static const TypeInfo ccw_machine_info = {
|
|
},
|
|
},
|
|
};
|
|
};
|
|
|
|
|
|
-bool css_migration_enabled(void)
|
|
|
|
-{
|
|
|
|
- return get_machine_class()->css_migration_enabled;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
#define DEFINE_CCW_MACHINE(suffix, verstr, latest) \
|
|
#define DEFINE_CCW_MACHINE(suffix, verstr, latest) \
|
|
static void ccw_machine_##suffix##_class_init(ObjectClass *oc, \
|
|
static void ccw_machine_##suffix##_class_init(ObjectClass *oc, \
|
|
void *data) \
|
|
void *data) \
|
|
@@ -1179,7 +1171,6 @@ static void ccw_machine_2_9_instance_options(MachineState *machine)
|
|
|
|
|
|
static void ccw_machine_2_9_class_options(MachineClass *mc)
|
|
static void ccw_machine_2_9_class_options(MachineClass *mc)
|
|
{
|
|
{
|
|
- S390CcwMachineClass *s390mc = S390_CCW_MACHINE_CLASS(mc);
|
|
|
|
static GlobalProperty compat[] = {
|
|
static GlobalProperty compat[] = {
|
|
{ TYPE_S390_STATTRIB, "migration-enabled", "off", },
|
|
{ TYPE_S390_STATTRIB, "migration-enabled", "off", },
|
|
{ TYPE_S390_FLIC_COMMON, "migration-enabled", "off", },
|
|
{ TYPE_S390_FLIC_COMMON, "migration-enabled", "off", },
|
|
@@ -1188,7 +1179,7 @@ static void ccw_machine_2_9_class_options(MachineClass *mc)
|
|
ccw_machine_2_10_class_options(mc);
|
|
ccw_machine_2_10_class_options(mc);
|
|
compat_props_add(mc->compat_props, hw_compat_2_9, hw_compat_2_9_len);
|
|
compat_props_add(mc->compat_props, hw_compat_2_9, hw_compat_2_9_len);
|
|
compat_props_add(mc->compat_props, compat, G_N_ELEMENTS(compat));
|
|
compat_props_add(mc->compat_props, compat, G_N_ELEMENTS(compat));
|
|
- s390mc->css_migration_enabled = false;
|
|
|
|
|
|
+ css_migration_enabled = false;
|
|
}
|
|
}
|
|
DEFINE_CCW_MACHINE(2_9, "2.9", false);
|
|
DEFINE_CCW_MACHINE(2_9, "2.9", false);
|
|
|
|
|