1. 24 6月, 2016 1 次提交
    • J
      secret: Move virStorageSecretType and rename · 1eca5f65
      John Ferlan 提交于
      Move the enum into a new src/util/virsecret.h, rename it to be
      virSecretLookupType. Add a src/util/virsecret.h in order to perform
      a couple of simple operations on the secret XML and virSecretLookupTypeDef
      for clearing and copying.
      
      This includes quite a bit of collateral damage, but the goal is to remove
      the "virStorage*" and replace with the virSecretLookupType so that it's
      easier to to add new lookups that aren't necessarily storage pool related.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      1eca5f65
  2. 23 6月, 2016 10 次提交
    • C
      storage: Remove redundant refreshPool check · e808d3f2
      Cole Robinson 提交于
      Every driver provides a refreshPool impl, and many other critical
      places in the code unconditionally call it without checking if
      it exists, so this check is pointless
      e808d3f2
    • C
      qemu: command: Error on accel2d · 7490fdec
      Cole Robinson 提交于
      qemu doesn't have any accel2d support wired up. Explicitly error
      if a user tries it out, or typos the accel3d option
      7490fdec
    • C
      qemu: command: Error on accel3d with non-virtio · 9a4703a3
      Cole Robinson 提交于
      We should be raising an error if accel3d is present for any
      non-virtio video as well, incase someone tries it for say 'qxl'
      9a4703a3
    • N
      qemu: make monitor command API available during async jobs · 6606ea96
      Nikolay Shirokovskiy 提交于
        One can not issue monitor commands manually during async calls thru
      designated API while this could be useful for testing/debugging purposes.
      qemuDomainQemuMonitorCommand uses job of type QEMU_JOB_MODIFY and any async
      call disable parallel execution of this type of job. The only state that is
      changed is taint variable. AFAIU the only place we can mess is resetting
      taint flag in qemuProcessStop routine under some async job. But this can not
      happen thanx to both virDomainObjIsActive check in qemuDomainQemuMonitorCommand
      and resetting active status in qemuProcessStop before taint flag.
      
        Change job type to QEMU_JOB_QUERY and thus make the API call available for
      most of async jobs.
      Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      6606ea96
    • P
      Allow virDomain(SG)etGuestVcpus on read-write connection only · dfeb19ff
      Peter Krempa 提交于
      Guest agent interaction is considered privileged.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1349272
      dfeb19ff
    • J
      Add newDomain parameter to qemuDomainAssignAddresses · 8b04ce59
      Ján Tomko 提交于
      Pass 'true' if we are not dealing with a migration.
      8b04ce59
    • C
      conf: Remove dead console compat formatting · 03ce1328
      Cole Robinson 提交于
      This code was attempting to handle some implicit <console> XML
      formatting for manually assembled DomainDef, since previously the
      console<->serial compat copying was only done at XML parse time.
      
      Nowadays it's done via virDomainDefPostParse ->
      virDomainDefAddConsoleCompat, which all manual DomainDef builders
      already call, so we can drop this workaround.
      03ce1328
    • 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
  3. 22 6月, 2016 26 次提交
  4. 21 6月, 2016 2 次提交
  5. 20 6月, 2016 1 次提交
    • P
      util: Make failure to get supplementary group list for a uid non-fatal · 832f1602
      Peter Krempa 提交于
      Since introduction of the DAC security driver we've documented that
      seclabels with a leading + can be used with numerical uid. This would
      not work though with the rest of libvirt if the uid was not actually
      used in the system as we'd fail when trying to get a list of
      supplementary groups for the given uid. Since a uid without entry in
      /etc/passwd (or other user database) will not have any supplementary
      groups we can treat the failure to obtain them as such.
      
      This patch modifies virGetGroupList to not report the error for missing
      users and makes it return an empty list or just the group specified in
      @gid.
      
      All callers will grant less permissions to a user in case of failure of
      this function and thus this change is safe.
      832f1602