diff options
author | Markus Armbruster | 2011-09-06 18:58:57 +0200 |
---|---|---|
committer | Kevin Wolf | 2011-09-12 15:17:22 +0200 |
commit | 29e05f202238fe0efee4a0ecccc3fd348448a37c (patch) | |
tree | 052961f88f886dc55f2dcc4485b9120195a05282 /hw/sd.c | |
parent | block: New bdrv_set_buffer_alignment() (diff) | |
download | qemu-29e05f202238fe0efee4a0ecccc3fd348448a37c.tar.gz qemu-29e05f202238fe0efee4a0ecccc3fd348448a37c.tar.xz qemu-29e05f202238fe0efee4a0ecccc3fd348448a37c.zip |
block: Reset buffer alignment on detach
BlockDriverState member buffer_alignment is initially 512. The device
model may set them, with bdrv_set_buffer_alignment(). If the device
model gets detached (hot unplug), the device's alignment is left
behind. Only okay because device hot unplug automatically destroys
the BlockDriverState. But that's a questionable feature, best not to
rely on it.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/sd.c')
0 files changed, 0 insertions, 0 deletions