1. 28 4月, 2017 2 次提交
    • J
      qemu: Add support for guest CPU cache · df13c0b4
      Jiri Denemark 提交于
      This patch maps /domain/cpu/cache element into -cpu parameters:
      
      - <cache mode='passthrough'/> is translated to host-cache-info=on
      - <cache level='3' mode='emulate'/> is transformed into l3-cache=on
      - <cache mode='disable'/> is turned in host-cache-info=off,l3-cache=off
      
      Any other <cache> element is forbidden.
      
      The tricky part is detecting whether QEMU supports the CPU properties.
      
      The 'host-cache-info' property is introduced in v2.4.0-1389-ge265e3e480,
      earlier QEMU releases enabled host-cache-info by default and had no way
      to disable it. If the property is present, it defaults to 'off' for any
      QEMU until at least 2.9.0.
      
      The 'l3-cache' property was introduced later by v2.7.0-200-g14c985cffa.
      Earlier versions worked as if l3-cache=off was passed. For any QEMU
      until at least 2.9.0 l3-cache is 'off' by default.
      
      QEMU 2.9.0 was the first release which supports probing both properties
      by running device-list-properties with typename=host-x86_64-cpu. Older
      QEMU releases did not support device-list-properties command for CPU
      devices. Thus we can't really rely on probing them and we can just use
      query-cpu-model-expansion QMP command as a witness.
      
      Because the cache property probing is only reliable for QEMU >= 2.9.0
      when both are already supported for quite a few releases, we let QEMU
      report an error if a specific cache mode is explicitly requested. The
      other mode (or both if a user requested CPU cache to be disabled) is
      explicitly turned off for QEMU >= 2.9.0 to avoid any surprises in case
      the QEMU defaults change. Any older QEMU already turns them off so not
      doing so explicitly does not make any harm.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      df13c0b4
    • J
      Add support for CPU cache specification · a646a601
      Jiri Denemark 提交于
      This patch introduces
      
          <cache level='N' mode='emulate'/>
          <cache mode='passthrough'/>
          <cache mode='disable'/>
      
      sub element of /domain/cpu. Currently only a single <cache> element is
      allowed.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      a646a601
  2. 27 4月, 2017 2 次提交
  3. 26 4月, 2017 1 次提交
    • D
      util: switch over to use keycodemapdb GIT submodule · 02fb15fb
      Daniel P. Berrange 提交于
      A long time ago we imported the keymaps.csv file from GTK-VNC so we
      can do conversions between keycode sets. Meanwhile lots of bug fixes
      have gone into this CSV file and libvirt hasn't kept in sync. The
      keymaps.csv file and associated generator script has been pulled out
      of GTK-VNC into a dedicated GIT repo for use as a submodule. This
      allows GTK-VNC, SPICE-GTK, QEMU and libvirt to share the same master
      database and tools and pushing updates merely requires a submodule
      commit update as with gnulib.
      
      The test suite is updated to cover some extra boundary conditions.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      02fb15fb
  4. 21 4月, 2017 2 次提交
  5. 19 4月, 2017 2 次提交
  6. 18 4月, 2017 2 次提交
  7. 13 4月, 2017 2 次提交
  8. 11 4月, 2017 9 次提交
  9. 10 4月, 2017 1 次提交
  10. 07 4月, 2017 3 次提交
  11. 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
  12. 05 4月, 2017 2 次提交
  13. 04 4月, 2017 5 次提交
  14. 03 4月, 2017 5 次提交
    • A
      tests: Test ACPI, UEFI requirements · deb38c45
      Andrea Bolognani 提交于
      Make sure every combination of ACPI and UEFI works, or fails to
      work, as expected.
      deb38c45
    • A
      qemu: Enforce ACPI, UEFI requirements · 396ca36c
      Andrea Bolognani 提交于
      Depending on the architecture, requirements for ACPI and UEFI can
      be different; more specifically, while on x86 UEFI requires ACPI,
      on aarch64 it's the other way around.
      
      Enforce these requirements when validating the domain, and make
      the error message more accurate by mentioning that they're not
      necessarily applicable to all architectures.
      
      Several aarch64 test cases had to be tweaked because they would
      have failed the validation step otherwise.
      396ca36c
    • A
      qemu: Advertise ACPI support for aarch64 guests · 560335c3
      Andrea Bolognani 提交于
      So far, libvirt has assumed that only x86 supports ACPI,
      but that's inaccurate since aarch64 supports it too.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1429509
      560335c3
    • A
      qemu: Remove redundant capabilities · 5fbb16ba
      Andrea Bolognani 提交于
      Now that the NO_ACPI and NO_HPET capabilities are set
      automatically by virQEMUCapsInitQMPBasicArch() if
      appropriate for the architecture, they shouldn't be
      used manually to avoid masking bugs.
      5fbb16ba
    • A
      tests: Initialize basic capabilities properly · 1cf3e52a
      Andrea Bolognani 提交于
      The capabilities used in test cases should match those used
      during normal operation for the tests to make any sense.
      
      This results in the generated command line for a few test
      cases (most notably non-x86 test cases that were wrongly
      assuming they could use -no-acpi) changing.
      1cf3e52a