On 19/08/2024 13.31, 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

s/charecters/characters/

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 least we don't drop
charecters.

dito

1: https://gitlab.com/qemu-project/qemu/-/issues/2114

Signed-off-by: Alistair Francis <alistair.fran...@wdc.com>
Reviewed-by: Daniel Henrique Barboza <dbarb...@ventanamicro.com>
---
  hw/char/riscv_htif.c | 12 ++++++++++--
  1 file changed, 10 insertions(+), 2 deletions(-)

With above typos fixed:
Reviewed-by: Thomas Huth <th...@redhat.com>


Reply via email to