Skip to contentSkip to conversation

make serial port com2

DISCUSSION James Harper 2 participants 2 messages Sep 18, 2010 – Sep 20, 2010

lore
Share & tools
lore
#0 lore raw

Is there an easy way to make the serial port in a hvm domain as specified by "serial=pty" be com2 instead of com1?

In the absence of an easy way, any pointers as to where to start looking in the code?

Thanks

James

#1 lore raw

James Harper writes ("[Xen-devel] make serial port com2"):

Quoted 2 lines

Is there an easy way to make the serial port in a hvm domain as specified by "serial=pty" be com2 instead of com1?

I don't know of an easy way, but this can almost certainly done by appropriate manipulation of the parameters to the device model qemu.

You can probably use
extra="-serial pty"
or something to generate a 2nd serial port.

Quoted 2 lines

In the absence of an easy way, any pointers as to where to start looking in the code?

If you're using xl, take a look at libxl.c:

    if (info->serial) {
        flexarray_set(dm_args, num++, "-serial");
        flexarray_set(dm_args, num++, info->serial);
    }

See also the manpage qemu.1 in the qemu-xen tree (man -l qemu.1).

Ian.