qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Q: TX (THR) throttling for serial interface?
@ 2022-04-21  8:58 REITHER Robert
  0 siblings, 0 replies; only message in thread
From: REITHER Robert @ 2022-04-21  8:58 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

[-- Attachment #1: Type: text/plain, Size: 947 bytes --]

Hello,

ich have (realtime) problems in a QEMU client, spending too  much time with the serial IRQ (INT 4) while sending massive data over the serial interface (sttyS0)
I've found out that IRQ loops as long as there is send data available (LSR_THRE always 1, IIR_THRI always 1), which can lead to up to 1s IRQ time in my case.
QEMU always drains the TX FIFO at once and will only set the UART register bits afterwards.

My Linux console is using serial interface(because we use the same image on real hardware as also for the qemu client).

In very old QEMU code I found the method to throttle the TX int (THROTTLE_TX_INTERVAL) to probably avoid this behavior.
https://code.grnet.gr/projects/qemu/repository/revisions/6936bfe514bbac7af4b24fad9ed9688b78b5be69/entry/hw/serial.c

Is there a way to do something similar in actual QEMU code (setting TX delay timer)?
Or should I just try to switch to virtio_console?

Thank you
Robert

[-- Attachment #2: Type: text/html, Size: 3714 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-21 13:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-21  8:58 Q: TX (THR) throttling for serial interface? REITHER Robert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).