Home
last modified time | relevance | path

Searched hist:"363 c3c85" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/block/
H A Dcurl.c363c3c85 Wed Sep 21 05:55:50 CDT 2011 Nick Thomas <nick@bytemark.co.uk> block/curl: Don't finish AIOCBs too early

The previous behaviour was to finish AIOCBs inside curl_aio_readv()
if the data was cached. This caused the following failed assertion
at hw/ide/pci.c:314: bmdma_cmd_writeb

"Assertion `bm->bus->dma->aiocb == ((void *)0)' failed."

By scheduling a QEMUBH and performing the completion inside the
callback, we avoid this problem.

Signed-off-by: Nick Thomas <nick@bytemark.co.uk>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>