Re: [PATCH] virtio_blk: allow re-reading config space at runtime

2011-02-01 Thread Christoph Hellwig
On Thu, Jan 27, 2011 at 05:32:21PM +0200, Michael S. Tsirkin wrote: This needs to be flushed on device removal, I think, otherwise the vdev pointer will go stale. Indeed. +} + + Two empty lines :) I'll fix it up. ___ Virtualization

Re: [PATCH] virtio_blk: allow re-reading config space at runtime

2011-01-27 Thread Michael S. Tsirkin
On Fri, Jan 14, 2011 at 05:01:37PM +0100, Christoph Hellwig wrote: Wire up the virtio_driver config_changed method to get notified about config changes raised by the host. For now we just re-read the device size to support online resizing of devices, but once we add more attributes that might