[libvirt] [PATCH/RFC] qemu/kvm: allow to hot remove scsi/virtio disks

Guido Günther agx at sigxcpu.org
Fri Oct 17 14:24:52 UTC 2008

On Fri, Oct 17, 2008 at 02:37:17PM +0200, Daniel Veillard wrote:
>   Looks fine, i just removed a couple of extra spaces at end of line
> before commiting :-)
Thanks a lot for applying this so quickly! Attached is a patch that
allows for unplugging of disks. To do that I added a token to
virDomainDiskDef that holds the PCI bus/slot number [1] so we can
indentify the device on unplug. It's a union since other
busses/hypervisors might have other requirements. The token is meant as
an internal handle and will never show up in an XML and should probably
move up into virDomainDeviceDef. Comments are welcome.
 -- Guido

[1] bus is always == 0 at the moment
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-device-detach-for-disks.patch
Type: text/x-diff
Size: 7365 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20081017/81a7f69c/attachment-0001.bin>

More information about the libvir-list mailing list