Re: simple serial device emulation

2021-09-11 Thread Hinko Kocevar
On Sat, 11 Sep 2021 at 17:24, Peter Maydell wrote: > On Fri, 10 Sept 2021 at 22:51, Philippe Mathieu-Daudé > wrote: > > > > On 9/10/21 9:35 PM, Hinko Kocevar wrote: > > > I have an emulated MMIO area holding couple of registers that deal with > > > serial UART. Very simple access to the Tx and R

Re: simple serial device emulation

2021-09-11 Thread Peter Maydell
On Fri, 10 Sept 2021 at 22:51, Philippe Mathieu-Daudé wrote: > > On 9/10/21 9:35 PM, Hinko Kocevar wrote: > > I have an emulated MMIO area holding couple of registers that deal with > > serial UART. Very simple access to the Tx and Rx registers from the > > userspace point of view involves polling

Re: simple serial device emulation

2021-09-10 Thread Philippe Mathieu-Daudé
On 9/10/21 9:35 PM, Hinko Kocevar wrote: > I have an emulated MMIO area holding couple of registers that deal with > serial UART. Very simple access to the Tx and Rx registers from the > userspace point of view involves polling for a bit in one register and > then writing another; when there is roo

simple serial device emulation

2021-09-10 Thread Hinko Kocevar
I have an emulated MMIO area holding couple of registers that deal with serial UART. Very simple access to the Tx and Rx registers from the userspace point of view involves polling for a bit in one register and then writing another; when there is room for another character. When the guest app does