-serial option broken in master?
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 12 lines · Jérôme Forissier
Hi,
I just noticed this error [1] (QEMU master branch):
../qemu/arm-softmmu/qemu-system-arm -nographic -monitor none -machine virt -machine secure=on -cpu cortex-a15 -m 1057 -serial stdio -serial file:serial1.log -bios
/home/travis/optee_repo/build/../out/bios-qemu/bios.binUnexpected error inparse_chr()athw/core/qdev-properties-system.c:149:
qemu-system-arm: Property 'pl011.chardev' can't take value 'serial0', it's in use
Quoted 5 lines
FYI, revert commits
e5fabad7ccfd("char: get rid ofqemu_char_get_next_serial") andf0d1d2c115df("hw/char: QOM'ify pl011 model"), and the problem disappears.Should I use a different syntax?
No, it's a bug that we broke this somehow. Xiaoqiang, could you have a look at this, please?
thanks
-- PMM
Quoted 21 lines · 在 2016年6月8日,05:24,Peter Maydell <[email protected]> 写道:
Quoted 18 lines · Jérôme Forissier
Hi,
I just noticed this error [1] (QEMU master branch):
../qemu/arm-softmmu/qemu-system-arm -nographic -monitor none -machine virt -machine secure=on -cpu cortex-a15 -m 1057 -serial stdio -serial file:serial1.log -bios
/home/travis/optee_repo/build/../out/bios-qemu/bios.binUnexpected error inparse_chr()athw/core/qdev-properties-system.c:149:
qemu-system-arm: Property 'pl011.chardev' can't take value 'serial0', it's in useFYI, revert commits
e5fabad7ccfd("char: get rid ofqemu_char_get_next_serial") andf0d1d2c115df("hw/char: QOM'ify pl011 model"), and the problem disappears.
Quoted 8 lines
Quoted 1 line
Should I use a different syntax?
No, it's a bug that we broke this somehow. Xiaoqiang, could you have a look at this, please?
thanks
-- PMM
Okay!
Quoted 17 lines · Peter Maydell
Quoted 16 lines · Jérôme Forissier
Hi,
I just noticed this error [1] (QEMU master branch):
../qemu/arm-softmmu/qemu-system-arm -nographic -monitor none -machine virt -machine secure=on -cpu cortex-a15 -m 1057 -serial stdio -serial file:serial1.log -bios
/home/travis/optee_repo/build/../out/bios-qemu/bios.binUnexpected error inparse_chr()athw/core/qdev-properties-system.c:149:
qemu-system-arm: Property 'pl011.chardev' can't take value 'serial0', it's in useFYI, revert commits
e5fabad7ccfd("char: get rid ofqemu_char_get_next_serial") andf0d1d2c115df("hw/char: QOM'ify pl011 model"), and the problem disappears.
Quoted 6 lines
Quoted 1 line
Should I use a different syntax?
No, it's a bug that we broke this somehow. Xiaoqiang, could you have a look at this, please?
thanks
-- PMM
Hi, peter:
The bug was caught. It is because in vrit.c, create_uart is called
twice, in which serial_hds array is hardcoded.
I will send a patch to fix this later .