]> git.proxmox.com Git - qemu.git/commit
hcd-ohci: add dma error handling
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Fri, 26 Jul 2013 10:52:05 +0000 (20:52 +1000)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 30 Jul 2013 08:26:19 +0000 (10:26 +0200)
commitcf66ee8e207d5c1831c7d4d8c7f2544314fc676c
tree761ee8869c16f5c453067f8122a00bb0747941de
parent9f0f1a0c096f29a856f2e6903beda45b44ce9cdd
hcd-ohci: add dma error handling

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().

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-ohci.c