qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] Fix regression introduced by 6398


From: Eduardo Felipe
Subject: [Qemu-devel] [PATCH] Fix regression introduced by 6398
Date: Fri, 30 Jan 2009 21:40:38 +0100

Hi,

After commit 6398 some of my guests started to SEGFAULT at boot time.
Reverting these two lines fixes the problem for me:

signed-off-by: Eduardo Felipe <address@hidden>

--- a/hw/ide.c    Fri Jan 30 21:15:15 2009
+++ b/hw/ide.c    Fri Jan 30 21:13:49 2009
@@ -1084,7 +1084,7 @@
 #ifdef DEBUG_AIO
     printf("aio_read: sector_num=%" PRId64 " n=%d\n", sector_num, n);
 #endif
-    bm->aiocb = bdrv_aio_readv(s->bs, sector_num, &s->iovec, n,
+    bm->aiocb = bdrv_aio_read(s->bs, sector_num, s->io_buffer, n,
                                ide_read_dma_cb, bm);
     ide_dma_submit_check(s, ide_read_dma_cb, bm);
 }
@@ -1212,7 +1212,7 @@
 #ifdef DEBUG_AIO
     printf("aio_write: sector_num=%" PRId64 " n=%d\n", sector_num, n);
 #endif
-    bm->aiocb = bdrv_aio_writev(s->bs, sector_num, &s->iovec, n,
+    bm->aiocb = bdrv_aio_write(s->bs, sector_num, s->io_buffer, n,
                                 ide_write_dma_cb, bm);
     ide_dma_submit_check(s, ide_write_dma_cb, bm);
 }


Can anybody take a look at it?

Thanks,
Edu




reply via email to

[Prev in Thread] Current Thread [Next in Thread]