s390x: deprecate s390-squash-mcss machine prop
RFC PATCH 1/1 s390x: deprecate s390-squash-mcss machine prop
With the cssids unrestricted (commit <COMMIT HERE> "s390x/css: unrestrict cssids") the s390-squash-mcss machine property should not be used. Actually libvirt never supported this, so the expectation is that removing it should be pretty painless. But let's play nice and deprecate it first.
---
I'm not sure about the warnig I generate if 's390-squash-mcss' is set to 'on':
* There is prior art where we don't warn_report but info_report (commit 83926ad527)
* Warning iff specified on the command line regardless of value would probably be cleaner. Yet I'm not sure where would I need to hook in to do that.
I would like to reference a commit for "s390x/css: unrestrict cssids" which is currently in RFC status on the list.
--- hw/s390x/s390-virtio-ccw.c | 5 ++++- qemu-doc.texi | 6 ++++++ qemu-options.hx | 6 +++++- 3 files changed, 15 insertions(+), 2 deletions(-)
hw/s390x/s390-virtio-ccw.c +4 -1
@@ -554,6 +554,9 @@ static inline void machine_set_squash_mcss(Object *obj, bool value,S390CcwMachineState *ms =S390_CCW_MACHINE (obj); ms->s390_squash_mcss = value; +if (ms->s390_squash_mcss) { +warn_report ("the machine property 's390-squash-mcss' is deprecated" ); + } }static inline void s390_machine_initfn (Object *obj)
@@ -583,7 +586,7 @@ static inline void s390_machine_initfn(Object *obj)object_property_add_bool (obj,"s390-squash-mcss" , machine_get_squash_mcss, machine_set_squash_mcss,NULL ); -object_property_set_description (obj,"s390-squash-mcss" , +object_property_set_description (obj,"s390-squash-mcss" ,"(deprecated) " "enable/disable squashing subchannels into the default css" ,NULL );object_property_set_bool (obj, false,"s390-squash-mcss" ,NULL );
qemu-doc.texi +6 -0
@@ -2500,6 +2500,12 @@ enabled via the ``-machine usb=on'' argument. The ``-nodefconfig`` argument is a synonym for ``-no-user-config``. +@subsection -machine virtio-ccw,s390-squash-mcss=on|off (since 2.12.0) + +Since version 2.12.0 the cssid can be chosen freely. Instead of squashing +mcss for guest that don't support multiple channel subsystems we recommend +putting all devices into the default channel subsystem (that is 0xfe). + @section qemu-img command line arguments @subsection convert -s (since 2.0.0)
qemu-options.hx +5 -1
@@ -43,7 +43,7 @@ DEF("machine", HAS_ARG, QEMU_OPTION_machine, \ " suppress-vmdesc=on|off disables self-describing migration (default=off)\n" " nvdimm=on|off controls NVDIMM support (default=off)\n" " enforce-config-section=on|off enforce configuration section migration (default=off)\n" - " s390-squash-mcss=on|off controls support for squashing into default css (default=off)\n", + " s390-squash-mcss=on|off (deprecated) controls support for squashing into default css (default=off)\n", QEMU_ARCH_ALL) STEXI @item -machine [type=]@var{name}[,prop=@var{value}[,...]]
@@ -98,6 +98,10 @@ Enables or disables NVDIMM support. The default is off. @item s390-squash-mcss=on|off Enables or disables squashing subchannels into the default css. The default is off. +NOTE: This property is deprecated and may be removed in future releases. +Since version 2.12.0 the cssid can be chosen freely. Instead of squashing +mcss for guest that don't support multiple channel subsystems we recommend +putting all devices into the default channel subsystem (that is 0xfe). @item enforce-config-section=on|off If @option{enforce-config-section} is set to @var{on}, force migration code to send configuration section even if the machine-type sets the
Signature · 1 line
2.13.5
Quoted 1 line · On Wed, 22 Nov 2017 15:18:32 +0100 Halil Pasic <[email protected]> wrote:
With the cssids unrestricted (commit <COMMIT HERE> "s390x/css: unrestrict
I think you can simply reference the title only. I plan to merge both in one go.
Quoted 5 lines
cssids") the s390-squash-mcss machine property should not be used. Actually libvirt never supported this, so the expectation is that removing it should be pretty painless. But let's play nice and deprecate it first.
Quoted 7 lines
Signed-off-by Halil Pasic <[email protected]>---
I'm not sure about the warnig I generate if 's390-squash-mcss' is set to 'on':
* There is prior art where we don'twarn_reportbutinfo_report(commit83926ad527)
Tbh, I don't really care about one or the other.
Quoted 3 lines
* Warning iff specified on the command line regardless of value would probably be cleaner. Yet I'm not sure where would I need to hook in to do that.
Yeah, I don't see a good way to do that either. OTOH, I don't really think people set this to false explicitly.
Quoted 3 lines
I would like to reference a commit for "s390x/css: unrestrict cssids" which is currently in RFC status on the list.
As said, I'll just merge them in one go. We can reference the commit in the changelog, though.
There also should be an entry in
https://wiki.qemu.org/Features/LegacyRemoval, and we should update the advice in
https://wiki.qemu.org/index.php/Features/Channel_I/O_Passthrough.
Quoted 11 lines
--- hw/s390x/s390-virtio-ccw.c | 5 ++++- qemu-doc.texi | 6 ++++++ qemu-options.hx | 6 +++++- 3 files changed, 15 insertions(+), 2 deletions(-)hw/s390x/s390-virtio-ccw.c +0
-0
hw/s390x/s390-virtio-ccw.c static inline void machine_set_squash_mcss(Object *obj, bool value, · line 558
Quoted 5 lines
hw/s390x/s390-virtio-ccw.c +2
-0@@ -554,6 +554,9 @@ static inline void machine_set_squash_mcss(Object *obj, bool value,S390CcwMachineState *ms =S390_CCW_MACHINE (obj); ms->s390_squash_mcss = value; +if (ms->s390_squash_mcss) { +warn_report ("the machine property 's390-squash-mcss' is deprecated" );
s/the/The/
You should also add an explanation ("obsoleted by lifting the cssid restrictions").
Quoted 18 lines
hw/s390x/s390-virtio-ccw.c +2
-1+ } }static inline void s390_machine_initfn (Object *obj)@@ -583,7 +586,7 @@ static inline void s390_machine_initfn(Object *obj)object_property_add_bool (obj,"s390-squash-mcss" , machine_get_squash_mcss, machine_set_squash_mcss,NULL ); -object_property_set_description (obj,"s390-squash-mcss" , +object_property_set_description (obj,"s390-squash-mcss" ,"(deprecated) " "enable/disable squashing subchannels into the default css" ,NULL );object_property_set_bool (obj, false,"s390-squash-mcss" ,NULL );qemu-doc.texi +0
-0
qemu-doc.texi enabled via the ``-machine usb=on'' argument. · line 2507
Quoted 8 lines
qemu-doc.texi +5
-0@@ -2500,6 +2500,12 @@ enabled via the ``-machine usb=on'' argument. The ``-nodefconfig`` argument is a synonym for ``-no-user-config``. +@subsection -machine virtio-ccw,s390-squash-mcss=on|off (since 2.12.0) + +Since version 2.12.0 the cssid can be chosen freely. Instead of squashing +mcss for guest that don't support multiple channel subsystems we recommend +putting all devices into the default channel subsystem (that is 0xfe).
"The ``s390-squash-mcss=on`` property has been obsoleted by allowing the cssid to be chosen freely. Instead of squashing subchannels into the default channel subsystem image for guests that do not support multiple channel subsystems, all devices can be put into the default channel subsystem image."
Quoted 18 lines
qemu-doc.texi +1
-0+ @section qemu-img command line arguments @subsection convert -s (since 2.0.0)qemu-options.hx +1
-1@@ -43,7 +43,7 @@ DEF("machine", HAS_ARG, QEMU_OPTION_machine, \ " suppress-vmdesc=on|off disables self-describing migration (default=off)\n" " nvdimm=on|off controls NVDIMM support (default=off)\n" " enforce-config-section=on|off enforce configuration section migration (default=off)\n" - " s390-squash-mcss=on|off controls support for squashing into default css (default=off)\n", + " s390-squash-mcss=on|off (deprecated) controls support for squashing into default css (default=off)\n", QEMU_ARCH_ALL) STEXI @item -machine [type=]@var{name}[,prop=@var{value}[,...]]
qemu-options.hx Enables or disables NVDIMM support. The default is off. · line 101
Quoted 4 lines
qemu-options.hx +1
-0@@ -98,6 +98,10 @@ Enables or disables NVDIMM support. The default is off. @item s390-squash-mcss=on|off Enables or disables squashing subchannels into the default css. The default is off. +NOTE: This property is deprecated and may be removed in future releases.
s/may/will/
Let them complain :)
qemu-options.hx Enables or disables NVDIMM support. The default is off. · line 104
Quoted 3 lines
qemu-options.hx +3
-0+Since version 2.12.0 the cssid can be chosen freely. Instead of squashing +mcss for guest that don't support multiple channel subsystems we recommend +putting all devices into the default channel subsystem (that is 0xfe).
I'd use the same text as above.
qemu-options.hx Enables or disables NVDIMM support. The default is off. · line 107
Quoted 3 lines
qemu-options.hx +0
-0@item enforce-config-section=on|off If @option{enforce-config-section} is set to @var{on}, force migration code to send configuration section even if the machine-type sets the
I'd love to do that for 2.11 already, but it is a bit too late for that, I think.