qcow2: Round QCowL2Meta.offset down to cluster boundary
The offset within the cluster is already present as n_start and this iswhat the code uses. QCowL2Meta.offset is only needed at a clustergranularity.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qcow2: Introduce Qcow2COWRegion
This makes it easier to address the areas for which a COW must beperformed. As a nice side effect, the COW code inqcow2_alloc_cluster_link_l2 becomes really trivial.
atapi: reset cdrom tray statuses on ide_reset
Tray statuses should be also reseted. Some guests may lock the trayand after reset before any kernel is loaded the tray should be unlocked.
Also if you reset the real computer the tray is closed. We shoulddo the same in qemu....
blkdebug: Allow usage without config file
As soon as new rules can be set during runtime, as introduced by thenext patch, blkdebug makes sense even without a config file.
blkdebug: Factor out remove_rule()
The cleanup work to remove a rule depends on the type of the rule. It'seasy for the existing rules as there is no data that must be cleaned upand is specific to a type yet, but the next patch will change this.
blkdebug: Implement suspend/resume of AIO requests
This allows more systematic AIO testing. The patch adds three newoperations to blkdebug:
qemu-io: Add AIO debugging commands
This makes the blkdebug suspend/resume functionality available inqemu-io. Use it like this:
$ ./qemu-io blkdebug::/tmp/test.qcow2 qemu-io> break write_aio req_a qemu-io> aio_write 0 4k qemu-io> blkdebug: Suspended request 'req_a'...
qcow2: Move BLKDBG_EVENT out of the lock
We want to use these events to suspend requests for testing concurrentAIO requests. Suspending requests while they are holding the CoMutex israther boring for this purpose.
qemu-iotests: Test concurrent cluster allocations
This adds some first tests for qcow2's dependency handling when twoparallel write requests access the same cluster.
create new function: qemu_opt_set_number
Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
View all revisions | View revisions
Also available in: Atom