1. 13 7月, 2010 5 次提交
    • J
      cpu: Fail when CPU type cannot be detected from XML · 517aba9f
      Jiri Denemark 提交于
      When autodetecting whether XML describes guest or host CPU, the presence
      of <arch> element is checked. If it's present, we treat the XML as host
      CPU definition. Which is right, since guest CPU definitions do not
      contain <arch> element. However, if at the same time the root <cpu>
      element contains `match' attribute, we would silently ignore it and
      still treat the XML as host CPU. We should rather refuse such invalid
      XML.
      517aba9f
    • J
      cpuCompare: Fix comparison of two host CPUs · ac3daf08
      Jiri Denemark 提交于
      When a CPU to be compared with host CPU describes a host CPU instead of
      a guest CPU, the result is incorrect. This is because instead of
      treating additional features in host CPU description as required, they
      were treated as if they were mentioned with all possible policies at the
      same time.
      ac3daf08
    • J
      qemu: Use -nodefconfig when probing for CPU models · 4677b064
      Jiri Denemark 提交于
      In case qemu supports -nodefconfig, libvirt adds uses it when launching
      new guests. Since this option may affect CPU models supported by qemu,
      we need to use it when probing for available models.
      4677b064
    • J
      virsh: Fix man page syntax · 2d14615a
      Jiri Denemark 提交于
      pod2man prints the following warning when generating virsh.1:
      
          tools/virsh.pod:890: Unmatched =back
      2d14615a
    • D
      Fix potential crash in QEMU monitor JSON impl · 8fa58ab3
      Daniel P. Berrange 提交于
      An indentation mistake meant that a check for return status
      was not properly performed in all cases. This could result
      in a crash on NULL pointer in a following line.
      
      * src/qemu/qemu_monitor_json.c: Fix check for return status
        when processing JSON for blockstats
      8fa58ab3
  2. 12 7月, 2010 2 次提交
  3. 10 7月, 2010 1 次提交
  4. 09 7月, 2010 3 次提交
  5. 08 7月, 2010 2 次提交
  6. 07 7月, 2010 5 次提交
  7. 05 7月, 2010 1 次提交
  8. 03 7月, 2010 1 次提交
  9. 02 7月, 2010 3 次提交
  10. 30 6月, 2010 5 次提交
    • R
      cgroup: Fix compilation broken on MinGW due to dirent->d_type · 29da015a
      Ryota Ozaki 提交于
      As pointed out by Eric Blake, using dirent->d_type breaks
      compilation on MinGW. This patch addresses this by using
      '#if defined' as same as doing for virCgroupForDriver.
      29da015a
    • J
      html docs: add link to PHP bindings by Radek Hladik · 8919b4d4
      Justin Clift 提交于
      8919b4d4
    • E
      virsh: tweak help output for VSH_OT_DATA · 26752f3b
      Eric Blake 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=609044 complained
      that 'virsh help pool-create-as' didn't document the shortcut
      that you can do 'virsh pool-create-as $name $type --target $target'
      rather than having to supply the four optional source- arguments
      in order to fill out the necessary positional arguments.
      
      This one-liner changes the help output to hopefully make this more obvious:
      
        NAME
          pool-create-as - create a pool from a set of args
      
        SYNOPSIS
          pool-create-as <name> [--print-xml] <type> [<source-host>] [<source-path>] [<source-dev>] [<source-name>] [<target>] [--source-format <string>]
      
        DESCRIPTION
          Create a pool.
      
        OPTIONS
          [--name] <string>  name of the pool
          --print-xml      print XML document, but don't define/create
          [--type] <string>  type of the pool
          [--source-host] <string>  source-host for underlying storage
          [--source-path] <string>  source path for underlying storage
          [--source-dev] <string>  source device for underlying storage
          [--source-name] <string>  source name for underlying storage
          [--target] <string>  target for underlying storage
          --source-format <string>  format for underlying storage
      
      * tools/virsh.c (vshCmddefHelp): Make it more obvious that data
      arguments may, but not must, be specified by option leaders.
      26752f3b
    • D
      Avoid invoking the qemu monitor destroy callback if the constructor fails · 8134d396
      Daniel P. Berrange 提交于
      Some, but not all, codepaths in the qemuMonitorOpen() method
      would trigger the destroy callback. The caller does not expect
      this to be invoked if construction fails, only during normal
      release of the monitor. This resulted in a possible double-unref
      of the virDomainObjPtr, because the caller explicitly unrefs
      the virDomainObjPtr  if qemuMonitorOpen() fails
      
      * src/qemu/qemu_monitor.c: Don't invoke destroy callback from
        qemuMonitorOpen() failure paths
      8134d396
    • R
      cgroup: Add missing errno == ENOENT check in virCgroupRemoveRecursively · adc796c8
      Ryota Ozaki 提交于
      ENOENT happens normally when a subsystem is enabled with any other
      subsystems and the directory of the target group has already removed
      in a prior loop. In that case, the function should just return without
      leaving an error message.
      
      NB this is the same behavior as before introducing virCgroupRemoveRecursively.
      adc796c8
  11. 29 6月, 2010 9 次提交
  12. 28 6月, 2010 3 次提交
    • L
      Selectively ignore domainSetSecurityAllLabel failure in domain restore · 06f81c63
      Laine Stump 提交于
      When the saved domain image is on an NFS share, at least some part of
      domainSetSecurityAllLabel will fail (for example, selinux labels can't
      be modified). To allow domain restore to still work in this case, just
      ignore the errors.
      06f81c63
    • L
      use virStorageFileIsSharedFS utility function in qemudDomainSaveFlag · f35a9fc1
      Laine Stump 提交于
      Previously, this function had it's own bit of code performing the same
      function. Since there's now an equivalent utility function, let's use it.
      f35a9fc1
    • L
      Enhance virStorageFileIsSharedFS · fb457c5c
      Laine Stump 提交于
      virStorageFileIsSharedFS would previously only work if the entire path
      in question was stat'able by the uid of the libvirtd process. This
      patch changes it to crawl backwards up the path retrying the statfs
      call until it gets to a partial path that *can* be stat'ed.
      
      This is necessary to use the function to learn the fstype for files
      stored as a different user (and readable only by that user) on a
      root-squashed remote filesystem.
      fb457c5c