1. 12 10月, 2016 19 次提交
  2. 11 10月, 2016 9 次提交
    • P
      qemu: Reuse virDomainDeGetVcpusTopology to calculate total vcpu count · 043ba4a4
      Peter Krempa 提交于
      Rather than multiplying sockets, cores, and threads use the new helper
      for getting the vcpu count resulting from the topology.
      043ba4a4
    • P
      conf: Sanitize cpu topology numbers · da0d82d1
      Peter Krempa 提交于
      Make sure that the topology results into a sane number of cpus (up to
      UINT_MAX) so that it can be sanely compared to the vcpu count of the VM.
      
      Additionally the helper added in this patch allows to fetch the total
      number the topology results to so that it does not have to be
      reimplemented later.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1378290
      da0d82d1
    • J
      util: Remove need for local 'nelems' · 6aba5346
      John Ferlan 提交于
      Since it's only used in loop - just go direct.
      6aba5346
    • J
      tests: Need to initialize data · e5c7ce8c
      John Ferlan 提交于
      If not initialized and the virAsprintf to jsonreply or fulllablel fails,
      then the call to qemuMonitorTestFree will take stack data.
      e5c7ce8c
    • J
      vsh: Fix some issues in auto completion code · f6a4ccdc
      John Ferlan 提交于
      1. Move the declaration of const vshCmdDef *help - it should be at the
         top of the "if" rather than in the middle.
      
      2. Change a comparison from && to || - without doing so we could crash
         on commands like 'virsh list' which would allow completion of some
         non -- option based on whatever was found in the current working
         directory and then as soon as that was completed, the next <tab>
         would crash since "opt" would be returned as NULL, but the check
         was dereferencing "&& opt->type"
      
      3. Before dereferencing opt->completer, be sure opt isn't NULL.
      f6a4ccdc
    • J
      util: Resolve memory leaks in virLogParse{Output|Filter} · 6de78c63
      John Ferlan 提交于
      In both virLogParseOutput and virLogParseFilter, rather than returning
      NULL, goto cleanup since it's possible that for each the first condition
      passes, but the || condition doesn't and thus we leak memory.
      6de78c63
    • J
      tests: Prefer virGetLastErrorMessage in testSELinuxLabeling · 95e66fce
      John Ferlan 提交于
      Yet another case of not needing virGetLastError processing
      95e66fce
    • J
      conf: Remove incorrect check when encoding shmem audit message · c951cdbf
      John Ferlan 提交于
      Remove the !size check since size is initialized to NULL and thus
      causing the condition to always be true
      c951cdbf
    • M
      network: add dnsmasq option 'dhcp-authoritative' · 4ac20b3a
      Martin Wilck 提交于
      The dnsmasq man page recommends that dhcp-authoritative "should be
      set when dnsmasq is definitely the only DHCP server on a network".
      This is the case for libvirt-managed virtual networks.
      
      The effect of this is that VMs that fail to renew their DHCP lease
      in time (e.g. if the VM or host is suspended) will be able to
      re-acquire the lease even if it's expired, unless the IP address has
      been taken by some other host. This avoids various annoyances caused
      by changing VM IP addresses.
      4ac20b3a
  3. 10 10月, 2016 12 次提交