1. 04 11月, 2011 3 次提交
    • K
      dma: Avoid reentrancy in DMA transfer handlers · acae6f1c
      Kevin Wolf 提交于
      With the conversion of the block layer to coroutines, bdrv_read/write
      have changed to run a nested event loop that calls qemu_bh_poll.
      Consequently a scheduled BH can be called while a DMA transfer handler
      runs and this means that DMA_run becomes reentrant.
      
      Devices haven't been designed to cope with that, so instead of running a
      nested transfer handler just wait for the next invocation of the BH from the
      main loop.
      
      This fixes some problems with the floppy device.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      acae6f1c
    • K
      qemu-io: Fix multiwrite_f error handling · 67403dbb
      Kevin Wolf 提交于
      Without this fix, some qiovs can be leaked if an error occurs. Also a semicolon
      at the end of the command line would make the code walk beyond the end of argv.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      67403dbb
    • K
      qemu-io: Handle create_iovec errors · f2360620
      Kevin Wolf 提交于
      Callers of create_iovec() didn't check for failure and continued with
      uninitialised data in error cases. This patch adds checks to each call.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      f2360620
  2. 03 11月, 2011 4 次提交
  3. 02 11月, 2011 33 次提交