Skip to contentSkip to conversation

baud rate of qemu serial port

DISCUSSION James Harper 2 participants 2 messages Oct 17, 2010

lore
Share & tools
lore
#0 lore raw

If I specify serial='pty' in my config for a HVM domU, does the baud rate that the virtual hardware gets set to actually make a different to the throughput or is it not rate limited in any way?

Thanks

James

#1 lore raw

Hi James,

It is rate limited. There is a timer in qemu-dm which runs at a rate decided by the baud rate, and which takes bytes from the virtual FIFO and sends them on to the "back end" device, so it doesn't matter if it's a pty or a physical serial port. It would be pretty easy to change this to allow for theoretically higher speeds, but the result would probably be pretty disappointing; I did experiment a bit with this when I wrote the 16550A patch, and if I remember right, at the time you pretty much maxed out at about ~200kbit. Now, that was a couple of years ago, and the speeds reachable now might be quite a bit higher, due to CPUs having gotten faster, as well as VMEXIT being far "lighter" on newer generation CPUs.

Regards,
Trolle

On Sat, Oct 16, 2010 at 9:24 PM, James Harper <[email protected]

Quoted 6 lines

wrote:

If I specify serial='pty' in my config for a HVM domU, does the baud rate that the virtual hardware gets set to actually make a different to the throughput or is it not rate limited in any way?

Quoted 9 lines

Thanks

James

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel