1. 22 9月, 2016 16 次提交
  2. 13 8月, 2016 1 次提交
    • J
      cpu_x86: fix libvirtd crash when host cpu vendor is not available · 541e9ae6
      Jim Fehlig 提交于
      When starting a guest and copying host vendor cpuid to the guest
      cpu, libvirtd would crash if the host cpu contained a NULL vendor
      field. Avoid the crash by checking for a valid vendor in the host
      cpu before copying the cpuid to the guest cpu.
      
      For completeness, here is a backtrace from the crash
      
      (gdb) bt
      f0  0x00007ffff739bf33 in x86DataCpuid (cpuid=0x8, cpuid=0x8,
          data=data@entry=0x7fffb800ee78) at cpu/cpu_x86.c:287
      f1  virCPUx86DataAddCPUID (data=data@entry=0x7fffb800ee78, cpuid=0x8)
          at cpu/cpu_x86.c:355
      f2  0x00007ffff739ef47 in x86Compute (host=<optimized out>, cpu=0x7fffb8000cc0,
          guest=0x7fffecca7348, message=<optimized out>) at cpu/cpu_x86.c:1580
      f3  0x00007fffd2b38e53 in qemuBuildCpuModelArgStr (migrating=false,
          hasHwVirt=<synthetic pointer>, qemuCaps=0x7fffb8001040, buf=0x7fffecca7360,
          def=0x7fffc400ce20, driver=0x1c) at qemu/qemu_command.c:6283
      f4  qemuBuildCpuCommandLine (cmd=cmd@entry=0x7fffb8002f60,
          driver=driver@entry=0x7fffc80882c0, def=def@entry=0x7fffc400ce20,
          qemuCaps=qemuCaps@entry=0x7fffb8001040, migrating=<optimized out>)
          at qemu/qemu_command.c:6445
      (gdb) f2
      (gdb) p *host_model
      $23 = {name = 0x7fffb800ec50 "qemu64", vendor = 0x0, signature = 0, data = {
          len = 2, data = 0x7fffb800e720}}
      541e9ae6
  3. 10 8月, 2016 3 次提交
  4. 01 7月, 2016 2 次提交
  5. 25 6月, 2016 2 次提交
    • Q
      cpu_map.xml: add cmt/mbm feature to x86 · f294b83e
      Qiaowei Ren 提交于
      Some Intel processor families (e.g. the Intel Xeon processor E5 v3
      family) introduced some PQos (Platform Qos) features, including CMT
      (Cache Monitoring technology) and MBM (Memory Bandwidth Monitoring),
      to monitor or control shared resource. This patch add them into x86
      part of cpu_map.xml to be used for applications based on libvirt to
      get cpu capabilities. For example, Nova in OpenStack schedules guests
      based on the CPU features that the host has.
      Signed-off-by: NQiaowei Ren <qiaowei.ren@intel.com>
      f294b83e
    • J
      cpu: Consolidate ARM drivers · e2ddc811
      Jiri Denemark 提交于
      Both ARM and AArch64 drivers are exactly the same (modulo function
      names). Let's use just one driver for all ARM architectures.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      e2ddc811
  6. 17 6月, 2016 2 次提交
    • J
      cpu_x86: Use signature in CPU detection code · 5a9221b9
      Jiri Denemark 提交于
      Our current detection code uses just the number of CPU features which
      need to be added/removed from the CPU model to fully describe the CPUID
      data. The smallest number wins. But this may sometimes generate wrong
      results as one can see from the fixed test cases. This patch modifies
      the algorithm to prefer the CPU model with matching signature even if
      this model results in a longer list of additional features.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      5a9221b9
    • J
      cpu: Add Skylake-Client x86 CPU model · 2f3ccdf0
      Jiri Denemark 提交于
      The CPU model was implemented in QEMU by commit f6f949e929.
      
      The change to i7-5600U is wrong since it's a 5th generation CPU, i.e.,
      Broadwell rather than Skylake, but that's just the result of our CPU
      detection code (which is fixed by the following commit).
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      2f3ccdf0
  7. 09 6月, 2016 13 次提交
  8. 02 6月, 2016 1 次提交
    • M
      ppc64Compute: Avoid possible NULL dereference · 09258c3c
      Michal Privoznik 提交于
      cpu/cpu_ppc64.c: In function 'ppc64Compute':
      cpu/cpu_ppc64.c:620:27: error: potential null pointer dereference [-Werror=null-dereference]
           if (STRNEQ(guest_model->name, host_model->name)) {
                      ~~~~~~~~~~~^~~
      cpu/cpu_ppc64.c:620:9: note: in expansion of macro 'STRNEQ'
           if (STRNEQ(guest_model->name, host_model->name)) {
               ^~~~~~
      cc1: all warnings being treated as errors
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      09258c3c