1. 15 12月, 2016 32 次提交
  2. 14 12月, 2016 7 次提交
    • J
      virjson: Remove const from virJSONValueObjectForeachKeyValue · c1cb4cb9
      Jiri Denemark 提交于
      Almost none of our virJSONValue*Get* functions accept const virJSONValue
      pointers and it wouldn't even make sense since we sometimes modify what
      we get. And because there is no reason for preventing callers of
      virJSONValueObjectForeachKeyValue from modifying the values they get in
      each iteration we can just stop doing it.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      c1cb4cb9
    • D
      Avoid variable named 'stat' · a81cfb64
      Daniel P. Berrange 提交于
      Using a variable named 'stat' clashes with the system function
      'stat()' causing compiler warnings on some platforms
      
      cc1: warnings being treated as errors
      ../../src/qemu/qemu_monitor_text.c: In function 'parseMemoryStat':
      ../../src/qemu/qemu_monitor_text.c:604: error: declaration of 'stat' shadows a global declaration [-Wshadow]
      /usr/include/sys/stat.h:455: error: shadowed declaration is here [-Wshadow]
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      a81cfb64
    • P
      log: Fix loading of conf file for log daemon · 15398e6a
      Peter Krempa 提交于
      'log_outputs' would be read into the variable for log_filters
      15398e6a
    • P
      lock: Fix loading of config file for the lock daemon · e98b3090
      Peter Krempa 提交于
      'log_outputs' would be read into the variable for log_filters
      e98b3090
    • V
      qemu: Allow use of hot plugged host CPUs if no affinity set · 283e2904
      Viktor Mihajlovski 提交于
      If the cpuset cgroup controller is disabled in /etc/libvirt/qemu.conf
      QEMU virtual machines can in principle use all host CPUs, even if they
      are hot plugged, if they have no explicit CPU affinity defined.
      
      However, there's libvirt code supposed to handle the situation where
      the libvirt daemon itself is not using all host CPUs. The code in
      qemuProcessInitCpuAffinity attempts to set an affinity mask including
      all defined host CPUs. Unfortunately, the resulting affinity mask for
      the process will not contain the offline CPUs. See also the
      sched_setaffinity(2) man page.
      
      That means that even if the host CPUs come online again, they won't be
      used by the QEMU process anymore. The same is true for newly hot
      plugged CPUs. So we are effectively preventing that QEMU uses all
      processors instead of enabling it to use them.
      
      It only makes sense to set the QEMU process affinity if we're able
      to actually grow the set of usable CPUs, i.e. if the process affinity
      is a subset of the online host CPUs.
      
      There's still the chance that for some reason the deliberately chosen
      libvirtd affinity matches the online host CPU mask by accident. In this
      case the behavior remains as it was before (CPUs offline while setting
      the affinity will not be used if they show up later on).
      Signed-off-by: NViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
      Tested-by: NMatthew Rosato <mjrosato@linux.vnet.ibm.com>
      283e2904
    • V
      util: Allow to query the presence of host CPU bitmaps · 1be35910
      Viktor Mihajlovski 提交于
      The functions to retrieve online and present host CPU information
      are only supported on Linux for the time being.
      
      This leads to runtime errors if these function are used on other
      platforms. To avoid that, code in higher levels using the functions
      must replicate the conditional compilation in higher level which
      is error prone (and is plainly spoken ugly).
      
      Adding a function virHostCPUHasBitmap that can be used to check
      for host CPU bitmap support.
      
      NB: There are other functions including the host CPU count that
      are lacking support on all platforms, but they are too essential
      in order to be bypassed.
      Signed-off-by: NViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
      1be35910
    • J
      qemu: Fix virQEMUCapsFindTarget on ppc64le · f00c0047
      Jiri Denemark 提交于
      virQEMUCapsFindTarget is supposed to find an alternative QEMU binary if
      qemu-system-$GUEST_ARCH doesn't exist. The alternative is using host
      architecture when it is compatible with $GUEST_ARCH. But a special
      treatment has to be applied for ppc64le since the QEMU binary is always
      called qemu-system-ppc64.
      
      Broken by me in v2.2.0-171-gf2e71550.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1403745Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      f00c0047
  3. 13 12月, 2016 1 次提交