S390: Loop through virtio console devices
We used to always create one single virtio console device. This breaks when either zero of multiple virtio console devices are requested, so let's use the same code as on x86. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
d7963c43b9
commit
a1e4b07f04
@ -201,7 +201,11 @@ static void s390_init(ram_addr_t ram_size,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Create VirtIO console */
|
/* Create VirtIO console */
|
||||||
|
for(i = 0; i < MAX_VIRTIO_CONSOLES; i++) {
|
||||||
|
if (virtcon_hds[i]) {
|
||||||
qdev_init_nofail(qdev_create((BusState *)s390_bus, "virtio-console-s390"));
|
qdev_init_nofail(qdev_create((BusState *)s390_bus, "virtio-console-s390"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Create VirtIO network adapters */
|
/* Create VirtIO network adapters */
|
||||||
for(i = 0; i < nb_nics; i++) {
|
for(i = 0; i < nb_nics; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user