hcd-ohci: add dma error handling

Enterprise / Virtualization / QEMU - Alexey Kardashevskiy [ozlabs.ru] - 30 July 2013 03:26 UTC

Current hcd-ohci does not handle DMA errors. However they may happen so here we introduce simple error handling.

On such errors, a typical OHCI will stop operating, signal the guest about the error by sending "UnrecoverableError Event", set itself into error state and set "Detected Parity Error" in its PCI config space to signal that it got an error and so does the patch.

This also adds ohci_die() call to ohci_bus_start() to handle possible failure of qemu_new_timer_ns().

cf66ee8 hcd-ohci: add dma error handling
hw/usb/hcd-ohci.c | 177 ++++++++++++++++++++++++++++++++++++++---------------
1 file changed, 126 insertions(+), 51 deletions(-)

Upstream: git.qemu.org


  • Share