s390x: remove 's390-squash-mcss' option
PATCH 1/1 s390x: remove 's390-squash-mcss' option
This option has been deprecated for two releases; remove it.
--- hw/s390x/3270-ccw.c | 2 +- hw/s390x/css-bridge.c | 1 - hw/s390x/css.c | 6 ++---- hw/s390x/s390-ccw.c | 2 +- hw/s390x/s390-virtio-ccw.c | 37 ++----------------------------------- hw/s390x/virtio-ccw.c | 2 +- include/hw/s390x/css-bridge.h | 1 - include/hw/s390x/css.h | 9 +++------ include/hw/s390x/s390-virtio-ccw.h | 1 - qemu-deprecated.texi | 8 -------- qemu-options.hx | 10 ---------- target/s390x/cpu.c | 10 ---------- target/s390x/cpu.h | 1 - 13 files changed, 10 insertions(+), 80 deletions(-)
hw/s390x/3270-ccw.c +1 -1
@@ -104,7 +104,7 @@ static void emulated_ccw_3270_realize(DeviceState *ds, Error **errp)SubchDev *sch;Error *err =NULL ; - sch =css_create_sch (cdev->devno, cbus->squash_mcss, errp); + sch =css_create_sch (cdev->devno, errp);if (!sch) {return ; }
hw/s390x/css-bridge.c +0 -1
@@ -106,7 +106,6 @@ VirtualCssBus *virtual_css_bus_init(void)/* Create bus on bridge device */ bus =qbus_create (TYPE_VIRTUAL_CSS_BUS , dev,"virtual-css" ); cbus =VIRTUAL_CSS_BUS (bus); - cbus->squash_mcss =s390_get_squash_mcss ();/* Enable hotplugging */ qbus_set_hotplug_handler (bus, dev, &error_abort);
hw/s390x/css.c +2 -4
@@ -2359,15 +2359,13 @@ const PropertyInfo css_devid_ro_propinfo = { .get = get_css_devid, }; -SubchDev *css_create_sch (CssDevId bus_id,bool squash_mcss,Error **errp) +SubchDev *css_create_sch (CssDevId bus_id,Error **errp) {uint16_t schid =0 ;SubchDev *sch;if (bus_id.valid) { -if (squash_mcss) { - bus_id.cssid = channel_subsys.default_cssid; - }else if (!channel_subsys.css[bus_id.cssid]) { +if (!channel_subsys.css[bus_id.cssid]) {css_create_css_image (bus_id.cssid, false); }
hw/s390x/s390-ccw.c +1 -1
@@ -78,7 +78,7 @@ static void s390_ccw_realize(S390CCWDevice *cdev, char *sysfsdev, Error **errp) goto out_err_propagate; } - sch =css_create_sch (ccw_dev->devno, cbus->squash_mcss, &err); + sch =css_create_sch (ccw_dev->devno, &err);if (!sch) { goto out_mdevid_free; }
hw/s390x/s390-virtio-ccw.c +2 -35
@@ -282,19 +282,8 @@ static void ccw_init(MachineState *machine)virtio_ccw_register_hcalls ();s390_enable_css_support (s390_cpu_addr2state (0 )); -/* -* Non mcss-e enabled guests only see the devices from the default -* css, which is determined by the value of the squash_mcss property. -*/ -if (css_bus->squash_mcss) { - ret =css_create_css_image (0 , true); - }else { - ret =css_create_css_image (VIRTUAL_CSSID , true); - } -if (qemu_opt_get (qemu_get_machine_opts (),"s390-squash-mcss" )) { -warn_report ("The machine property 's390-squash-mcss' is deprecated" -" (obsoleted by lifting the cssid restrictions)." ); - } + + ret =css_create_css_image (VIRTUAL_CSSID , true);assert (ret ==0 );if (css_migration_enabled ()) {
@@ -575,21 +564,6 @@ static void machine_set_loadparm(Object *obj, const char *val, Error **errp) ms->loadparm[i] =' ' ;/* pad right with spaces */ } } -static inline bool machine_get_squash_mcss (Object *obj,Error **errp) -{ -S390CcwMachineState *ms =S390_CCW_MACHINE (obj); - -return ms->s390_squash_mcss; -} - -static inline void machine_set_squash_mcss (Object *obj,bool value, -Error **errp) -{ -S390CcwMachineState *ms =S390_CCW_MACHINE (obj); - - ms->s390_squash_mcss = value; -} -static inline void s390_machine_initfn (Object *obj) { object_property_add_bool(obj, "aes-key-wrap",
@@ -614,13 +588,6 @@ static inline void s390_machine_initfn(Object *obj)" to upper case) to pass to machine loader, boot manager," " and guest kernel" , NULL); -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" ,"(deprecated) " -"enable/disable squashing subchannels into the default css" , -NULL ); -object_property_set_bool (obj, false,"s390-squash-mcss" ,NULL ); }static const TypeInfo ccw_machine_info = {
hw/s390x/virtio-ccw.c +1 -1
@@ -700,7 +700,7 @@ static void virtio_ccw_device_realize(VirtioCcwDevice *dev, Error **errp)SubchDev *sch;Error *err =NULL ; - sch =css_create_sch (ccw_dev->devno, cbus->squash_mcss, errp); + sch =css_create_sch (ccw_dev->devno, errp);if (!sch) {return ; }
include/hw/s390x/css-bridge.h +0 -1
@@ -28,7 +28,6 @@ typedef struct VirtualCssBridge {/* virtual css bus type */ typedef struct VirtualCssBus {BusState parent_obj; -bool squash_mcss; }VirtualCssBus ;#define TYPE_VIRTUAL_CSS_BUS "virtual-css-bus"
include/hw/s390x/css.h +3 -6
@@ -266,11 +266,8 @@ extern const PropertyInfo css_devid_ro_propinfo;/** * Create a subchannel for the given bus id. * -* If @p bus_id is valid, and @p squash_mcss is true, verify that it is -* not already in use in the default css, and find a free devno from the -* default css image for it. -* If @p bus_id is valid, and @p squash_mcss is false, verify that it is -* not already in use, and find a free devno for it. +* If @p bus_id is valid, verify that it is not already in use, and find a +* free devno for it. * If @p bus_id is not valid find a free subchannel id and device number * across all subchannel sets and all css images starting from the default * css image.
@@ -282,7 +279,7 @@ extern const PropertyInfo css_devid_ro_propinfo;* The caller becomes owner of the returned subchannel structure and * is responsible for unregistering and freeing it. */ -SubchDev *css_create_sch (CssDevId bus_id,bool squash_mcss,Error **errp); +SubchDev *css_create_sch (CssDevId bus_id,Error **errp);/** Turn on css migration */ void css_register_vmstate (void );
include/hw/s390x/s390-virtio-ccw.h +0 -1
@@ -29,7 +29,6 @@ typedef struct S390CcwMachineState {bool aes_key_wrap;bool dea_key_wrap;uint8_t loadparm[8 ]; -bool s390_squash_mcss; } S390CcwMachineState; typedef struct S390CcwMachineClass {
qemu-deprecated.texi +0 -8
@@ -126,14 +126,6 @@ The ``-nodefconfig`` argument is a synonym for ``-no-user-config``. The @option{--balloon virtio} argument has been superseded by @option{--device virtio-balloon}. -@subsection -machine s390-squash-mcss=on|off (since 2.12.0) - -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. - @subsection -fsdev handle (since 2.12.0) The ``handle'' fsdev backend does not support symlinks and causes the 9p
qemu-options.hx +0 -10
@@ -43,7 +43,6 @@ 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 (deprecated) controls support for squashing into default css (default=off)\n" " memory-encryption=@var{} memory encryption object to use (default=none)\n", QEMU_ARCH_ALL) STEXI
@@ -96,15 +95,6 @@ controls whether DEA wrapping keys will be created to allow execution of DEA cryptographic functions. The default is on. @item nvdimm=on|off 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 will be removed in future releases. -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. @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
target/s390x/cpu.c +0 -10
@@ -421,16 +421,6 @@ void s390_crypto_reset(void) } } -bool s390_get_squash_mcss (void ) -{ -if (object_property_get_bool (OBJECT (qdev_get_machine ()),"s390-squash-mcss" , -NULL )) { -return true; - } - -return false; -} -void s390_enable_css_support (S390CPU *cpu) {if (kvm_enabled ()) {
target/s390x/cpu.h +0 -1
@@ -713,7 +713,6 @@ static inline void s390_do_cpu_load_normal(CPUState *cs, run_on_cpu_data arg)/* cpu.c */ void s390_crypto_reset (void ); -bool s390_get_squash_mcss (void );int s390_set_memory_limit (uint64_t new_limit,uint64_t *hw_limit);void s390_cmma_reset (void );void s390_enable_css_support (S390CPU *cpu);
Signature · 1 line
2.14.4
Quoted 286 lines · Cornelia Huck
This option has been deprecated for two releases; remove it.
Signed-off-by Cornelia Huck <[email protected]>--- hw/s390x/3270-ccw.c | 2 +- hw/s390x/css-bridge.c | 1 - hw/s390x/css.c | 6 ++---- hw/s390x/s390-ccw.c | 2 +- hw/s390x/s390-virtio-ccw.c | 37 ++----------------------------------- hw/s390x/virtio-ccw.c | 2 +- include/hw/s390x/css-bridge.h | 1 - include/hw/s390x/css.h | 9 +++------ include/hw/s390x/s390-virtio-ccw.h | 1 - qemu-deprecated.texi | 8 -------- qemu-options.hx | 10 ---------- target/s390x/cpu.c | 10 ---------- target/s390x/cpu.h | 1 - 13 files changed, 10 insertions(+), 80 deletions(-)hw/s390x/3270-ccw.c +1
-1@@ -104,7 +104,7 @@ static void emulated_ccw_3270_realize(DeviceState *ds, Error **errp)SubchDev *sch;Error *err =NULL ; - sch =css_create_sch (cdev->devno, cbus->squash_mcss, errp); + sch =css_create_sch (cdev->devno, errp);if (!sch) {return ; }hw/s390x/css-bridge.c +0
-1@@ -106,7 +106,6 @@ VirtualCssBus *virtual_css_bus_init(void)/* Create bus on bridge device */ bus =qbus_create (TYPE_VIRTUAL_CSS_BUS , dev,"virtual-css" ); cbus =VIRTUAL_CSS_BUS (bus); - cbus->squash_mcss =s390_get_squash_mcss ();/* Enable hotplugging */ qbus_set_hotplug_handler (bus, dev, &error_abort);hw/s390x/css.c +2
-4@@ -2359,15 +2359,13 @@ const PropertyInfo css_devid_ro_propinfo = { .get = get_css_devid, }; -SubchDev *css_create_sch (CssDevId bus_id,bool squash_mcss,Error **errp) +SubchDev *css_create_sch (CssDevId bus_id,Error **errp) {uint16_t schid =0 ;SubchDev *sch;if (bus_id.valid) { -if (squash_mcss) { - bus_id.cssid = channel_subsys.default_cssid; - }else if (!channel_subsys.css[bus_id.cssid]) { +if (!channel_subsys.css[bus_id.cssid]) {css_create_css_image (bus_id.cssid, false); }hw/s390x/s390-ccw.c +1
-1@@ -78,7 +78,7 @@ static void s390_ccw_realize(S390CCWDevice *cdev, char *sysfsdev, Error **errp) goto out_err_propagate; } - sch =css_create_sch (ccw_dev->devno, cbus->squash_mcss, &err); + sch =css_create_sch (ccw_dev->devno, &err);if (!sch) { goto out_mdevid_free; }hw/s390x/s390-virtio-ccw.c +2
-35@@ -282,19 +282,8 @@ static void ccw_init(MachineState *machine)virtio_ccw_register_hcalls ();s390_enable_css_support (s390_cpu_addr2state (0 )); -/* -* Non mcss-e enabled guests only see the devices from the default -* css, which is determined by the value of the squash_mcss property. -*/ -if (css_bus->squash_mcss) { - ret =css_create_css_image (0 , true); - }else { - ret =css_create_css_image (VIRTUAL_CSSID , true); - } -if (qemu_opt_get (qemu_get_machine_opts (),"s390-squash-mcss" )) { -warn_report ("The machine property 's390-squash-mcss' is deprecated" -" (obsoleted by lifting the cssid restrictions)." ); - } + + ret =css_create_css_image (VIRTUAL_CSSID , true);assert (ret ==0 );if (css_migration_enabled ()) {@@ -575,21 +564,6 @@ static void machine_set_loadparm(Object *obj, const char *val, Error **errp) ms->loadparm[i] =' ' ;/* pad right with spaces */ } } -static inline bool machine_get_squash_mcss (Object *obj,Error **errp) -{ -S390CcwMachineState *ms =S390_CCW_MACHINE (obj); - -return ms->s390_squash_mcss; -} - -static inline void machine_set_squash_mcss (Object *obj,bool value, -Error **errp) -{ -S390CcwMachineState *ms =S390_CCW_MACHINE (obj); - - ms->s390_squash_mcss = value; -} -static inline void s390_machine_initfn (Object *obj) { object_property_add_bool(obj, "aes-key-wrap",@@ -614,13 +588,6 @@ static inline void s390_machine_initfn(Object *obj)" to upper case) to pass to machine loader, boot manager," " and guest kernel" , NULL); -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" ,"(deprecated) " -"enable/disable squashing subchannels into the default css" , -NULL ); -object_property_set_bool (obj, false,"s390-squash-mcss" ,NULL ); }static const TypeInfo ccw_machine_info = {hw/s390x/virtio-ccw.c +1
-1@@ -700,7 +700,7 @@ static void virtio_ccw_device_realize(VirtioCcwDevice *dev, Error **errp)SubchDev *sch;Error *err =NULL ; - sch =css_create_sch (ccw_dev->devno, cbus->squash_mcss, errp); + sch =css_create_sch (ccw_dev->devno, errp);if (!sch) {return ; }include/hw/s390x/css-bridge.h +0
-1@@ -28,7 +28,6 @@ typedef struct VirtualCssBridge {/* virtual css bus type */ typedef struct VirtualCssBus {BusState parent_obj; -bool squash_mcss; }VirtualCssBus ;#define TYPE_VIRTUAL_CSS_BUS "virtual-css-bus"include/hw/s390x/css.h +3
-6@@ -266,11 +266,8 @@ extern const PropertyInfo css_devid_ro_propinfo;/** * Create a subchannel for the given bus id. * -* If @p bus_id is valid, and @p squash_mcss is true, verify that it is -* not already in use in the default css, and find a free devno from the -* default css image for it. -* If @p bus_id is valid, and @p squash_mcss is false, verify that it is -* not already in use, and find a free devno for it. +* If @p bus_id is valid, verify that it is not already in use, and find a +* free devno for it. * If @p bus_id is not valid find a free subchannel id and device number * across all subchannel sets and all css images starting from the default * css image. @@ -282,7 +279,7 @@ extern const PropertyInfo css_devid_ro_propinfo;* The caller becomes owner of the returned subchannel structure and * is responsible for unregistering and freeing it. */ -SubchDev *css_create_sch (CssDevId bus_id,bool squash_mcss,Error **errp); +SubchDev *css_create_sch (CssDevId bus_id,Error **errp);/** Turn on css migration */ void css_register_vmstate (void );include/hw/s390x/s390-virtio-ccw.h +0
-1@@ -29,7 +29,6 @@ typedef struct S390CcwMachineState {bool aes_key_wrap;bool dea_key_wrap;uint8_t loadparm[8 ]; -bool s390_squash_mcss; } S390CcwMachineState; typedef struct S390CcwMachineClass {qemu-deprecated.texi +0
-8@@ -126,14 +126,6 @@ The ``-nodefconfig`` argument is a synonym for ``-no-user-config``. The @option{--balloon virtio} argument has been superseded by @option{--device virtio-balloon}. -@subsection -machine s390-squash-mcss=on|off (since 2.12.0) - -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. - @subsection -fsdev handle (since 2.12.0) The ``handle'' fsdev backend does not support symlinks and causes the 9pqemu-options.hx +0
-10@@ -43,7 +43,6 @@ 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 (deprecated) controls support for squashing into default css (default=off)\n" " memory-encryption=@var{} memory encryption object to use (default=none)\n", QEMU_ARCH_ALL) STEXI@@ -96,15 +95,6 @@ controls whether DEA wrapping keys will be created to allow execution of DEA cryptographic functions. The default is on. @item nvdimm=on|off 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 will be removed in future releases. -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. @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 thetarget/s390x/cpu.c +0
-10@@ -421,16 +421,6 @@ void s390_crypto_reset(void) } } -bool s390_get_squash_mcss (void ) -{ -if (object_property_get_bool (OBJECT (qdev_get_machine ()),"s390-squash-mcss" , -NULL )) { -return true; - } - -return false; -} -void s390_enable_css_support (S390CPU *cpu) {if (kvm_enabled ()) {target/s390x/cpu.h +0
-1@@ -713,7 +713,6 @@ static inline void s390_do_cpu_load_normal(CPUState *cs, run_on_cpu_data arg)/* cpu.c */ void s390_crypto_reset (void ); -bool s390_get_squash_mcss (void );int s390_set_memory_limit (uint64_t new_limit,uint64_t *hw_limit);void s390_cmma_reset (void );void s390_enable_css_support (S390CPU *cpu);
Quoted 18 lines · Cornelia Huck
This option has been deprecated for two releases; remove it.
Signed-off-by Cornelia Huck <[email protected]>--- hw/s390x/3270-ccw.c | 2 +- hw/s390x/css-bridge.c | 1 - hw/s390x/css.c | 6 ++---- hw/s390x/s390-ccw.c | 2 +- hw/s390x/s390-virtio-ccw.c | 37 ++----------------------------------- hw/s390x/virtio-ccw.c | 2 +- include/hw/s390x/css-bridge.h | 1 - include/hw/s390x/css.h | 9 +++------ include/hw/s390x/s390-virtio-ccw.h | 1 - qemu-deprecated.texi | 8 -------- qemu-options.hx | 10 ---------- target/s390x/cpu.c | 10 ---------- target/s390x/cpu.h | 1 - 13 files changed, 10 insertions(+), 80 deletions(-)
Looks like libvirt did not use this option at all according to my brief grepping, so it should be okay to remove it.
Quoted 20 lines · On Tue, 24 Jul 2018 13:15:50 +0200 Peter Krempa <[email protected]> wrote:
Quoted 18 lines · Cornelia Huck
This option has been deprecated for two releases; remove it.
Signed-off-by Cornelia Huck <[email protected]>--- hw/s390x/3270-ccw.c | 2 +- hw/s390x/css-bridge.c | 1 - hw/s390x/css.c | 6 ++---- hw/s390x/s390-ccw.c | 2 +- hw/s390x/s390-virtio-ccw.c | 37 ++----------------------------------- hw/s390x/virtio-ccw.c | 2 +- include/hw/s390x/css-bridge.h | 1 - include/hw/s390x/css.h | 9 +++------ include/hw/s390x/s390-virtio-ccw.h | 1 - qemu-deprecated.texi | 8 -------- qemu-options.hx | 10 ---------- target/s390x/cpu.c | 10 ---------- target/s390x/cpu.h | 1 - 13 files changed, 10 insertions(+), 80 deletions(-)
Quoted 2 lines
Looks like libvirt did not use this option at all according to my brief grepping, so it should be okay to remove it.
Yes, the option has never been used to my knowledge.
Thanks for checking; it seems adding libvir-list as reviewer for qemu-deprecated.texi is working as designed :)
Quoted 18 lines · Cornelia Huck
This option has been deprecated for two releases; remove it.
Signed-off-by Cornelia Huck <[email protected]>--- hw/s390x/3270-ccw.c | 2 +- hw/s390x/css-bridge.c | 1 - hw/s390x/css.c | 6 ++---- hw/s390x/s390-ccw.c | 2 +- hw/s390x/s390-virtio-ccw.c | 37 ++----------------------------------- hw/s390x/virtio-ccw.c | 2 +- include/hw/s390x/css-bridge.h | 1 - include/hw/s390x/css.h | 9 +++------ include/hw/s390x/s390-virtio-ccw.h | 1 - qemu-deprecated.texi | 8 -------- qemu-options.hx | 10 ---------- target/s390x/cpu.c | 10 ---------- target/s390x/cpu.h | 1 - 13 files changed, 10 insertions(+), 80 deletions(-)
Quoted 3 lines · Cornelia Huck
This option has been deprecated for two releases; remove it.
Signed-off-by Cornelia Huck <[email protected]>
Quoted 283 lines
--- hw/s390x/3270-ccw.c | 2 +- hw/s390x/css-bridge.c | 1 - hw/s390x/css.c | 6 ++---- hw/s390x/s390-ccw.c | 2 +- hw/s390x/s390-virtio-ccw.c | 37 ++----------------------------------- hw/s390x/virtio-ccw.c | 2 +- include/hw/s390x/css-bridge.h | 1 - include/hw/s390x/css.h | 9 +++------ include/hw/s390x/s390-virtio-ccw.h | 1 - qemu-deprecated.texi | 8 -------- qemu-options.hx | 10 ---------- target/s390x/cpu.c | 10 ---------- target/s390x/cpu.h | 1 - 13 files changed, 10 insertions(+), 80 deletions(-)hw/s390x/3270-ccw.c +1
-1@@ -104,7 +104,7 @@ static void emulated_ccw_3270_realize(DeviceState *ds, Error **errp)SubchDev *sch;Error *err =NULL ; - sch =css_create_sch (cdev->devno, cbus->squash_mcss, errp); + sch =css_create_sch (cdev->devno, errp);if (!sch) {return ; }hw/s390x/css-bridge.c +0
-1@@ -106,7 +106,6 @@ VirtualCssBus *virtual_css_bus_init(void)/* Create bus on bridge device */ bus =qbus_create (TYPE_VIRTUAL_CSS_BUS , dev,"virtual-css" ); cbus =VIRTUAL_CSS_BUS (bus); - cbus->squash_mcss =s390_get_squash_mcss ();/* Enable hotplugging */ qbus_set_hotplug_handler (bus, dev, &error_abort);hw/s390x/css.c +2
-4@@ -2359,15 +2359,13 @@ const PropertyInfo css_devid_ro_propinfo = { .get = get_css_devid, }; -SubchDev *css_create_sch (CssDevId bus_id,bool squash_mcss,Error **errp) +SubchDev *css_create_sch (CssDevId bus_id,Error **errp) {uint16_t schid =0 ;SubchDev *sch;if (bus_id.valid) { -if (squash_mcss) { - bus_id.cssid = channel_subsys.default_cssid; - }else if (!channel_subsys.css[bus_id.cssid]) { +if (!channel_subsys.css[bus_id.cssid]) {css_create_css_image (bus_id.cssid, false); }hw/s390x/s390-ccw.c +1
-1@@ -78,7 +78,7 @@ static void s390_ccw_realize(S390CCWDevice *cdev, char *sysfsdev, Error **errp) goto out_err_propagate; } - sch =css_create_sch (ccw_dev->devno, cbus->squash_mcss, &err); + sch =css_create_sch (ccw_dev->devno, &err);if (!sch) { goto out_mdevid_free; }hw/s390x/s390-virtio-ccw.c +2
-35@@ -282,19 +282,8 @@ static void ccw_init(MachineState *machine)virtio_ccw_register_hcalls ();s390_enable_css_support (s390_cpu_addr2state (0 )); -/* -* Non mcss-e enabled guests only see the devices from the default -* css, which is determined by the value of the squash_mcss property. -*/ -if (css_bus->squash_mcss) { - ret =css_create_css_image (0 , true); - }else { - ret =css_create_css_image (VIRTUAL_CSSID , true); - } -if (qemu_opt_get (qemu_get_machine_opts (),"s390-squash-mcss" )) { -warn_report ("The machine property 's390-squash-mcss' is deprecated" -" (obsoleted by lifting the cssid restrictions)." ); - } + + ret =css_create_css_image (VIRTUAL_CSSID , true);assert (ret ==0 );if (css_migration_enabled ()) {@@ -575,21 +564,6 @@ static void machine_set_loadparm(Object *obj, const char *val, Error **errp) ms->loadparm[i] =' ' ;/* pad right with spaces */ } } -static inline bool machine_get_squash_mcss (Object *obj,Error **errp) -{ -S390CcwMachineState *ms =S390_CCW_MACHINE (obj); - -return ms->s390_squash_mcss; -} - -static inline void machine_set_squash_mcss (Object *obj,bool value, -Error **errp) -{ -S390CcwMachineState *ms =S390_CCW_MACHINE (obj); - - ms->s390_squash_mcss = value; -} -static inline void s390_machine_initfn (Object *obj) { object_property_add_bool(obj, "aes-key-wrap",@@ -614,13 +588,6 @@ static inline void s390_machine_initfn(Object *obj)" to upper case) to pass to machine loader, boot manager," " and guest kernel" , NULL); -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" ,"(deprecated) " -"enable/disable squashing subchannels into the default css" , -NULL ); -object_property_set_bool (obj, false,"s390-squash-mcss" ,NULL ); }static const TypeInfo ccw_machine_info = {hw/s390x/virtio-ccw.c +1
-1@@ -700,7 +700,7 @@ static void virtio_ccw_device_realize(VirtioCcwDevice *dev, Error **errp)SubchDev *sch;Error *err =NULL ; - sch =css_create_sch (ccw_dev->devno, cbus->squash_mcss, errp); + sch =css_create_sch (ccw_dev->devno, errp);if (!sch) {return ; }include/hw/s390x/css-bridge.h +0
-1@@ -28,7 +28,6 @@ typedef struct VirtualCssBridge {/* virtual css bus type */ typedef struct VirtualCssBus {BusState parent_obj; -bool squash_mcss; }VirtualCssBus ;#define TYPE_VIRTUAL_CSS_BUS "virtual-css-bus"include/hw/s390x/css.h +3
-6@@ -266,11 +266,8 @@ extern const PropertyInfo css_devid_ro_propinfo;/** * Create a subchannel for the given bus id. * -* If @p bus_id is valid, and @p squash_mcss is true, verify that it is -* not already in use in the default css, and find a free devno from the -* default css image for it. -* If @p bus_id is valid, and @p squash_mcss is false, verify that it is -* not already in use, and find a free devno for it. +* If @p bus_id is valid, verify that it is not already in use, and find a +* free devno for it. * If @p bus_id is not valid find a free subchannel id and device number * across all subchannel sets and all css images starting from the default * css image. @@ -282,7 +279,7 @@ extern const PropertyInfo css_devid_ro_propinfo;* The caller becomes owner of the returned subchannel structure and * is responsible for unregistering and freeing it. */ -SubchDev *css_create_sch (CssDevId bus_id,bool squash_mcss,Error **errp); +SubchDev *css_create_sch (CssDevId bus_id,Error **errp);/** Turn on css migration */ void css_register_vmstate (void );include/hw/s390x/s390-virtio-ccw.h +0
-1@@ -29,7 +29,6 @@ typedef struct S390CcwMachineState {bool aes_key_wrap;bool dea_key_wrap;uint8_t loadparm[8 ]; -bool s390_squash_mcss; } S390CcwMachineState; typedef struct S390CcwMachineClass {qemu-deprecated.texi +0
-8@@ -126,14 +126,6 @@ The ``-nodefconfig`` argument is a synonym for ``-no-user-config``. The @option{--balloon virtio} argument has been superseded by @option{--device virtio-balloon}. -@subsection -machine s390-squash-mcss=on|off (since 2.12.0) - -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. - @subsection -fsdev handle (since 2.12.0) The ``handle'' fsdev backend does not support symlinks and causes the 9pqemu-options.hx +0
-10@@ -43,7 +43,6 @@ 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 (deprecated) controls support for squashing into default css (default=off)\n" " memory-encryption=@var{} memory encryption object to use (default=none)\n", QEMU_ARCH_ALL) STEXI@@ -96,15 +95,6 @@ controls whether DEA wrapping keys will be created to allow execution of DEA cryptographic functions. The default is on. @item nvdimm=on|off 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 will be removed in future releases. -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. @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 thetarget/s390x/cpu.c +0
-10@@ -421,16 +421,6 @@ void s390_crypto_reset(void) } } -bool s390_get_squash_mcss (void ) -{ -if (object_property_get_bool (OBJECT (qdev_get_machine ()),"s390-squash-mcss" , -NULL )) { -return true; - } - -return false; -} -void s390_enable_css_support (S390CPU *cpu) {if (kvm_enabled ()) {target/s390x/cpu.h +0
-1@@ -713,7 +713,6 @@ static inline void s390_do_cpu_load_normal(CPUState *cs, run_on_cpu_data arg)/* cpu.c */ void s390_crypto_reset (void ); -bool s390_get_squash_mcss (void );int s390_set_memory_limit (uint64_t new_limit,uint64_t *hw_limit);void s390_cmma_reset (void );void s390_enable_css_support (S390CPU *cpu);
Cornelia Huck
AppliedQuoted 18 lines · On Tue, 24 Jul 2018 11:24:13 +0200 Cornelia Huck <[email protected]> wrote:
This option has been deprecated for two releases; remove it.
Signed-off-by Cornelia Huck <[email protected]>--- hw/s390x/3270-ccw.c | 2 +- hw/s390x/css-bridge.c | 1 - hw/s390x/css.c | 6 ++---- hw/s390x/s390-ccw.c | 2 +- hw/s390x/s390-virtio-ccw.c | 37 ++----------------------------------- hw/s390x/virtio-ccw.c | 2 +- include/hw/s390x/css-bridge.h | 1 - include/hw/s390x/css.h | 9 +++------ include/hw/s390x/s390-virtio-ccw.h | 1 - qemu-deprecated.texi | 8 -------- qemu-options.hx | 10 ---------- target/s390x/cpu.c | 10 ---------- target/s390x/cpu.h | 1 - 13 files changed, 10 insertions(+), 80 deletions(-)
Queued to s390-next.
hw/s390x/css-bridge.c VirtualCssBus *virtual_css_bus_init(void) · line 108
Quoted 8 lines · Cornelia Huck
hw/s390x/css-bridge.c +0
-0@@ -106,7 +106,6 @@ VirtualCssBus *virtual_css_bus_init(void)/* Create bus on bridge device */ bus =qbus_create (TYPE_VIRTUAL_CSS_BUS , dev,"virtual-css" ); cbus =VIRTUAL_CSS_BUS (bus);
Not used now?
Fam
Quoted 12 lines · On Wed, 1 Aug 2018 18:21:27 +0800 Fam Zheng <[email protected]> wrote:
hw/s390x/css-bridge.c VirtualCssBus *virtual_css_bus_init(void) · line 108
Quoted 8 lines · Cornelia Huck
hw/s390x/css-bridge.c +0
-0@@ -106,7 +106,6 @@ VirtualCssBus *virtual_css_bus_init(void)/* Create bus on bridge device */ bus =qbus_create (TYPE_VIRTUAL_CSS_BUS , dev,"virtual-css" ); cbus =VIRTUAL_CSS_BUS (bus);Not used now?
Quoted 1 line
Fam
Indeed, we can ditch the cbus variable.
Quoted 15 lines · On Wed, 1 Aug 2018 14:54:51 +0200 Cornelia Huck <[email protected]> wrote:
Quoted 12 lines · On Wed, 1 Aug 2018 18:21:27 +0800 Fam Zheng <[email protected]> wrote:
hw/s390x/css-bridge.c VirtualCssBus *virtual_css_bus_init(void) · line 108
Quoted 8 lines · Cornelia Huck
hw/s390x/css-bridge.c +0
-0@@ -106,7 +106,6 @@ VirtualCssBus *virtual_css_bus_init(void)/* Create bus on bridge device */ bus =qbus_create (TYPE_VIRTUAL_CSS_BUS , dev,"virtual-css" ); cbus =VIRTUAL_CSS_BUS (bus);Not used now?
Quoted 3 lines
Quoted 1 line
Fam
Indeed, we can ditch the cbus variable.
...or not :) We still need it for the return value, which is processed in ccw_init(). We could change the return code of the function to BusState, but I'm not sure it is worth the hassle.
Quoted 18 lines · On Wed, 1 Aug 2018 15:11:23 +0200 Cornelia Huck <[email protected]> wrote:
Quoted 15 lines · On Wed, 1 Aug 2018 14:54:51 +0200 Cornelia Huck <[email protected]> wrote:
Quoted 12 lines · On Wed, 1 Aug 2018 18:21:27 +0800 Fam Zheng <[email protected]> wrote:
hw/s390x/css-bridge.c VirtualCssBus *virtual_css_bus_init(void) · line 108
Quoted 8 lines · Cornelia Huck
hw/s390x/css-bridge.c +0
-0@@ -106,7 +106,6 @@ VirtualCssBus *virtual_css_bus_init(void)/* Create bus on bridge device */ bus =qbus_create (TYPE_VIRTUAL_CSS_BUS , dev,"virtual-css" ); cbus =VIRTUAL_CSS_BUS (bus);Not used now?
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Fam
Indeed, we can ditch the cbus variable.
...or not :) We still need it for the return value, which is processed in
ccw_init(). We could change the return code of the function to BusState, but I'm not sure it is worth the hassle.
...but we can indeed get rid of the cbus and qbus variables in s390_ccw_realize().
Quoted 24 lines · Cornelia Huck
Quoted 20 lines · On Wed, 1 Aug 2018 15:11:23 +0200 Cornelia Huck <[email protected]> wrote:
Quoted 17 lines · On Wed, 1 Aug 2018 14:54:51 +0200 Cornelia Huck <[email protected]> wrote:
Quoted 13 lines · On Wed, 1 Aug 2018 18:21:27 +0800 Fam Zheng <[email protected]> wrote:
hw/s390x/css-bridge.c VirtualCssBus *virtual_css_bus_init(void) · line 108
Quoted 8 lines · Cornelia Huck
hw/s390x/css-bridge.c +0
-0@@ -106,7 +106,6 @@ VirtualCssBus *virtual_css_bus_init(void)/* Create bus on bridge device */ bus =qbus_create (TYPE_VIRTUAL_CSS_BUS , dev,"virtual-css" ); cbus =VIRTUAL_CSS_BUS (bus);Not used now?
Fam
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Indeed, we can ditch the cbus variable.
...or not :) We still need it for the return value, which is processed in
ccw_init(). We could change the return code of the function to BusState, but I'm not sure it is worth the hassle....but we can indeed get rid of the cbus and qbus variables in
s390_ccw_realize().
I got this from a patchew.org test (make docker-test-clang@ubuntu):
/tmp/qemu-test/src/hw/s390x/3270-ccw.c:103:20: error: unused variable 'cbus' [-Werror,-Wunused-variable]
VirtualCssBus *cbus = VIRTUAL_CSS_BUS(qbus);
^1 error generated./tmp/qemu-test/src/rules.mak:69: recipe for target 'hw/s390x/3270-ccw.o' failed
Quoted 34 lines · On Thu, 2 Aug 2018 09:34:37 +0800 Fam Zheng <[email protected]> wrote:
Quoted 24 lines · Cornelia Huck
Quoted 20 lines · On Wed, 1 Aug 2018 15:11:23 +0200 Cornelia Huck <[email protected]> wrote:
Quoted 17 lines · On Wed, 1 Aug 2018 14:54:51 +0200 Cornelia Huck <[email protected]> wrote:
Quoted 13 lines · On Wed, 1 Aug 2018 18:21:27 +0800 Fam Zheng <[email protected]> wrote:
hw/s390x/css-bridge.c VirtualCssBus *virtual_css_bus_init(void) · line 108
Quoted 8 lines · Cornelia Huck
hw/s390x/css-bridge.c +0
-0@@ -106,7 +106,6 @@ VirtualCssBus *virtual_css_bus_init(void)/* Create bus on bridge device */ bus =qbus_create (TYPE_VIRTUAL_CSS_BUS , dev,"virtual-css" ); cbus =VIRTUAL_CSS_BUS (bus);Not used now?
Fam
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Indeed, we can ditch the cbus variable.
...or not :) We still need it for the return value, which is processed in
ccw_init(). We could change the return code of the function to BusState, but I'm not sure it is worth the hassle....but we can indeed get rid of the cbus and qbus variables in
s390_ccw_realize().
Quoted 8 lines
I got this from a patchew.org test (make docker-test-clang@ubuntu):
/tmp/qemu-test/src/hw/s390x/3270-ccw.c:103:20: error: unused variable 'cbus' [-Werror,-Wunused-variable]VirtualCssBus *cbus = VIRTUAL_CSS_BUS(qbus); ^1 error generated.
/tmp/qemu-test/src/rules.mak:69: recipe for target 'hw/s390x/3270-ccw.o' failed
Odd, why didn't I see that...
...oh wait. Why do I have -disable-werror set? I'll send a patch.
Quoted 46 lines · On Thu, 2 Aug 2018 09:15:24 +0200 Cornelia Huck <[email protected]> wrote:
Quoted 34 lines · On Thu, 2 Aug 2018 09:34:37 +0800 Fam Zheng <[email protected]> wrote:
Quoted 24 lines · Cornelia Huck
Quoted 20 lines · On Wed, 1 Aug 2018 15:11:23 +0200 Cornelia Huck <[email protected]> wrote:
Quoted 17 lines · On Wed, 1 Aug 2018 14:54:51 +0200 Cornelia Huck <[email protected]> wrote:
Quoted 13 lines · On Wed, 1 Aug 2018 18:21:27 +0800 Fam Zheng <[email protected]> wrote:
hw/s390x/css-bridge.c VirtualCssBus *virtual_css_bus_init(void) · line 108
Quoted 8 lines · Cornelia Huck
hw/s390x/css-bridge.c +0
-0@@ -106,7 +106,6 @@ VirtualCssBus *virtual_css_bus_init(void)/* Create bus on bridge device */ bus =qbus_create (TYPE_VIRTUAL_CSS_BUS , dev,"virtual-css" ); cbus =VIRTUAL_CSS_BUS (bus);Not used now?
Fam
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Indeed, we can ditch the cbus variable.
...or not :) We still need it for the return value, which is processed in
ccw_init(). We could change the return code of the function to BusState, but I'm not sure it is worth the hassle....but we can indeed get rid of the cbus and qbus variables in
s390_ccw_realize().Quoted 8 lines
I got this from a patchew.org test (make docker-test-clang@ubuntu):
/tmp/qemu-test/src/hw/s390x/3270-ccw.c:103:20: error: unused variable 'cbus' [-Werror,-Wunused-variable]VirtualCssBus *cbus = VIRTUAL_CSS_BUS(qbus); ^1 error generated.
/tmp/qemu-test/src/rules.mak:69: recipe for target 'hw/s390x/3270-ccw.o' failed
Quoted 3 lines
Odd, why didn't I see that...
...oh wait. Why do I have -disable-werror set? I'll send a patch.
On second thought, I'll just merge in the following:
hw/s390x/3270-ccw.c +0 -3
@@ -98,9 +98,6 @@ static void emulated_ccw_3270_realize(DeviceState *ds, Error **errp)EmulatedCcw3270Class *ck =EMULATED_CCW_3270_GET_CLASS (dev);CcwDevice *cdev =CCW_DEVICE (ds);CCWDeviceClass *cdk =CCW_DEVICE_GET_CLASS (cdev); -DeviceState *parent =DEVICE (cdev); -BusState *qbus =qdev_get_parent_bus (parent); -VirtualCssBus *cbus =VIRTUAL_CSS_BUS (qbus);SubchDev *sch;Error *err =NULL ;
hw/s390x/s390-ccw.c +0 -2
@@ -67,8 +67,6 @@ static void s390_ccw_realize(S390CCWDevice *cdev, char *sysfsdev, Error **errp)CcwDevice *ccw_dev =CCW_DEVICE (cdev);CCWDeviceClass *ck =CCW_DEVICE_GET_CLASS (ccw_dev);DeviceState *parent =DEVICE (ccw_dev); -BusState *qbus =qdev_get_parent_bus (parent); -VirtualCssBus *cbus =VIRTUAL_CSS_BUS (qbus);SubchDev *sch;int ret;Error *err =NULL ;
Quoted 75 lines · On Thu, 2 Aug 2018 09:33:48 +0200 Cornelia Huck <[email protected]> wrote:
Quoted 46 lines · On Thu, 2 Aug 2018 09:15:24 +0200 Cornelia Huck <[email protected]> wrote:
Quoted 34 lines · On Thu, 2 Aug 2018 09:34:37 +0800 Fam Zheng <[email protected]> wrote:
Quoted 24 lines · Cornelia Huck
Quoted 20 lines · On Wed, 1 Aug 2018 15:11:23 +0200 Cornelia Huck <[email protected]> wrote:
Quoted 17 lines · On Wed, 1 Aug 2018 14:54:51 +0200 Cornelia Huck <[email protected]> wrote:
Quoted 13 lines · On Wed, 1 Aug 2018 18:21:27 +0800 Fam Zheng <[email protected]> wrote:
hw/s390x/css-bridge.c VirtualCssBus *virtual_css_bus_init(void) · line 108
Quoted 8 lines · Cornelia Huck
hw/s390x/css-bridge.c +0
-0@@ -106,7 +106,6 @@ VirtualCssBus *virtual_css_bus_init(void)/* Create bus on bridge device */ bus =qbus_create (TYPE_VIRTUAL_CSS_BUS , dev,"virtual-css" ); cbus =VIRTUAL_CSS_BUS (bus);Not used now?
Fam
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Indeed, we can ditch the cbus variable.
...or not :) We still need it for the return value, which is processed in
ccw_init(). We could change the return code of the function to BusState, but I'm not sure it is worth the hassle....but we can indeed get rid of the cbus and qbus variables in
s390_ccw_realize().Quoted 8 lines
I got this from a patchew.org test (make docker-test-clang@ubuntu):
/tmp/qemu-test/src/hw/s390x/3270-ccw.c:103:20: error: unused variable 'cbus' [-Werror,-Wunused-variable]VirtualCssBus *cbus = VIRTUAL_CSS_BUS(qbus); ^1 error generated.
/tmp/qemu-test/src/rules.mak:69: recipe for target 'hw/s390x/3270-ccw.o' failedQuoted 3 lines
Odd, why didn't I see that...
...oh wait. Why do I have -disable-werror set? I'll send a patch.
On second thought, I'll just merge in the following:
hw/s390x/3270-ccw.c +0
-3@@ -98,9 +98,6 @@ static void emulated_ccw_3270_realize(DeviceState *ds, Error **errp)EmulatedCcw3270Class *ck =EMULATED_CCW_3270_GET_CLASS (dev);CcwDevice *cdev =CCW_DEVICE (ds);CCWDeviceClass *cdk =CCW_DEVICE_GET_CLASS (cdev); -DeviceState *parent =DEVICE (cdev); -BusState *qbus =qdev_get_parent_bus (parent); -VirtualCssBus *cbus =VIRTUAL_CSS_BUS (qbus);SubchDev *sch;Error *err =NULL ;hw/s390x/s390-ccw.c +0
-0
hw/s390x/s390-ccw.c static void s390_ccw_realize(S390CCWDevice *cdev, char *sysfsdev, Error **errp) · line 72
Quoted 8 lines
hw/s390x/s390-ccw.c +0
-2@@ -67,8 +67,6 @@ static void s390_ccw_realize(S390CCWDevice *cdev, char *sysfsdev, Error **errp)CcwDevice *ccw_dev =CCW_DEVICE (cdev);CCWDeviceClass *ck =CCW_DEVICE_GET_CLASS (ccw_dev);DeviceState *parent =DEVICE (ccw_dev); -BusState *qbus =qdev_get_parent_bus (parent); -VirtualCssBus *cbus =VIRTUAL_CSS_BUS (qbus);SubchDev *sch;int ret;Error *err =NULL ;
...and the one in virtio-ccw.c as well. I swear I'm not trying to break some kind of reply-to-myself record here :)