1. 17 Mar, 2011 1 commit
  2. 23 Dec, 2010 1 commit
  3. 18 Oct, 2010 1 commit
  4. 16 Aug, 2010 1 commit
    • Stefano Stabellini's avatar
      tools: xenconsole[d] and libxl: multiple console support · c8b0316e
      Stefano Stabellini authored
      This patch implements the new protocol for handling pv consoles and
      emulated serials as described in the document docs/misc/console.txt.
      The changes are:
      - xenconsoled: do not write the pty under serial in xenstore if
      xenconsoled is handling a consolepath;
      - xenconsole: implement support for an explicit console type parameter;
      the parameter can be "pv", to specify that the user wants to
      connect to a pv console, or "serial", to specify that the user wants to
      connect to an emulated serial. If the type parameter hasn't been
      specified be the user, xenconsole tries to guess which type of console
      it has to connect to, defaulting to pv console for pv guests and
      emulated serial for hvm guests.
      - xenconsole: use the new xenstore paths;
      - libxl: rename libxl_console_constype to libxl_console_consback:
      constype is used to to specify whether qemu or xenconsoled provides the
      backend, so I renamed it to libxl_console_consback to make it more
      obvious that we are talking about backends;
      - libxl: add a new libxl_console_constype to specify if the console is
      an emulated serial or a pv console;
      - libxl: support the new xenconsole "type" command line parameter;
      - libxl: use the "output" node under console in xenstore to tell qemu
      where do we want the output of this pv console to go;
      - remove the legacy "serialpath" from xenconsoled altogether
      Signed-off-by: default avatarStefano Stabellini <stefano.stabellini@eu.citrix.com>
      Signed-off-by: default avatarIan Jackson <ian.jackson@eu.citrix.com>
      Also: update the QEMU_TAG to pull in the qemu part of these changes.
      Signed-off-by: default avatarIan Jackson <ian.jackson@eu.citrix.com>
  5. 13 Aug, 2010 1 commit
  6. 11 Aug, 2010 1 commit
  7. 19 Jul, 2010 1 commit
  8. 16 Jul, 2010 1 commit
  9. 14 Jul, 2010 1 commit
  10. 28 May, 2010 1 commit
    • Keir Fraser's avatar
      libxc: eliminate static variables, use xentoollog; API change · 2490fc23
      Keir Fraser authored
      This patch eliminate the global variables in libxenctrl (used for
      logging and error reporting).
      Instead the information which was in the global variables is now in a
      new xc_interface* opaque structure, which xc_interface open returns
      instead of the raw file descriptor; furthermore, logging is done via
      There are three new parameters to xc_interface_open to control the
      logging, but existing callers can just pass "0" for all three to get
      the old behaviour.
      All libxc callers have been adjusted accordingly.
      Also update QEMU_TAG for corresponding qemu change.
      Signed-off-by: default avatarIan Jackson <ian.jackson@eu.citrix.com>
  11. 27 May, 2010 1 commit
  12. 08 Feb, 2010 1 commit
  13. 02 Jul, 2009 1 commit
  14. 23 Jun, 2009 2 commits
  15. 17 Jun, 2009 1 commit
  16. 16 Jun, 2009 1 commit
  17. 20 Apr, 2009 1 commit
    • Keir Fraser's avatar
      xenconsoled: Fixes to domain management. · 30122cfd
      Keir Fraser authored
      Event-channel setup: Re-bind if the connection becomes unbound (e.g.,
      due to 'slow' domain suspend cancellation), even if the remote port
      identifier has not changed.
      Domain logging: Only open log file once (don't leak fds) and fix a
      small memory leak.
      Evtchn changes based on a patch by Jiri Denemark <jdenemar@redhat.com>
      Signed-off-by: default avatarKeir Fraser <keir.fraser@citrix.com>
  18. 12 Mar, 2009 1 commit
  19. 11 Mar, 2009 1 commit
  20. 20 Feb, 2009 2 commits
    • Keir Fraser's avatar
      xenconsole: Fix pty handling · 6ca29d13
      Keir Fraser authored
      I printed the terminal attributes after openpty() and they were
      garbage on the first console, valid on the second etc.
      openpty() gets garbage in (uninitialized attributes MODIFIED by
      cfmakeraw()). It sets the slave to the attributes requested. Using
      uninitialized data for cfmakeraw->openpty results in pty attributes
      that may even have the receiver disabled. Closing the slave just hides
      the bug as these attributes disappear and hope the slave will be
      reopened and initialized.
      From: Juergen Hannken-Illjes <hannken@netbsd.org>
      Signed-off-by: default avatarChristoph Egger <Christoph.Egger@amd.com>
    • Keir Fraser's avatar
      xenconsoled: make guest console visible on NetBSD dom0 · c2d1d347
      Keir Fraser authored
      After openpty(), slave_fd must be closed or guest console output goes
      to the slave while select() in xen console client listens on the
      Signed-off-by: default avatarChristoph Egger <Christoph.Egger@amd.com>
  21. 12 Jan, 2009 1 commit
    • Keir Fraser's avatar
      Use -MMD -MF in tools/* rather than -Wp,-M... · e61de1e8
      Keir Fraser authored
      If you use -MMD -MF then the correct .o filename is written to the
      .*.d file as the compiler driver arranges everything.  This was done
      in 19010:275abe1c5d24 for the hypervisor.
      In this patch we do the same elsewhere in the xen-unstable tree,
      particularly tools/.  Specifically:
       * Change tools/Rules.mk to add -MMD -MF ... to CFLAGS and set DEPS.
       * Remove -Wp,-MD... from every other Makefile
       * Remove setting of DEPS from every other Makefile
       * Ensure that every Makefile says -include $(DEPS)
       * Ensure that every Makefile's clean target removes $(DEPS)
      Some Makefiles were already halfway there, but often for a different
      variable name eg PROG_DEP.  The variable name is now standardised in
      Rules.mk as DEPS.
      I have done a test build with this change, on Debian etch.
      Signed-off-by: default avatarIan Jackson <ian.jackson@eu.citrix.com>
  22. 30 Jul, 2008 1 commit
    • Keir Fraser's avatar
      xenconsoled: replace gettimeofday with clock_gettime · 47c52ce5
      Keir Fraser authored
      Currently if someone changes the date on the host, xenconsoled may
      behave incorrectly due to the use of gettimeofday for the rate control
      algorithm. For example I was able to hang the console connected to a
      guest just setting the date forward 20 years. To solve the problem we
      need to use a time source that doesn't change start point, that is
      clock_gettime with CLOCK_MONOTONIC. The only bad side effect is that
      it introduces a dependency to librt, but I think is well worth it.
      Signed-off-by: default avatarStefano Stabellini <stefano.stabellini@eu.citrix.com>
  23. 15 Jul, 2008 1 commit
  24. 12 Jun, 2008 1 commit
  25. 22 Apr, 2008 1 commit
    • Keir Fraser's avatar
      console: Provide option to stall the inter-domain console ring rather · 7bb05f2a
      Keir Fraser authored
      than discard characters in the console daemon buffers.
      New option: -o, --overflow-data=discard|keep
      This option changes the behaviour when dealing with data that overflow
      the max capacity of the buffer. If overflow-data is set to discard
      (the default), the current behaviour is used: we discard some data in
      the middle of the buffer.
      If overflow-data is set to keep, we stop listening to the ring until
      we free some space in the buffer. This can cause the ring to fill up
      and the guest kernel internal buffer to fill up as well. When this
      happens the guest kernel stops reading characters from the console
      device so the application generating data hangs. When xenconsoled
      resumes reading from the ring, the guest kernel will be able to resume
      reading from the console device as well. At that point the guest
      application will be allowed to continue.
      The risk of making this behaviour the default is that existing kernel
      drivers may assume they can rely on timely ring updates by the console
      daemon and thus themselves block on the ring being emptied.
      Signed-off-by: default avatarStefano Stabellini <stefano.stabellini@eu.citrix.com>
  26. 20 Feb, 2008 1 commit
    • Keir Fraser's avatar
      xenconsoled: don't force newline with timestamps · 238ff9fc
      Keir Fraser authored
      Previously a newline was forced after every call to
      write_with_timestamp. This could result in some ugly logs when a
      single console line stretched over multiple calls. This change carries
      some extra state to determine if we ended the last call to
      write_with_timestamp on a newline, and prints the timestamp as
      This also fixes a bug where logging hv messages was dependent on the
      guest timestamp flag.
      Signed-off-by: default avatarCole Robinson <crobinso@redhat.com>
  27. 15 Feb, 2008 1 commit
  28. 12 Feb, 2008 2 commits
  29. 27 Jan, 2008 2 commits
  30. 26 Jan, 2008 2 commits
  31. 22 Jan, 2008 2 commits
  32. 17 Jan, 2008 1 commit
  33. 16 Jan, 2008 1 commit
  34. 19 Dec, 2007 1 commit