[libvirt] [PATCH 3/3] qemu: Auto-generate controller for hotplugged hostdev
Ján Tomko
jtomko at redhat.com
Tue Nov 12 07:50:07 UTC 2013
On 10/08/2013 02:45 PM, Eric Farman wrote:
> If a SCSI hostdev is included in an initial domain XML, without a
> corresponding controller statement, one is created silently when the
> guest is booted.
>
> When hotplugging a SCSI hostdev, a presumption is that the controller
> is already present in the domain either from the original XML, or via
> an earlier hotplug.
>
> [root at xxxxxxxx ~]# cat disk.xml
> <hostdev mode='subsystem' type='scsi'>
> <source>
> <adapter name='scsi_host0'/>
> <address bus='0' target='3' unit='1088438288'/>
> </source>
> </hostdev>
> [root at xxxxxxxx ~]# virsh attach-device guest01 disk.xml
> error: Failed to attach device from disk.xml
> error: internal error: unable to execute QEMU command 'device_add': Bus 'scsi0.0' not found
>
> Since the infrastructure is in place, we can also create a controller
> silently for use by the hotplugged hostdev device.
>
> Signed-off-by: Eric Farman <farman at linux.vnet.ibm.com>
> ---
> src/qemu/qemu_hotplug.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
ACK
Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131112/0727a0b0/attachment-0001.sig>
More information about the libvir-list
mailing list