[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH] [STABLE] Fix virtio-blk hot add after remove
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] Re: [PATCH] [STABLE] Fix virtio-blk hot add after remove |
Date: |
Thu, 15 Oct 2009 10:00:01 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-2.7.b4.fc11 Lightning/1.0pre Thunderbird/3.0b4 |
On 10/14/09 18:59, Anthony Liguori wrote:
qdev_init_bdrv() expects that each drive added is the next logical unit for
the given interface type. However, when dealing with hotplug, there may
be holes in the units. drive_init reclaims holes in units but qdev_init_bdrv()
is not smart enough to do this.
Oh, right.
Suggestions for a less ugly solution are appreciated.
See attached patch. Isn't exactly pretty. But at least it is less
invasive and IMHO the logic is easier to understand as well.
Warning: *untested*.
cheers,
Gerd
0001-fix-virtio-blk-hotplugging.patch
Description: Text document