virtio-blk: tell the guest about size changes
authorChristoph Hellwig <hch@lst.de>
Mon, 24 Jan 2011 12:32:51 +0000 (13:32 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 31 Jan 2011 09:03:00 +0000 (10:03 +0100)
commit69c381d8ab6eb9ff84e1a55f961cf2587d347049
tree456a6b31f2d267a71f175a33618db5360682d53f
parent79116c246244bb81d4c021f7dba324bd8d1592cd
virtio-blk: tell the guest about size changes

Raise a config change interrupt when the size changed.  This allows
virtio-blk guest drivers to read-read the information from the
config space once it got the config chaged interrupt.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/virtio-blk.c