From d66a8fa83b00b3b3d631a0e28cdce8c9b5698822 Mon Sep 17 00:00:00 2001 From: Peter Lieven Date: Tue, 17 Nov 2015 15:06:39 -0500 Subject: [PATCH] ide: enable buffered requests for PIO read requests Signed-off-by: Peter Lieven Reviewed-by: Fam Zheng Message-id: 1447345846-15624-7-git-send-email-pl@kamp.de Signed-off-by: John Snow --- hw/ide/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ide/core.c b/hw/ide/core.c index 1470737e34..da3baab1eb 100644 --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -679,8 +679,8 @@ static void ide_sector_read(IDEState *s) block_acct_start(blk_get_stats(s->blk), &s->acct, n * BDRV_SECTOR_SIZE, BLOCK_ACCT_READ); - s->pio_aiocb = blk_aio_readv(s->blk, sector_num, &s->qiov, n, - ide_sector_read_cb, s); + s->pio_aiocb = ide_buffered_readv(s, sector_num, &s->qiov, n, + ide_sector_read_cb, s); } void dma_buf_commit(IDEState *s, uint32_t tx_bytes)