1. 08 1月, 2018 2 次提交
  2. 04 1月, 2018 1 次提交
  3. 30 5月, 2017 1 次提交
  4. 09 5月, 2017 2 次提交
  5. 27 4月, 2017 1 次提交
  6. 07 4月, 2017 1 次提交
  7. 27 3月, 2017 2 次提交
  8. 14 12月, 2016 1 次提交
    • 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
  9. 24 11月, 2016 1 次提交
  10. 16 9月, 2016 1 次提交
  11. 15 9月, 2016 1 次提交
  12. 06 9月, 2016 1 次提交
  13. 11 7月, 2016 2 次提交
  14. 01 7月, 2016 1 次提交
  15. 25 6月, 2016 1 次提交
  16. 24 6月, 2016 4 次提交
  17. 20 6月, 2016 1 次提交
  18. 15 6月, 2016 1 次提交
    • M
      virHostCPUGetInfo: Fix build on non-Unix like systems · 8ce58b00
      Michal Privoznik 提交于
      This function is plenty of ifdefs providing implementations for
      Linux, *BSD and OS-X. However, if we are being build for any
      other architecture, all that's left behind by preprocessor is
      just a error reporting call and return of -1. In that case,
      passed arguments are unused:
      
      ../../src/util/virhostcpu.c: In function 'virHostCPUGetInfo':
      ../../src/util/virhostcpu.c:966:33: error: unused parameter 'cpus' [-Werror=unused-parameter]
                         unsigned int *cpus,
                                       ^~~~
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      8ce58b00
  19. 12 6月, 2016 1 次提交
    • R
      hostcpu: fix build on FreeBSD · 2af05415
      Roman Bogorodskiy 提交于
       * Fix misspelt function name:
          s/virHostCPUGetStatsFreebsd/virHostCPUGetStatsFreeBSD/
       * Mark the first argument to virHostCPUGetInfo with ATTRIBUTE_UNUSED
         as it's not actually used on non-Linux
      2af05415
  20. 10 6月, 2016 7 次提交
  21. 25 12月, 2015 1 次提交
  22. 03 8月, 2015 2 次提交
    • A
      nodeinfo: Fix build failure when KVM headers are not available · 88c4c32a
      Andrea Bolognani 提交于
      Compiler error:
      
        ../../src/nodeinfo.c: In function 'nodeGetThreadsPerSubcore':
        ../../src/nodeinfo.c:2393: error: label 'out' defined but not used [-Wunused-label]
        ../../src/nodeinfo.c:2352: error: unused parameter 'arch' [-Wunused-parameter]
      88c4c32a
    • S
      nodeinfo: Fix output on PPC64 KVM hosts · 014208c4
      Shivaprasad G Bhat 提交于
      The nodeinfo is reporting incorrect number of cpus and incorrect host
      topology on PPC64 KVM hosts. The KVM hypervisor on PPC64 needs only
      the primary thread in a core to be online, and the secondaries offlined.
      While scheduling a guest in, the kvm scheduler wakes up the secondaries to
      run in guest context.
      
      The host scheduling of the guests happen at the core level(as only primary
      thread is online). The kvm scheduler exploits as many threads of the core
      as needed by guest. Further, starting POWER8, the processor allows splitting
      a physical core into multiple subcores with 2 or 4 threads each. Again, only
      the primary thread in a subcore is online in the host. The KVM-PPC
      scheduler allows guests to exploit all the offline threads in the subcore,
      by bringing them online when needed.
      (Kernel patches on split-core http://www.spinics.net/lists/kvm-ppc/msg09121.html)
      
      Recently with dynamic micro-threading changes in ppc-kvm, makes sure
      to utilize all the offline cpus across guests, and across guests with
      different cpu topologies.
      (https://www.mail-archive.com/kvm@vger.kernel.org/msg115978.html)
      
      Since the offline cpus are brought online in the guest context, it is safe
      to count them as online. Nodeinfo today discounts these offline cpus from
      cpu count/topology calclulation, and the nodeinfo output is not of any help
      and the host appears overcommited when it is actually not.
      
      The patch carefully counts those offline threads whose primary threads are
      online. The host topology displayed by the nodeinfo is also fixed when the
      host is in valid kvm state.
      Signed-off-by: NShivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      014208c4
  23. 23 7月, 2015 1 次提交
  24. 22 7月, 2015 3 次提交