libvirt/src/libxl
Anthony PERARD 368042cf4a libxl: Set path to console on domain startup.
The path to the pty of a Xen PV console is set only in
virDomainOpenConsole. But this is done too late. A call to
virDomainGetXMLDesc done before OpenConsole will not have the path to
the pty, but a call after OpenConsole will.

e.g. of the current issue.
Starting a domain with '<console type="pty"/>'
Then:
virDomainGetXMLDesc():
  <devices>
    <console type='pty'>
      <target type='xen' port='0'/>
    </console>
  </devices>
virDomainOpenConsole()
virDomainGetXMLDesc():
  <devices>
    <console type='pty' tty='/dev/pts/30'>
      <source path='/dev/pts/30'/>
      <target type='xen' port='0'/>
    </console>
  </devices>

The patch intend to have the TTY path on the first call of GetXMLDesc.
This is done by setting up the path at domain start up instead of in
OpenConsole.

https://bugzilla.redhat.com/show_bug.cgi?id=1170743

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
2015-01-16 15:57:10 -07:00
..
libxl_conf.c Replace virNetworkFree with virObjectUnref 2014-12-02 11:03:40 -05:00
libxl_conf.h libxl: Allow libxl to find pygrub binary. 2014-11-21 12:34:22 -07:00
libxl_domain.c libxl: Set path to console on domain startup. 2015-01-16 15:57:10 -07:00
libxl_domain.h
libxl_driver.c libxl: Set path to console on domain startup. 2015-01-16 15:57:10 -07:00
libxl_driver.h
libxl_migration.c Give virDomainDef parser & formatter their own flags 2015-01-13 16:26:12 +00:00
libxl_migration.h libxl: remove domain when migration prepare fails 2014-07-08 17:14:50 -06:00