Re: [PATCH 1/2] hw/char: riscv_htif: Use blocking qemu_chr_fe_write_all

2024-08-16 Thread Daniel Henrique Barboza
On 8/14/24 10:54 PM, Alistair Francis wrote: The current approach of using qemu_chr_fe_write() and ignoring the return values results in dropped charecters [1]. Ideally we want to report FIFO status to the guest, but the HTIF isn't a real UART, so we don't really have a way to do that. Instea

[PATCH 1/2] hw/char: riscv_htif: Use blocking qemu_chr_fe_write_all

2024-08-14 Thread Alistair Francis
The current approach of using qemu_chr_fe_write() and ignoring the return values results in dropped charecters [1]. Ideally we want to report FIFO status to the guest, but the HTIF isn't a real UART, so we don't really have a way to do that. Instead let's just use qemu_chr_fe_write_all() so at lea