hw/s390x: Allow to configure the consoles with the "-serial" parameter
PATCH 1/1 hw/s390x: Allow to configure the consoles with the "-serial" parameter
The consoles ("sclpconsole" and "sclplmconsole") can only be configured with "-device" and "-chardev" so far. Other machines use the convenience option "-serial" to configure the default consoles, even for virtual consoles like spapr-vty on the pseries machine. So let's support this option on s390x, too. This way we can easily enable the serial console here again with "-nodefaults", for example:
qemu-system-s390x -no-shutdown -nographic -nodefaults -serial mon:stdio
... which is way shorter than typing:
qemu-system-s390x -no-shutdown -nographic -nodefaults \
-chardev stdio,id=c1,mux=on -device sclpconsole,chardev=c1 \
-mon chardev=c1
The -serial parameter can also be used if you only want to see the QEMU monitor on stdio without using -nodefaults, but not the console output. That's something that is pretty impossible with the current code today:
qemu-system-s390x -no-shutdown -nographic -serial none
While we're at it, this patch also maps the second -serial option to the "sclplmconsole", so that there is now an easy way to configure this second console on s390x, too, for example:
qemu-system-s390x -no-shutdown -nographic -serial null -serial mon:stdio
Additionally, the new code is also smaller than the old one and we have less s390x-specific code in vl.c :-)
I've also checked that migration still works as expected by migrating a guest with console output back and forth between a qemu-system-s390x that has this patch and an instance without this patch.
---
RFC -> v1:
- Improved the patch description (provided examples)
- Moved the "init consoles" hunk in ccw_init to a later point in time so that the output of "info qom-tree" shows the same order of devices in the "/machine/unattached" tree.
hw/s390x/event-facility.c | 14 +++++++++++ hw/s390x/s390-virtio-ccw.c | 19 +++++++++++++-- include/hw/boards.h | 1 - include/hw/s390x/event-facility.h | 2 ++ vl.c | 50 --------------------------------------- 5 files changed, 33 insertions(+), 53 deletions(-)
hw/s390x/event-facility.c +14 -0
@@ -511,3 +511,17 @@ static void register_types(void) }type_init (register_types) + +BusState *sclp_get_event_facility_bus(void) +{ +Object *busobj; +SCLPEventsBus *sbus; + + busobj =object_resolve_path_type ("" ,TYPE_SCLP_EVENTS_BUS ,NULL ); + sbus =OBJECT_CHECK (SCLPEventsBus, busobj,TYPE_SCLP_EVENTS_BUS ); +if (!sbus) { +return NULL ; + } + +return &sbus->qbus; +}
hw/s390x/s390-virtio-ccw.c +17 -2
@@ -288,6 +288,15 @@ static void s390_create_virtio_net(BusState *bus, const char *name) } } +static void s390_create_sclpconsole (const char *type,Chardev *chardev) +{ +DeviceState *dev; + + dev =qdev_create (sclp_get_event_facility_bus (), type); +qdev_prop_set_chr (dev,"chardev" , chardev); +qdev_init_nofail (dev); +} +static void ccw_init (MachineState *machine) {int ret;
@@ -346,6 +355,14 @@ static void ccw_init(MachineState *machine)/* Create VirtIO network adapters */ s390_create_virtio_net (BUS (css_bus),"virtio-net-ccw" ); +/* init consoles */ +if (serial_hds[0 ]) { +s390_create_sclpconsole ("sclpconsole" , serial_hds[0 ]); + } +if (serial_hds[1 ]) { +s390_create_sclpconsole ("sclplmconsole" , serial_hds[1 ]); + } +/* Register savevm handler for guest TOD clock */ register_savevm_live (NULL ,"todclock" ,0 ,1 , &savevm_gtod,NULL ); }
@@ -470,10 +487,8 @@ static void ccw_machine_class_init(ObjectClass *oc, void *data) mc->block_default_type =IF_VIRTIO ; mc->no_cdrom =1 ; mc->no_floppy =1 ; - mc->no_serial =1 ; mc->no_parallel =1 ; mc->no_sdcard =1 ; - mc->use_sclp =1 ; mc->max_cpus =S390_MAX_CPUS ; mc->has_hotpluggable_cpus = true; mc->get_hotplug_handler = s390_get_hotplug_handler;
include/hw/boards.h +0 -1
@@ -180,7 +180,6 @@ struct MachineClass { unsigned int no_serial:1, no_parallel:1, use_virtcon:1, - use_sclp:1, no_floppy:1, no_cdrom:1, no_sdcard:1,
include/hw/s390x/event-facility.h +2 -0
@@ -210,4 +210,6 @@ typedef struct SCLPEventFacilityClass { bool (*event_pending)(SCLPEventFacility *ef); } SCLPEventFacilityClass; +BusState *sclp_get_event_facility_bus (void ); +#endif
vl.c +0 -50
103 lines not on this page · raw message
Signature · 1 line
1.8.3.1
Quoted 92 lines · Thomas Huth
The consoles ("sclpconsole" and "sclplmconsole") can only be configured with "-device" and "-chardev" so far. Other machines use the convenience option "-serial" to configure the default consoles, even for virtual consoles like spapr-vty on the pseries machine. So let's support this option on s390x, too. This way we can easily enable the serial console here again with "-nodefaults", for example:
qemu-system-s390x -no-shutdown -nographic -nodefaults -serial mon:stdio
... which is way shorter than typing:
qemu-system-s390x -no-shutdown -nographic -nodefaults \
-chardev stdio,id=c1,mux=on -device sclpconsole,chardev=c1 \
-mon chardev=c1The -serial parameter can also be used if you only want to see the QEMU monitor on stdio without using -nodefaults, but not the console output. That's something that is pretty impossible with the current code today:
qemu-system-s390x -no-shutdown -nographic -serial none
While we're at it, this patch also maps the second -serial option to the "sclplmconsole", so that there is now an easy way to configure this second console on s390x, too, for example:
qemu-system-s390x -no-shutdown -nographic -serial null -serial mon:stdio
Additionally, the new code is also smaller than the old one and we have less s390x-specific code in
vl.c:-)I've also checked that migration still works as expected by migrating a guest with console output back and forth between a qemu-system-s390x that has this patch and an instance without this patch.
Signed-off-by Thomas Huth <[email protected]>---
RFC -> v1:
- Improved the patch description (provided examples)
- Moved the "init consoles" hunk inccw_initto a later point in time so that the output of "info qom-tree" shows the same order of devices in the "/machine/unattached" tree.hw/s390x/event-facility.c | 14 +++++++++++ hw/s390x/s390-virtio-ccw.c | 19 +++++++++++++-- include/hw/boards.h | 1 - include/hw/s390x/event-facility.h | 2 ++ vl.c | 50 --------------------------------------- 5 files changed, 33 insertions(+), 53 deletions(-)hw/s390x/event-facility.c +14
-0@@ -511,3 +511,17 @@ static void register_types(void) }type_init (register_types) + +BusState *sclp_get_event_facility_bus(void) +{ +Object *busobj; +SCLPEventsBus *sbus; + + busobj =object_resolve_path_type ("" ,TYPE_SCLP_EVENTS_BUS ,NULL ); + sbus =OBJECT_CHECK (SCLPEventsBus, busobj,TYPE_SCLP_EVENTS_BUS ); +if (!sbus) { +return NULL ; + } + +return &sbus->qbus; +}hw/s390x/s390-virtio-ccw.c +9
-0@@ -288,6 +288,15 @@ static void s390_create_virtio_net(BusState *bus, const char *name) } } +static void s390_create_sclpconsole (const char *type,Chardev *chardev) +{ +DeviceState *dev; + + dev =qdev_create (sclp_get_event_facility_bus (), type); +qdev_prop_set_chr (dev,"chardev" , chardev); +qdev_init_nofail (dev); +} +static void ccw_init (MachineState *machine) {int ret;
hw/s390x/s390-virtio-ccw.c static void ccw_init(MachineState *machine) · line 364
Quoted 10 lines
hw/s390x/s390-virtio-ccw.c +7
-0@@ -346,6 +355,14 @@ static void ccw_init(MachineState *machine)/* Create VirtIO network adapters */ s390_create_virtio_net (BUS (css_bus),"virtio-net-ccw" ); +/* init consoles */ +if (serial_hds[0 ]) { +s390_create_sclpconsole ("sclpconsole" , serial_hds[0 ]); + } +if (serial_hds[1 ]) { +s390_create_sclpconsole ("sclplmconsole" , serial_hds[1 ]); + }
What happens if more -serial are defined? An error? Silently ignored?
(e.g. do we have to redefine MAX_SERIAL_PORTS on s390x or add checking code here?)
Quoted 145 lines
hw/s390x/s390-virtio-ccw.c +1
-2+/* Register savevm handler for guest TOD clock */ register_savevm_live (NULL ,"todclock" ,0 ,1 , &savevm_gtod,NULL ); }@@ -470,10 +487,8 @@ static void ccw_machine_class_init(ObjectClass *oc, void *data) mc->block_default_type =IF_VIRTIO ; mc->no_cdrom =1 ; mc->no_floppy =1 ; - mc->no_serial =1 ; mc->no_parallel =1 ; mc->no_sdcard =1 ; - mc->use_sclp =1 ; mc->max_cpus =S390_MAX_CPUS ; mc->has_hotpluggable_cpus = true; mc->get_hotplug_handler = s390_get_hotplug_handler;include/hw/boards.h +0
-1@@ -180,7 +180,6 @@ struct MachineClass { unsigned int no_serial:1, no_parallel:1, use_virtcon:1, - use_sclp:1, no_floppy:1, no_cdrom:1, no_sdcard:1,include/hw/s390x/event-facility.h +2
-0@@ -210,4 +210,6 @@ typedef struct SCLPEventFacilityClass { bool (*event_pending)(SCLPEventFacility *ef); } SCLPEventFacilityClass; +BusState *sclp_get_event_facility_bus (void ); +#endif vl.c +0
-47@@ -133,7 +133,6 @@ int main(int argc, char **argv)#include "sysemu/iothread.h" #define MAX_VIRTIO_CONSOLES 1 -#define MAX_SCLP_CONSOLES 1static const char *data_dir[16 ];static int data_dir_idx;@@ -157,7 +156,6 @@ int no_frame;Chardev *serial_hds[MAX_SERIAL_PORTS ];Chardev *parallel_hds[MAX_PARALLEL_PORTS ];Chardev *virtcon_hds[MAX_VIRTIO_CONSOLES ]; -Chardev *sclp_hds[MAX_SCLP_CONSOLES ];int win2k_install_hack =0 ;int singlestep =0 ;int smp_cpus;@@ -209,7 +207,6 @@ static int has_defaults = 1;static int default_serial =1 ;static int default_parallel =1 ;static int default_virtcon =1 ; -static int default_sclp =1 ;static int default_monitor =1 ;static int default_floppy =1 ;static int default_cdrom =1 ;@@ -2571,39 +2568,6 @@ static int virtcon_parse(const char *devname)return 0 ; } -static int sclp_parse (const char *devname) -{ -QemuOptsList *device =qemu_find_opts ("device" ); -static int index =0 ; -char label[32 ]; -QemuOpts *dev_opts; - -if (strcmp (devname,"none" ) ==0 ) { -return 0 ; - } -if (index ==MAX_SCLP_CONSOLES ) { -error_report ("too many sclp consoles" ); -exit (1 ); - } - -assert (arch_type ==QEMU_ARCH_S390X ); - - dev_opts =qemu_opts_create (device,NULL ,0 ,NULL ); -qemu_opt_set (dev_opts,"driver" ,"sclpconsole" , &error_abort); - -snprintf (label,sizeof (label),"sclpcon%d" , index); - sclp_hds[index] =qemu_chr_new (label, devname); -if (!sclp_hds[index]) { -error_report ("could not connect sclp console" -" to character backend '%s'" , devname); -return -1 ; - } -qemu_opt_set (dev_opts,"chardev" , label, &error_abort); - - index++; -return 0 ; -} -static int debugcon_parse (const char *devname) {QemuOpts *opts;@@ -4237,9 +4201,6 @@ int main(int argc, char **argv, char **envp)if (!has_defaults || !machine_class->use_virtcon) { default_virtcon =0 ; } -if (!has_defaults || !machine_class->use_sclp) { - default_sclp =0 ; - }if (!has_defaults || machine_class->no_floppy) { default_floppy =0 ; }@@ -4286,16 +4247,11 @@ int main(int argc, char **argv, char **envp)add_device_config (DEV_SERIAL ,"mon:stdio" ); }else if (default_virtcon && default_monitor) {add_device_config (DEV_VIRTCON ,"mon:stdio" ); - }else if (default_sclp && default_monitor) { -add_device_config (DEV_SCLP ,"mon:stdio" ); }else {if (default_serial)add_device_config (DEV_SERIAL ,"stdio" );if (default_virtcon)add_device_config (DEV_VIRTCON ,"stdio" ); -if (default_sclp) { -add_device_config (DEV_SCLP ,"stdio" ); - }if (default_monitor)monitor_parse ("stdio" ,"readline" , false); }@@ -4308,9 +4264,6 @@ int main(int argc, char **argv, char **envp)monitor_parse ("vc:80Cx24C" ,"readline" , false);if (default_virtcon)add_device_config (DEV_VIRTCON ,"vc:80Cx24C" ); -if (default_sclp) { -add_device_config (DEV_SCLP ,"vc:80Cx24C" ); - } }#if defined(CONFIG_VNC )
vl.c int main(int argc, char **argv, char **envp) · line 4518
Quoted 9 lines
vl.c +0
-3@@ -4560,9 +4513,6 @@ int main(int argc, char **argv, char **envp)exit (1 );if (foreach_device_config (DEV_VIRTCON , virtcon_parse) <0 )exit (1 ); -if (foreach_device_config (DEV_SCLP , sclp_parse) <0 ) { -exit (1 ); - }if (foreach_device_config (DEV_DEBUGCON , debugcon_parse) <0 )exit (1 );
Signature · 3 lines
Thanks, David / dhildenb
Quoted 96 lines · David Hildenbrand
Quoted 95 lines · Thomas Huth
The consoles ("sclpconsole" and "sclplmconsole") can only be configured with "-device" and "-chardev" so far. Other machines use the convenience option "-serial" to configure the default consoles, even for virtual consoles like spapr-vty on the pseries machine. So let's support this option on s390x, too. This way we can easily enable the serial console here again with "-nodefaults", for example:
qemu-system-s390x -no-shutdown -nographic -nodefaults -serial mon:stdio
... which is way shorter than typing:
qemu-system-s390x -no-shutdown -nographic -nodefaults \
-chardev stdio,id=c1,mux=on -device sclpconsole,chardev=c1 \
-mon chardev=c1The -serial parameter can also be used if you only want to see the QEMU monitor on stdio without using -nodefaults, but not the console output. That's something that is pretty impossible with the current code today:
qemu-system-s390x -no-shutdown -nographic -serial none
While we're at it, this patch also maps the second -serial option to the "sclplmconsole", so that there is now an easy way to configure this second console on s390x, too, for example:
qemu-system-s390x -no-shutdown -nographic -serial null -serial mon:stdio
Additionally, the new code is also smaller than the old one and we have less s390x-specific code in
vl.c:-)I've also checked that migration still works as expected by migrating a guest with console output back and forth between a qemu-system-s390x that has this patch and an instance without this patch.
Signed-off-by Thomas Huth <[email protected]>---
RFC -> v1:
- Improved the patch description (provided examples)
- Moved the "init consoles" hunk inccw_initto a later point in time so that the output of "info qom-tree" shows the same order of devices in the "/machine/unattached" tree.hw/s390x/event-facility.c | 14 +++++++++++ hw/s390x/s390-virtio-ccw.c | 19 +++++++++++++-- include/hw/boards.h | 1 - include/hw/s390x/event-facility.h | 2 ++ vl.c | 50 --------------------------------------- 5 files changed, 33 insertions(+), 53 deletions(-)hw/s390x/event-facility.c +14
-0@@ -511,3 +511,17 @@ static void register_types(void) }type_init (register_types) + +BusState *sclp_get_event_facility_bus(void) +{ +Object *busobj; +SCLPEventsBus *sbus; + + busobj =object_resolve_path_type ("" ,TYPE_SCLP_EVENTS_BUS ,NULL ); + sbus =OBJECT_CHECK (SCLPEventsBus, busobj,TYPE_SCLP_EVENTS_BUS ); +if (!sbus) { +return NULL ; + } + +return &sbus->qbus; +}hw/s390x/s390-virtio-ccw.c +9
-0@@ -288,6 +288,15 @@ static void s390_create_virtio_net(BusState *bus, const char *name) } } +static void s390_create_sclpconsole (const char *type,Chardev *chardev) +{ +DeviceState *dev; + + dev =qdev_create (sclp_get_event_facility_bus (), type); +qdev_prop_set_chr (dev,"chardev" , chardev); +qdev_init_nofail (dev); +} +static void ccw_init (MachineState *machine) {int ret;@@ -346,6 +355,14 @@ static void ccw_init(MachineState *machine)/* Create VirtIO network adapters */ s390_create_virtio_net (BUS (css_bus),"virtio-net-ccw" );
Quoted 9 lines
hw/s390x/s390-virtio-ccw.c static void ccw_init(MachineState *machine) · line 364
Quoted 7 lines
hw/s390x/s390-virtio-ccw.c +7
-0+/* init consoles */ +if (serial_hds[0 ]) { +s390_create_sclpconsole ("sclpconsole" , serial_hds[0 ]); + } +if (serial_hds[1 ]) { +s390_create_sclpconsole ("sclplmconsole" , serial_hds[1 ]); + }What happens if more -serial are defined? An error? Silently ignored?
Silently ignored, since this is also what almost all other machines are doing (look for serial_hds in hw/ and you'll see what I mean).
Quoted 2 lines
(e.g. do we have to redefine
MAX_SERIAL_PORTSon s390x or add checking code here?)
As all the other machines are also not redefining MAX_SERIAL_PORTS, I think we should also not do this on s390x now, should we?
Thomas
Quoted 27 lines · Thomas Huth
The consoles ("sclpconsole" and "sclplmconsole") can only be configured with "-device" and "-chardev" so far. Other machines use the convenience option "-serial" to configure the default consoles, even for virtual consoles like spapr-vty on the pseries machine. So let's support this option on s390x, too. This way we can easily enable the serial console here again with "-nodefaults", for example:
qemu-system-s390x -no-shutdown -nographic -nodefaults -serial mon:stdio
... which is way shorter than typing:
qemu-system-s390x -no-shutdown -nographic -nodefaults \
-chardev stdio,id=c1,mux=on -device sclpconsole,chardev=c1 \
-mon chardev=c1The -serial parameter can also be used if you only want to see the QEMU monitor on stdio without using -nodefaults, but not the console output. That's something that is pretty impossible with the current code today:
qemu-system-s390x -no-shutdown -nographic -serial none
While we're at it, this patch also maps the second -serial option to the "sclplmconsole", so that there is now an easy way to configure this second console on s390x, too, for example:
qemu-system-s390x -no-shutdown -nographic -serial null -serial mon:stdio
Quoted 8 lines
Additionally, the new code is also smaller than the old one and we have less s390x-specific code in
vl.c:-)I've also checked that migration still works as expected by migrating a guest with console output back and forth between a qemu-system-s390x that has this patch and an instance without this patch.
Signed-off-by Thomas Huth <[email protected]>
Very nice. I tested some combinations (only limited test) and everything looks good.
Quoted 19 lines · Thomas Huth
Quoted 16 lines · David Hildenbrand
Quoted 7 lines · Thomas Huth
The consoles ("sclpconsole" and "sclplmconsole") can only be configured with "-device" and "-chardev" so far. Other machines use the convenience option "-serial" to configure the default consoles, even for virtual consoles like spapr-vty on the pseries machine. So let's support this option on s390x, too. This way we can easily enable the serial console here again with "-nodefaults", for example:
hw/s390x/s390-virtio-ccw.c static void ccw_init(MachineState *machine) · line 364
Quoted 7 lines
hw/s390x/s390-virtio-ccw.c +7
-0+/* init consoles */ +if (serial_hds[0 ]) { +s390_create_sclpconsole ("sclpconsole" , serial_hds[0 ]); + } +if (serial_hds[1 ]) { +s390_create_sclpconsole ("sclplmconsole" , serial_hds[1 ]); + }Quoted 1 line
What happens if more -serial are defined? An error? Silently ignored?
Quoted 8 lines
Silently ignored, since this is also what almost all other machines are doing (look for
serial_hdsin hw/ and you'll see what I mean).Quoted 2 lines
(e.g. do we have to redefine
MAX_SERIAL_PORTSon s390x or add checking code here?)As all the other machines are also not redefining
MAX_SERIAL_PORTS, I think we should also not do this on s390x now, should we?
Note that I have a series on-list which removes the MAX_SERIAL_PORTS restriction, so you can have arbitrarily many serial ports. (If that gets into master before this there'll be a conflict, but it's easy to resolve: just change "serial_hds[n]" to "serial_hd(n)".)
thanks
-- PMM
Quoted 15 lines
Quoted 5 lines
Quoted 5 lines
int ret;hw/s390x/s390-virtio-ccw.c +0
-0@@ -346,6 +355,14 @@ static void ccw_init(MachineState *machine)/* Create VirtIO network adapters */ s390_create_virtio_net (BUS (css_bus),"virtio-net-ccw" );Quoted 9 lines
hw/s390x/s390-virtio-ccw.c static void ccw_init(MachineState *machine) · line 364
Quoted 7 lines
hw/s390x/s390-virtio-ccw.c +7
-0+/* init consoles */ +if (serial_hds[0 ]) { +s390_create_sclpconsole ("sclpconsole" , serial_hds[0 ]); + } +if (serial_hds[1 ]) { +s390_create_sclpconsole ("sclplmconsole" , serial_hds[1 ]); + }What happens if more -serial are defined? An error? Silently ignored?
Quoted 8 lines
Silently ignored, since this is also what almost all other machines are doing (look for
serial_hdsin hw/ and you'll see what I mean).Quoted 2 lines
(e.g. do we have to redefine
MAX_SERIAL_PORTSon s390x or add checking code here?)As all the other machines are also not redefining
MAX_SERIAL_PORTS, I think we should also not do this on s390x now, should we?
Then I guess if we would introduce it, we should do it for all other implementations. So I think we can just leave it as it is.
Quoted 3 lines
Thomas
Signature · 3 lines
Thanks, David / dhildenb
Quoted 25 lines · Thomas Huth
The consoles ("sclpconsole" and "sclplmconsole") can only be configured with "-device" and "-chardev" so far. Other machines use the convenience option "-serial" to configure the default consoles, even for virtual consoles like spapr-vty on the pseries machine. So let's support this option on s390x, too. This way we can easily enable the serial console here again with "-nodefaults", for example:
qemu-system-s390x -no-shutdown -nographic -nodefaults -serial mon:stdio
... which is way shorter than typing:
qemu-system-s390x -no-shutdown -nographic -nodefaults \
-chardev stdio,id=c1,mux=on -device sclpconsole,chardev=c1 \
-mon chardev=c1The -serial parameter can also be used if you only want to see the QEMU monitor on stdio without using -nodefaults, but not the console output. That's something that is pretty impossible with the current code today:
qemu-system-s390x -no-shutdown -nographic -serial none
While we're at it, this patch also maps the second -serial option to the "sclplmconsole", so that there is now an easy way to configure this second console on s390x, too, for example:
Quoted 8 lines
qemu-system-s390x -no-shutdown -nographic -serial null -serial mon:stdio
Additionally, the new code is also smaller than the old one and we have less s390x-specific code in
vl.c:-)I've also checked that migration still works as expected by migrating a guest with console output back and forth between a qemu-system-s390x that has this patch and an instance without this patch.
... but I missed to run "make check" ... mea culpa. I need to update tests/boot-serial-test.c now that we support -serial on s390x ... will send a v2 with the fix.
Thomas
Quoted 23 lines · Peter Maydell
Quoted 22 lines · Thomas Huth
Quoted 16 lines · David Hildenbrand
Quoted 7 lines · Thomas Huth
The consoles ("sclpconsole" and "sclplmconsole") can only be configured with "-device" and "-chardev" so far. Other machines use the convenience option "-serial" to configure the default consoles, even for virtual consoles like spapr-vty on the pseries machine. So let's support this option on s390x, too. This way we can easily enable the serial console here again with "-nodefaults", for example:
hw/s390x/s390-virtio-ccw.c static void ccw_init(MachineState *machine) · line 364
Quoted 7 lines
hw/s390x/s390-virtio-ccw.c +7
-0+/* init consoles */ +if (serial_hds[0 ]) { +s390_create_sclpconsole ("sclpconsole" , serial_hds[0 ]); + } +if (serial_hds[1 ]) { +s390_create_sclpconsole ("sclplmconsole" , serial_hds[1 ]); + }Quoted 1 line
What happens if more -serial are defined? An error? Silently ignored?
Silently ignored, since this is also what almost all other machines are doing (look for
serial_hdsin hw/ and you'll see what I mean).
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
(e.g. do we have to redefine
MAX_SERIAL_PORTSon s390x or add checking code here?)As all the other machines are also not redefining
MAX_SERIAL_PORTS, I think we should also not do this on s390x now, should we?Note that I have a series on-list which removes the
MAX_SERIAL_PORTSrestriction, so you can have arbitrarily many serial ports.
Ah, great, good idea. Thanks for the hint, I was not aware of that patch series yet.
Quoted 2 lines
(If that gets into master before this there'll be a conflict, but it's easy to resolve: just change "serial_hds[n]" to "
serial_hd(n)".)
Ok, that should be pretty easy to resolve, indeed.
Thomas
Quoted 7 lines · Thomas Huth
Quoted 4 lines · Peter Maydell
Note that I have a series on-list which removes the
MAX_SERIAL_PORTSrestriction, so you can have arbitrarily many serial ports. (If that gets into master before this there'll be a conflict, but it's easy to resolve: just change "serial_hds[n]" to "serial_hd(n)".)Ok, that should be pretty easy to resolve, indeed.
The MAX_SERIAL_PORTS series is now in master.
thanks
-- PMM