s390: deprecate the non-ccw machine in 2.5
PATCH 1/1 s390: deprecate the non-ccw machine in 2.5
The non-ccw machine for s390 (s390-virtio) is not very well maintained and caused several issues in the past:
- aliases like virtio-blk did not work for s390
- virtio refactoring failed due to long standing bugs (e.g.see commit cb927b8a "s390-virtio: Accommodate guests using virtqueues too early")
- some features like memory hotplug will cause trouble due to virtio storage being above guest memory
- the boot loader bios no longer seems to work. the source code of that loader is also no longer maintained
2.4 changed the default to the ccw machine, let's deprecate the old machine for 2.5.
--- hw/s390x/s390-virtio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
hw/s390x/s390-virtio.c +4 -1
@@ -266,6 +266,9 @@ static void s390_init(MachineState *machine)hwaddr virtio_region_len;hwaddr virtio_region_start; +error_report ("WARNING\nThe s390-virtio machine (non-ccw) is deprecated.\n" +"It will be removed in 2.6. Please use s390-ccw-virtio" ); +if (machine->ram_slots) {error_report ("Memory hotplug not supported by the selected machine." );exit (EXIT_FAILURE );
@@ -320,7 +323,7 @@ static void s390_machine_class_init(ObjectClass *oc, void *data) mc->name ="s390-virtio" ; mc->alias ="s390" ; - mc->desc ="VirtIO based S390 machine" ; + mc->desc ="VirtIO based S390 machine (deprecated)" ; mc->init = s390_init; mc->block_default_type =IF_VIRTIO ; mc->max_cpus =255 ;
Signature · 1 line
2.3.0
Quoted 10 lines · Christian Borntraeger
The non-ccw machine for s390 (s390-virtio) is not very well maintained and caused several issues in the past:
- aliases like virtio-blk did not work for s390
- virtio refactoring failed due to long standing bugs (e.g.see commitcb927b8a"s390-virtio: Accommodate guests using virtqueues too early")
- some features like memory hotplug will cause trouble due to virtio storage being above guest memory
- the boot loader bios no longer seems to work. the source code of that loader is also no longer maintained
Quoted 5 lines
2.4 changed the default to the ccw machine, let's deprecate the old machine for 2.5.
Signed-off-by Christian Borntraeger <[email protected]>
You'll also want to add a suitable note to the Changelog on the wiki.
Quoted 9 lines
--- hw/s390x/s390-virtio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)hw/s390x/s390-virtio.c +0
-0
hw/s390x/s390-virtio.c static void s390_init(MachineState *machine) · line 271
Quoted 6 lines
hw/s390x/s390-virtio.c +3
-0@@ -266,6 +266,9 @@ static void s390_init(MachineState *machine)hwaddr virtio_region_len;hwaddr virtio_region_start; +error_report ("WARNING\nThe s390-virtio machine (non-ccw) is deprecated.\n" +"It will be removed in 2.6. Please use s390-ccw-virtio" ); +
I have a vague recollection that you shouldn't have embedded newlines in error_report() strings, but maybe I'm misremembering?
Quoted 13 lines
hw/s390x/s390-virtio.c +1
-2if (machine->ram_slots) {error_report ("Memory hotplug not supported by the selected machine." );exit (EXIT_FAILURE );@@ -320,7 +323,7 @@ static void s390_machine_class_init(ObjectClass *oc, void *data) mc->name ="s390-virtio" ; mc->alias ="s390" ; - mc->desc ="VirtIO based S390 machine" ; + mc->desc ="VirtIO based S390 machine (deprecated)" ; mc->init = s390_init; mc->block_default_type =IF_VIRTIO ; mc->max_cpus =255 ; --
Quoted 1 line
2.3.0
thanks
-- PMM
Am 06.11.2015 um 12:41 schrieb Peter Maydell:
Quoted 12 lines
Quoted 10 lines · Christian Borntraeger
The non-ccw machine for s390 (s390-virtio) is not very well maintained and caused several issues in the past:
- aliases like virtio-blk did not work for s390
- virtio refactoring failed due to long standing bugs (e.g.see commitcb927b8a"s390-virtio: Accommodate guests using virtqueues too early")
- some features like memory hotplug will cause trouble due to virtio storage being above guest memory
- the boot loader bios no longer seems to work. the source code of that loader is also no longer maintained
Quoted 7 lines
Quoted 5 lines
2.4 changed the default to the ccw machine, let's deprecate the old machine for 2.5.
Signed-off-by Christian Borntraeger <[email protected]>You'll also want to add a suitable note to the Changelog on the wiki.
Yes.
Quoted 13 lines
Quoted 13 lines
--- hw/s390x/s390-virtio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)hw/s390x/s390-virtio.c +0
-0@@ -266,6 +266,9 @@ static void s390_init(MachineState *machine)hwaddr virtio_region_len;hwaddr virtio_region_start;
Quoted 6 lines
hw/s390x/s390-virtio.c static void s390_init(MachineState *machine) · line 271
Quoted 3 lines
hw/s390x/s390-virtio.c +3
-0+error_report ("WARNING\nThe s390-virtio machine (non-ccw) is deprecated.\n" +"It will be removed in 2.6. Please use s390-ccw-virtio" ); +I have a vague recollection that you shouldn't have embedded newlines in
error_report()strings, but maybe I'm misremembering?
Hmm, right error_printf can handle newlines, error_report might not depending on output.
Quoted 12 lines · On Fri, 6 Nov 2015 11:41:04 +0000 Peter Maydell <[email protected]>…
Quoted 10 lines · Christian Borntraeger
The non-ccw machine for s390 (s390-virtio) is not very well maintained and caused several issues in the past:
- aliases like virtio-blk did not work for s390
- virtio refactoring failed due to long standing bugs (e.g.see commitcb927b8a"s390-virtio: Accommodate guests using virtqueues too early")
- some features like memory hotplug will cause trouble due to virtio storage being above guest memory
- the boot loader bios no longer seems to work. the source code of that loader is also no longer maintained
Quoted 7 lines
Quoted 5 lines
2.4 changed the default to the ccw machine, let's deprecate the old machine for 2.5.
Signed-off-by Christian Borntraeger <[email protected]>You'll also want to add a suitable note to the Changelog on the wiki.
I presume the release notes will grab it from the Changelog?
Quoted 4 lines
Quoted 4 lines
--- hw/s390x/s390-virtio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)