Commit [e22a2b]  Maximize  Restore  History

Make qcow2 do real synchronous read/write.

bdrv_read/write_em will cause cpu thread call aio callback and bottom half. This
is problematic and finding places to protect for concurrent access is really
painful. So I make the emulated sync. IO really synchronous.

Add a flag in QEMUIOVector to mark the operation as emulating synchronous IO.
Then in qcow2_aio_read/write_cb, do synchronous IO by recursive call and using
sync. bdrv_read/write operation.

Chen Yufei Chen Yufei 2010-12-31

changed block.c
changed block/qcow2.c
changed cutils.c
changed qemu-common.h
block.c Diff Switch to side-by-side view
Loading...
block/qcow2.c Diff Switch to side-by-side view
Loading...
cutils.c Diff Switch to side-by-side view
Loading...
qemu-common.h Diff Switch to side-by-side view
Loading...

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks