1. 04 3月, 2017 2 次提交
  2. 24 2月, 2017 1 次提交
  3. 17 2月, 2017 1 次提交
  4. 15 11月, 2016 5 次提交
    • J
      cpu: Avoid adding <vendor> to custom CPUs · 98b7c37d
      Jiri Denemark 提交于
      Guest CPU definitions with mode='custom' and missing <vendor> are
      expected to run on a host CPU from any vendor as long as the required
      CPU model can be used as a guest CPU on the host. But even though no CPU
      vendor was explicitly requested we would sometimes force it due to a bug
      in virCPUUpdate and virCPUTranslate.
      
      The bug would effectively forbid cross vendor migrations even if they
      were previously working just fine.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      98b7c37d
    • J
      cputest: Don't test cpuGuestData · 509a4a40
      Jiri Denemark 提交于
      The API is no longer used anywhere else since it was replaced by a much
      saner work flow utilizing new APIs that work on virCPUDefPtr directly:
      virCPUCompare, virCPUUpdate, and virCPUTranslate.
      
      Not testing the new work flow caused some bugs to be hidden. This patch
      reveals them, but doesn't attempt to fix them. To make sure all test
      still pass after this patch, all affected test results are modified to
      pretend the tests succeeded. All of the bugs will be fixed in the
      following commits and the artificial modifications will be reverted.
      
      The following is the list of bugs in the new CPU model work flow:
      
      - a guest CPU with mode='custom' and missing <vendor/> gets the vendor
        copied from host's CPU (the vendor should only be copied to host-model
        CPUs):
          DO_TEST_UPDATE("x86", "host", "min", VIR_CPU_COMPARE_IDENTICAL)
          DO_TEST_UPDATE("x86", "host", "pentium3", VIR_CPU_COMPARE_IDENTICAL)
          DO_TEST_GUESTCPU("x86", "host-better", "pentium3", NULL, 0)
      
      - when a guest CPU with mode='custom' needs to be translated into
        another model because the original model is not supported by a
        hypervisor, the result will have its vendor set to the vendor of the
        original CPU model as specified in cpu_map.xml even if the original
        guest CPU XML didn't contain <vendor/>:
          DO_TEST_GUESTCPU("x86", "host", "guest", model486, 0)
          DO_TEST_GUESTCPU("x86", "host", "guest", models, 0)
          DO_TEST_GUESTCPU("x86", "host-Haswell-noTSX", "Haswell-noTSX",
                           haswell, 0)
      
      - legacy POWERx_v* model names are not recognized:
          DO_TEST_GUESTCPU("ppc64", "host", "guest-legacy", ppc_models, 0)
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      509a4a40
    • J
      cputest: Don't use superfluous preferred model · 63842776
      Jiri Denemark 提交于
      In some cases preferred model doesn't really do anything since the
      result remains the same even if it is removed.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      63842776
    • J
      cputest: Don't use unsupported preferred model · f60c5e4e
      Jiri Denemark 提交于
      Using a preferred CPU model which is not in the list of CPU models
      supported by a hypervisor does not make sense.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      f60c5e4e
    • J
      cputest: Don't use preferred model for minimum match CPUs · 43a94270
      Jiri Denemark 提交于
      Guest CPUs with match='minimum' should always be updated to match host
      CPU model. Trying to get different results by supplying preferred models
      does not make sense.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      43a94270
  5. 22 9月, 2016 1 次提交
    • J
      cpu: Rework cpuUpdate · 3b6be3c0
      Jiri Denemark 提交于
      The reworked API is now called virCPUUpdate and it should change the
      provided CPU definition into a one which can be consumed by the QEMU
      command line builder:
      
          - host-passthrough remains unchanged
          - host-model is turned into custom CPU with a model and features
            copied from host
          - custom CPU with minimum match is converted similarly to host-model
          - optional features are updated according to host's CPU
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      3b6be3c0
  6. 25 6月, 2016 1 次提交
    • 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
  7. 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
  8. 09 6月, 2016 27 次提交