1. 15 7月, 2015 7 次提交
    • M
      virsh: Teach cmdFreepages to work with lxc driver · f69ece07
      Michal Privoznik 提交于
      Some drivers don't expose available huge page sizes in the
      capabilities XML. For instance, LXC driver is one of those.
      This has a downside that when virsh is trying to get
      aggregated info on free pages per all NUMA nodes, it fails.
      The problem is that the virNodeGetFreePages() API expects
      caller to pass an array of page sizes he is interested in.
      In virsh, this array is filled from the capabilities from
      '/capabilities/host/cpu/pages' XPath. As said, in LXC
      there's no such XPath and therefore virsh fails currently.
      But hey, we can fallback: the page sizes are exposed under
      '/capabilities/host/topology/cells/cell/pages'. The page
      size can be collected from there, and voilà the command
      works again. But now we must make sure that there are no
      duplicates in the array passed to the public API. Otherwise
      we won't get as beautiful output as we are getting now.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      f69ece07
    • M
      cmdVcpuPin: Remove dead code · 416d0e94
      Michal Privoznik 提交于
      There's this condition:
      
      flags & VIR_DOMAIN_AFFECT_CURRENT && virDomainIsActive(dom)
      
      which can never be true since VIR_DOMAIN_AFFECT_CURRENT has hardcoded
      value of zero. Therefore virDomainIsActive() is a dead code. However,
      the condition could make sense if it is rewritten as the following:
      
      !(flags & VIR_DOMAIN_AFFECT_CONFIG) && virDomainIsActive(dom)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      416d0e94
    • M
      qemuMigrationRun: Don't leak @fd · cd043390
      Michal Privoznik 提交于
      If we are migrating to an UNIX socket, we accept() a connection
      from qemu and use that FD to set up a tunnel. However, the FD is
      not closed as often as it should be.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      cd043390
    • C
      lxc: wait for nbd device to be up to get its PIDs · 4749fec1
      Cédric Bosdonnat 提交于
      The nbd device pid file doesn't appear immediately after starting
      qemu-nbd: adding a small loop to wait for it before getting it's
      processes PIDs.
      4749fec1
    • C
      Fix qemu-nbd cleanup crashes · 8dd8df6f
      Cédric Bosdonnat 提交于
      The virLXCControllerAppendNBDPids function didn't properly initialize
      pids and npids. In case of failure it was crashing when freeing those.
      8dd8df6f
    • A
      nodeinfo: Formatting changes · aa6c3fee
      Andrea Bolognani 提交于
      aa6c3fee
    • A
      nodeinfo: Make sysfs_prefix usage more consistent · 75f6f545
      Andrea Bolognani 提交于
      Make sure sysfs_prefix, when present, is always the first argument
      to a function; don't use a different name to refer to it; check
      whether it is NULL, and hence SYSFS_SYSTEM_PATH should be used, only
      when using it directly and not just passing it down to another
      function; always pass down the same value we've been passed when
      calling another function.
      75f6f545
  2. 14 7月, 2015 16 次提交
  3. 13 7月, 2015 1 次提交
    • M
      qemuProcessHandleMigrationStatus: Update migration status more frequently · 45cc2fca
      Michal Privoznik 提交于
      After Jirka's migration patches libvirt is listening on migration
      events from qemu instead of actively polling on the monitor. There is,
      however, a little regression (introduced in 6d2edb6a). The
      problem is, the current status of migration job is updated in
      qemuProcessHandleMigrationStatus if and only if migration job was
      started. But eventually every asynchronous job may result in
      migration. Therefore, since this job is not strictly a
      migration job, internal state was not updated and later checks failed:
      
        virsh # save fedora22 /tmp/fedora22_ble.save
        error: Failed to save domain fedora22 to /tmp/fedora22_ble.save
        error: operation failed: domain save job: is not active
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      45cc2fca
  4. 11 7月, 2015 1 次提交
    • J
      libxl: set dom0 state to running · 4ffb21c8
      Jim Fehlig 提交于
      Commit 45697fe5 added dom0 to driver->domains, but missed
      setting its state to 'running'
      
      $ virsh list
       Id    Name                           State
      ----------------------------------------------------
       0     Domain-0                       shut off
      4ffb21c8
  5. 10 7月, 2015 15 次提交