Skip to contentSkip to conversation

-serial option broken in master?

Qemu-devel Peter Maydell 2 participants 3 messages Jun 7, 2016 – Jun 8, 2016 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
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.bin Unexpected error in parse_chr() at hw/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 of qemu_char_get_next_serial") and f0d1d2c115df ("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

#2 lore raw
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.bin Unexpected error in parse_chr() at hw/core/qdev-properties-system.c:149:
qemu-system-arm: Property 'pl011.chardev' can't take value 'serial0', it's in use

FYI, revert commits e5fabad7ccfd ("char: get rid of qemu_char_get_next_serial") and f0d1d2c115df ("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!

#3 lore raw
In reply to Peter Maydell
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.bin Unexpected error in parse_chr() at hw/core/qdev-properties-system.c:149:
qemu-system-arm: Property 'pl011.chardev' can't take value 'serial0', it's in use

FYI, revert commits e5fabad7ccfd ("char: get rid of qemu_char_get_next_serial") and f0d1d2c115df ("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 .