Searched hist:"4 ddc07cac2bd794e4ff17717551e66589e71e714" (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/ |
H A D | block.c | diff 4ddc07cac2bd794e4ff17717551e66589e71e714 Thu Jun 14 09:55:02 CDT 2012 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 the whole 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 bdrv_detach_dev, bdrv_iostatus_disable, etc.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|