1. 12 12月, 2016 2 次提交
  2. 11 12月, 2016 2 次提交
  3. 09 12月, 2016 15 次提交
  4. 08 12月, 2016 7 次提交
  5. 07 12月, 2016 10 次提交
  6. 06 12月, 2016 4 次提交
    • V
      cgroup: Use system reported "unlimited" value for comparison · ac8ac9e0
      Viktor Mihajlovski 提交于
      With kernel 3.18 (since commit 3e32cb2e0a12b6915056ff04601cf1bb9b44f967)
      the "unlimited" value for cgroup memory limits has changed once again as
      its byte value is now computed from a page counter.
      The new "unlimited" value reported by the cgroup fs is therefore 2**51-1
      pages which is (VIR_DOMAIN_MEMORY_PARAM_UNLIMITED - 3072). This results
      e.g. in virsh memtune displaying 9007199254740988 instead of unlimited
      for the limits.
      
      This patch uses the value of memory.limit_in_bytes from the cgroup
      memory root which is the system's "real" unlimited value for comparison.
      
      See also libvirt commit 231656bb for the
      history for kernel 3.12 and before.
      Signed-off-by: NViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
      ac8ac9e0
    • M
      nss: Introduce libvirt-guest module · 22f7ceb6
      Michal Privoznik 提交于
      So far the NSS module looks up only hostnames as provided by
      guests themselves. However, there are some cases where this is
      not enough: e.g. when there's a fresh new guest being installed
      (with some generic hostname) say from a live ISO image; or some
      (older) systems don't advertise their hostname in DHCP
      transactions at all.
      In cases like that it would be helpful if we translate domain
      name as seen by libvirt too so that users can:
      
        # virsh start $dom && ssh $dom
      
      In order to achieve that new libvirt-guest module is introduced,
      while older libvirt module maintains its current behaviour (that
      is translating guest provided names into IP addresses).
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      22f7ceb6
    • M
      nss: Move address lookup code into a separate function · 3225e5b2
      Michal Privoznik 提交于
      The part of the code that iterates over an array of JSON values
      is going to be re-used. Instead of copying it over, move it to a
      separate function.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      3225e5b2
    • M
      nss: Move address appending code into a separate function · 60787656
      Michal Privoznik 提交于
      The part of the code that appends found IP address into a list is
      going to be re-used. Instead of copying it over, move it to a
      separate function.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      60787656