Re: [PATCH 2/7] prevent hot unplugging multi function PCI device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Wen Congyang:
At 06/09/2011 04:37 PM, shu ming Write:
Hi
    I applied these pacches to libvirt tree

8077d64f964705c1034555abeea38773532b762f

And built a qemu-kvm from the upstream qemu-kvm tree version 0.14.  I
tested these new binaries on my Redhat Enterprise Linux 6.1 GA.

Now I can have multiple function devices after I changed the VM XML
config file manually, please see the 'lspci' output below.  Also, I can
hotplug one device, but it seems that unplugging it failed.
-------------------------------------------------------------------------------------

[root@kvm-rhel-6 qemu]# virsh qemu-monitor-command
kvm-rhel-6.1-multifunction-1 --hmp 'device_add
lsi,id=scsi10,bus=pci.0,addr=0x7.0x00'

VM: **In the VM, 'lspci" can see one line added:

VM: **00:07.0 SCSI storage controller: LSI logic / Symbios Logic 5sc895a

[root@kvm-rhel-6 qemu]# virsh qemu-monitor-command
kvm-rhel-6.1-multifunction-1 --hmp 'device_del
lsi,id=scsi10,bus=pci.0,addr=0x7.0x00'
Oh, the command is wrong. The parameters of device_del is id. Please try:
'device_del scsi10'.

Thanks.
Wen Congyang
Yeah, unplugging it works.


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]