fdc: rewrite seek and DSKCHG bit handling
This bit is cleared on every successful seek to a different track (cylinder).The seek is also called on revalidate or on read/write/format commands whichalso clear the DSKCHG bit.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>...
fdc: fix interrupt handling
If you call the SENSE INTERRUPT STATUS command while there is no interruptwaiting you get as result unknown command.
Fixed status0 register handling for read/write/format commands.
fdc_test: update media_change test
After rewrite DSKCHG bit handling the test has to be updated. Nowis needed to seek to different track to clear DSKCHG bit.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
fdc_test: introduce test_sense_interrupt
Calling sense interrupt status while there is no interrupt shouldreturn invalid command (0x80).
Read command should always returns in st0 seek_end bit set to 1.
blkdebug: pass getlength to underlying file
This is required when using blkdebug with raw format. Unlike qcow2/QED,raw asks blkdebug for the length of the file, it doesn't get it froma header.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blkdebug: store list of active rules
This prepares for the next patch, where some active rules may actuallynot trigger depending on input to readv/writev. Store the active rulesin a SIMPLEQ (so that it can be emptied easily with QSIMPLEQ_INIT), andfetch the errno/once/immediately arguments from there....
blkdebug: optionally tie errors to a specific sector
This makes blkdebug scripts more powerful, and independent of theexact sequence of operations performed by streaming.
raw: hook into blkdebug
block: copy over job and dirty bitmap fields in bdrv_append
While these should not be in use at the time a transaction is started,a command in the prepare phase of a transaction might have added them,so they need to be brought over.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>...
block: introduce bdrv_swap, implement bdrv_append on top of it
The new function can be made a bit nicer than bdrv_append. It swaps thewhole contents, and then swaps back (using the usual t=a;a=b;b=t idiom)the fields that need to stay on top. Thus, it does not need explicit...
View all revisions | View revisions
Also available in: Atom