提交 a1e4b07f 编写于 作者: A Alexander Graf 提交者: Aurelien Jarno

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: NAlexander Graf <agraf@suse.de>
Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
上级 d7963c43
......@@ -201,7 +201,11 @@ static void s390_init(ram_addr_t ram_size,
}
/* Create VirtIO console */
qdev_init_nofail(qdev_create((BusState *)s390_bus, "virtio-console-s390"));
for(i = 0; i < MAX_VIRTIO_CONSOLES; i++) {
if (virtcon_hds[i]) {
qdev_init_nofail(qdev_create((BusState *)s390_bus, "virtio-console-s390"));
}
}
/* Create VirtIO network adapters */
for(i = 0; i < nb_nics; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册