mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
hw/s390x/ccw: Remove deprecated s390-ccw-virtio-4.2 machine
This machine has been supported for a period of more than 6 years.
According to our versioned machine support policy (see commit
ce80c4fa6f "docs: document special exception for machine type
deprecation & removal") it can now be removed.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20251020094903.72182-2-philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
committed by
Thomas Huth
parent
bc436b739c
commit
6fc2caf396
@@ -715,26 +715,6 @@ static void s390_nmi(NMIState *n, int cpu_index, Error **errp)
|
||||
s390_cpu_restart(S390_CPU(cs));
|
||||
}
|
||||
|
||||
static ram_addr_t s390_fixup_ram_size(ram_addr_t sz)
|
||||
{
|
||||
/* same logic as in sclp.c */
|
||||
int increment_size = 20;
|
||||
ram_addr_t newsz;
|
||||
|
||||
while ((sz >> increment_size) > MAX_STORAGE_INCREMENTS) {
|
||||
increment_size++;
|
||||
}
|
||||
newsz = sz >> increment_size << increment_size;
|
||||
|
||||
if (sz != newsz) {
|
||||
qemu_printf("Ram size %" PRIu64 "MB was fixed up to %" PRIu64
|
||||
"MB to match machine restrictions. Consider updating "
|
||||
"the guest definition.\n", (uint64_t) (sz / MiB),
|
||||
(uint64_t) (newsz / MiB));
|
||||
}
|
||||
return newsz;
|
||||
}
|
||||
|
||||
static inline bool machine_get_aes_key_wrap(Object *obj, Error **errp)
|
||||
{
|
||||
S390CcwMachineState *ms = S390_CCW_MACHINE(obj);
|
||||
@@ -1165,19 +1145,6 @@ static void ccw_machine_5_0_class_options(MachineClass *mc)
|
||||
}
|
||||
DEFINE_CCW_MACHINE(5, 0);
|
||||
|
||||
static void ccw_machine_4_2_instance_options(MachineState *machine)
|
||||
{
|
||||
ccw_machine_5_0_instance_options(machine);
|
||||
}
|
||||
|
||||
static void ccw_machine_4_2_class_options(MachineClass *mc)
|
||||
{
|
||||
ccw_machine_5_0_class_options(mc);
|
||||
mc->fixup_ram_size = s390_fixup_ram_size;
|
||||
compat_props_add(mc->compat_props, hw_compat_4_2, hw_compat_4_2_len);
|
||||
}
|
||||
DEFINE_CCW_MACHINE(4, 2);
|
||||
|
||||
static void ccw_machine_register_types(void)
|
||||
{
|
||||
type_register_static(&ccw_machine_info);
|
||||
|
||||
Reference in New Issue
Block a user