Re: Reg: Adding "edu" device using XML file

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

 





On Wed, Oct 23, 2019 at 4:27 PM bharath paulraj <bharathpaul@xxxxxxxxx> wrote:
Hello Han,

Thanks for the response. The XML option with qemu:commandline works if the device is added during the VM creation. But I would like to hot-plug the device to the running VM. I can add the device using the command line
<virsh qemu-monitor-command --hmp VM-Name  device_add edu,id=edu0>

But I would like to add the device using the XML file, like <virsh attach-device VM-Name xmlfile.xml>. If the XML support is not provided in libvirt, Is there a document or pointers available to show how to add new device in libvirt xml code?

ASAIK there is no development guide for adding new device in libvirt xml code.
Maybe you can refer to former watchdog device patch series:
https://www.redhat.com/archives/libvir-list/2009-October/msg00564.html
https://www.redhat.com/archives/libvir-list/2017-September/msg00078.html
Thanks,
Bharath

On Wed, Oct 23, 2019 at 12:57 PM Han Han <hhan@xxxxxxxxxx> wrote:


On Tue, Oct 22, 2019 at 5:41 PM bharath paulraj <bharathpaul@xxxxxxxxx> wrote:
Hi Team,

I am exploring "edu" device in QEMU to add my own custom device. I am able to add the device using the command line. Would it be possible to add the device using XML file through libvirt?
Hello, edu device is not implemented to libvirt xml. However you can use it via custom device in libvirt:
Just define a domain like following:
<domain type='qemu' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
...
 <qemu:commandline>
   <qemu:arg value='-device'/>
<qemu:arg value='edu'/>
 </qemu:commandline>
</domain>

 
--
Regards,
Bharath
_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users


--
Best regards,
-----------------------------------
Han Han
Quality Engineer
Redhat.

Email: hhan@xxxxxxxxxx
Phone: +861065339333


--
Regards,
Bharath


--
Best regards,
-----------------------------------
Han Han
Quality Engineer
Redhat.

Email: hhan@xxxxxxxxxx
Phone: +861065339333
_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux