1. 23 6月, 2016 4 次提交
    • J
      libxl: use serial device for console when targetType is serial · 76d58716
      Jim Fehlig 提交于
      When domXML contains only <console type='pty'> and no corresponding
      <serial>, the console is "stolen" [1] and used as the first <serial>
      device. When this "stolen" console is accessed from the libxl driver
      (in libxlConsoleCallback and libxlDomainOpenConsole), check if the
      targetType is VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SERIAL, and use the
      "stolen" device in def->serials[0] instead. Prior to this change,
      creating a domain with input XML containing only a <console> device
      and subsequently attempting to access its console with
      'virsh console' would fail
      
      error: internal error: character device <null> is not using a PTY
      
      [1] See comments associated with virDomainDefAddConsoleCompat() in
          $LIBVIRT-SRC/src/conf/domain_conf.c:
      76d58716
    • J
      Use for instead of code duplication when parsing USB port · a921699a
      Ján Tomko 提交于
      We are done if the string ends and move to another nesting
      level if we find a dot.
      a921699a
    • J
      Split out USB port parsing · 0956d9b2
      Ján Tomko 提交于
      Make rewriting it easier.
      0956d9b2
    • J
      Add a test for long USB port paths · e9843279
      Ján Tomko 提交于
      We support up to four levels of nested USB devices in the guest.
      
      Add a test for a domain using all four and a negative test for a domain
      using five.
      e9843279
  2. 22 6月, 2016 36 次提交