1. 12 4月, 2018 3 次提交
  2. 06 4月, 2018 1 次提交
  3. 03 4月, 2018 1 次提交
  4. 22 3月, 2018 1 次提交
  5. 08 3月, 2018 1 次提交
  6. 03 2月, 2018 1 次提交
  7. 04 1月, 2018 1 次提交
  8. 28 11月, 2017 1 次提交
  9. 25 11月, 2017 1 次提交
    • J
      qemu: Get capabilities to use iscsi password-secret argument · 4f44b8b5
      John Ferlan 提交于
      Detect the capability via the query-qmp-schema for blockdev-add
      to find the 'password-secret' parameter that will allow the iSCSI
      code to use the master secret object to encrypt the secret for an
      and only need to provide the object id of the secret on the command
      line thus obsfuscating the passphrase.
      4f44b8b5
  10. 24 11月, 2017 1 次提交
    • P
      qemu: caps: Add capability for 'share-rw' disk option · 860a3c4b
      Peter Krempa 提交于
      'share-rw' for the disk device configures qemu to allow concurrent
      access to the backing storage.
      
      The capability is checked in various supported disk frontend buses since
      it does not make sense to partially backport it.
      860a3c4b
  11. 23 11月, 2017 1 次提交
  12. 16 10月, 2017 1 次提交
  13. 04 10月, 2017 1 次提交
  14. 20 9月, 2017 1 次提交
    • J
      qemu: Detect support for vxhs · fa6159dd
      John Ferlan 提交于
      Using the query-qmp-schema introspection - look for the 'vxhs'
      blockdevOptions type.
      
      NB: This is a "best effort" type situation as there is not a
          mechanism to determine whether the running QEMU has been
          built with '--enable-vxhs'. All we can do is check if the
          option to use vxhs for a blockdev-add exists in the command
          infrastructure which does not take that into account when
          building its table of commands and options.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      fa6159dd
  15. 14 9月, 2017 1 次提交
    • J
      qemu: Add QEMU 2.10 x86_64 the generated capabilities · 3358bfb2
      John Ferlan 提交于
      For reference, these were generated by updating a local qemu git
      repository to the latest upstream, making sure the latest dependencies
      were met via "dnf builddep qemu" from my sufficiently privileged root
      account, checking out the v2.10.0 tag, and building in order to generate
      an "x86_64-softmmu/qemu-system-x86_64" image.
      
      Then using a clean libvirt tree updated to master and built, the image
      was then provided as input:
      
          tests/qemucapsprobe /path/to/x86_64-softmmu/qemu-system-x86_64 > \
             tests/qemucapabilitiesdata/caps_2.10.0.x86_64.replies
      
      With the .replies file in place and the DO_TEST line added and build,
      then running the following commands:
      
          touch tests/qemucapabilitiesdata/caps_2.10.0.x86_64.xml
          VIR_TEST_REGENERATE_OUTPUT=1 ./tests/qemucapabilitiestest
      
      to generate tests/qemucapabilitiesdata/caps_2.10.0.x86_64.xml and both
      were added to the commit.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      3358bfb2
  16. 29 8月, 2017 2 次提交
  17. 27 7月, 2017 1 次提交
  18. 11 7月, 2017 1 次提交
  19. 08 6月, 2017 2 次提交
  20. 26 5月, 2017 1 次提交
  21. 15 5月, 2017 3 次提交
  22. 28 4月, 2017 2 次提交
    • P
      5237a74d
    • 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
  23. 27 4月, 2017 1 次提交
  24. 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
  25. 27 3月, 2017 2 次提交
  26. 21 3月, 2017 1 次提交
  27. 17 3月, 2017 2 次提交
  28. 04 3月, 2017 2 次提交
    • J
      qemu: Use full CPU model expansion on x86 · bb3363c9
      Jiri Denemark 提交于
      The static CPU model expansion is designed to return only canonical
      names of all CPU properties. To maintain backwards compatibility libvirt
      is stuck with different spelling of some of the features, but we need to
      use the full expansion to get the additional spellings. In addition to
      returning all spelling variants for all properties the full expansion
      will contain properties which are not guaranteed to be migration
      compatible. Thus, we need to combine both expansions. First we need to
      call the static expansion to limit the result to migratable properties.
      Then we can use the result of the static expansion as an input to the
      full expansion to get both canonical names and their aliases.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      bb3363c9
    • J
      qemu: Probe "max" CPU model in TCG · d7f054a5
      Jiri Denemark 提交于
      Querying "host" CPU model expansion only makes sense for KVM. QEMU 2.9.0
      introduces a new "max" CPU model which can be used to ask QEMU what the
      best CPU it can provide to a TCG domain is.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      d7f054a5