1. 11 4月, 2017 8 次提交
  2. 10 4月, 2017 1 次提交
  3. 07 4月, 2017 3 次提交
  4. 06 4月, 2017 2 次提交
    • J
      Split out -Wframe-larger-than warning from WARN_CLFAGS · e73889b6
      Ján Tomko 提交于
      Introduce STRICT_FRAME_LIMIT_CFLAGS that will be used for
      production code and RELAXED_FRAME_LIMIT_CFLAGS for tests.
      
      Raising the limit for tests allows building them with clang
      with optimizations disabled.
      e73889b6
    • A
      qemu: Move some functions to qemu_capspriv.h · 2e5de445
      Andrea Bolognani 提交于
      This header file has been created so that we can expose
      internal functions to the test suite without making them
      public: those in qemu_capabilities.h bearing the comment
      
        /* Only for use by test suite */
      
      are obvious candidates for being moved over.
      2e5de445
  5. 05 4月, 2017 2 次提交
  6. 04 4月, 2017 5 次提交
  7. 03 4月, 2017 7 次提交
  8. 30 3月, 2017 3 次提交
    • J
      qemu: Check non-migratable host CPU features · 385c1cc9
      Jiri Denemark 提交于
      CPU features which change their value from disabled to enabled between
      two calls to query-cpu-model-expansion (the first with no extra
      properties set and the second with 'migratable' property set to false)
      can be marked as enabled and non-migratable in qemuMonitorCPUModelInfo.
      
      Since the code consuming qemuMonitorCPUModelInfo currently ignores the
      migratable flag, this change is effectively changing the CPU model
      advertised in domain capabilities to contain all features (even those
      which block migration). And this matches what we do for QEMU older than
      2.9.0, when we detect all CPUID bits ourselves without asking QEMU.
      
      As a result of this change
      
          <cpu mode='host-model'>
            <feature name='invtsc' policy='require'/>
          </cpu>
      
      will work with all QEMU versions. Such CPU definition would be forbidden
      with QEMU >= 2.9.0 without this patch.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      385c1cc9
    • J
      qemu: Check migratable host CPU features · 91927c62
      Jiri Denemark 提交于
      If calling query-cpu-model-expansion on the 'host'/'max' CPU model with
      'migratable' property set to false succeeds, we know QEMU is able to
      tell us which features would disable migration. Thus we can mark all
      enabled features as migratable.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      91927c62
    • J
      qemuMonitorCPUModelInfo: Add support for non-migratable features · 03a6a0db
      Jiri Denemark 提交于
      QEMU is able to tell us whether a CPU feature would block migration or
      not. This patch adds support for storing such features in
      qemuMonitorCPUModelInfo.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      03a6a0db
  9. 29 3月, 2017 2 次提交
  10. 28 3月, 2017 5 次提交
  11. 27 3月, 2017 2 次提交
    • M
    • J
      cputest: Add tests for virCPUUpdateLive API · 84cc51ea
      Jiri Denemark 提交于
      The test takes
      
        x86-cpuid-Something-guest.xml CPU (the CPU libvirt would use for
          host-model on a CPU described by x86_64-cpuid-Something.xml without
          talking to QEMU about what it supports on the host)
      
      and updates it according to CPUID data from QEMU:
      
        x86_64-cpuid-Something-enabled.xml (reported as "feature-words"
          property of the CPU device)
      
      and
      
        x86_64-cpuid-Something-disabled.xml (reported as "filtered-features"
          property of the CPU device).
      
      The result is compared to
      
        x86_64-cpuid-Something-json.xml (the CPU libvirt would use as
          host-model based on the reply from query-cpu-model-expansion).
      
      The comparison is a bit tricky because the *-json.xml CPU contains fewer
      disabled features. Only the features which are included in the base CPU
      model, but listed as disabled in *.json will be disabled in *-json.xml.
      The CPU computed by virCPUUpdateLive from the test data will list all
      features present in the host's CPUID data and not enabled in *.json as
      disabled. The cpuTestUpdateLiveCompare function checks that the computed
      and expected sets of enabled features match.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      84cc51ea