sysprog21/kvm-host

Refine UART emulation

jserv opened this issue · 1 comments

jserv commented

tomu emulates a 16550A UART device with epoll.

    epoll <──────── eventfd <─────╮
                                  │
               ╭──────────────╮   │
     read <─── │ │ │ fifo │ │ │ <─┴─ out
(nonblocking)  ╰──────────────╯
               ╭──────────────╮
    write ───> │ │ │ fifo │ │ │ ───> in
(nonblocking)  ╰──────────────╯

It would be great if we can learn from this project.

I have re-implemented the serial device using epoll and eventfd approach.
This is the pull request:
#16