Re: [libvirt] How does libvirt access kvm infomation?

2008-06-19 Thread Akio Takebe

Hi, Chris

Chris Lalancette wrote:

Akio Takebe wrote:
  

Hi,

AFAIK kvm has only an interface of qemu console when we use device
hotplug, migration and so on. How does libvirt access the interface
of qemu console?



As far as I understand it (from looking at the code recently), you can tell the
qemu monitor to open against a pty.  libvirtd does this, and holds on to the
other end of the pty, and then issues commands through the PTY to do anything
that you need through the monitor interface.

Look at src/qemu_driver.c:qemudWaitForMonitor() (or thereabouts) for where this
is setup while starting a domain.
  

Thank you for your information.
I understand it. I'll ckeck around the codes.

Best Regards,

Akio Takebe

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


[libvirt] How does libvirt access kvm infomation?

2008-06-18 Thread Akio Takebe
Hi,

AFAIK kvm has only an interface of qemu console when we use device
hotplug, migration and so on. How does libvirt access the interface
of qemu console?

Best Regards,

Akio Takebe

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