1. 05 6月, 2019 1 次提交
  2. 17 4月, 2019 3 次提交
  3. 15 4月, 2019 1 次提交
    • J
      qemu: Don't cache microcode version · 673c62a3
      Jiri Denemark 提交于
      My earlier commit be46f613 was incomplete. It removed caching of
      microcode version in the CPU driver, which means the capabilities XML
      will see the correct microcode version. But it is also cached in the
      QEMU capabilities cache where it is used to detect whether we need to
      reprobe QEMU. By missing the second place, the original commit
      be46f613 made the situation even worse since libvirt would report
      correct microcode version while still using the old host CPU model
      (visible in domain capabilities XML).
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      673c62a3
  4. 11 4月, 2019 2 次提交
  5. 13 3月, 2019 1 次提交
  6. 08 3月, 2019 1 次提交
  7. 07 3月, 2019 1 次提交
  8. 14 12月, 2018 1 次提交
  9. 03 12月, 2018 1 次提交
  10. 16 11月, 2018 1 次提交
  11. 20 9月, 2018 1 次提交
  12. 18 9月, 2018 1 次提交
    • M
      security_manager: Load lock plugin on init · 3e26b476
      Michal Privoznik 提交于
      Now that we know what metadata lock manager user wishes to use we
      can load it when initializing security driver. This is achieved
      by adding new argument to virSecurityManagerNewDriver() and
      subsequently to all functions that end up calling it.
      
      The cfg.mk change is needed in order to allow lock_manager.h
      inclusion in security driver without 'syntax-check' complaining.
      This is safe thing to do as locking APIs will always exist (it's
      only backend implementation that changes). However, instead of
      allowing the include for all other drivers (like cpu, network,
      and so on) allow it only for security driver. This will still
      trigger the error if including from other drivers.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      3e26b476
  13. 04 9月, 2018 1 次提交
    • J
      tests: Properly reset mocked CPU model · d8313d3c
      Jiri Denemark 提交于
      When switching the host architecture to something for which we do not
      have any host CPU model defined, the mocked
      virQEMUCapsProbeHostCPUForEmulator would just return the previous CPU
      model resulting in strange combinations, such as "core2duo" host CPU
      model in QEMU capabilities for "AArch64" architecture. It currently
      doesn't break any test case, but we should fix it anyway to avoid future
      surprises which would be quite hard to debug.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      d8313d3c
  14. 24 8月, 2018 1 次提交
  15. 26 7月, 2018 1 次提交
    • C
      conf: Drop unnecessary caps parsing logic · b251d6ad
      Cole Robinson 提交于
      The comment says:
      
          /* If the logic here seems fairly arbitrary, that's because it is :)
           * This is duplicating how the code worked before
           * CapabilitiesDomainDataLookup was added. We can simplify this,
           * but it would take a bit of work because the test suite fails
           * in numerous minor ways. */
      
      Nowadays the test suite changes appear quite simple, just extending
      test capabilities data a bit so that we aren't trying to define
      invalid arch/os/virtType/machine combos
      Acked-by: NMichal Privoznik <mprivozn@redhat.com>
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      b251d6ad
  16. 19 4月, 2018 2 次提交
    • A
      tests: Create full host NUMA topology in more cases · 4fe4ffdb
      Andrea Bolognani 提交于
      vircapstest has code to add a full host NUMA topology, that
      is, one that includes all information about nodes and CPUs
      including IDs; testQemuCapsInit(), which is used to create a
      mock virCapsPtr for QEMU tests, however, just fakes it by
      setting nnumaCell_max to some number.
      
      While the latter approach has served us well so far, we're
      going to need all the information to be filled in soon. In
      order to do that, we can just move the existing code from
      vircapstest to testutils and, with some renaming and
      trivial tweaking, use it as-is.
      
      Interestingly, the NUMA topology generated by the function
      is rigged up so that the NUMA nodes aren't (necessarily)
      numbered starting from 0, which is a nice way to spot
      mistaken assumptions in our codebase.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      4fe4ffdb
    • P
      tests: qemu: Add helper code to lookup latest capability file · e831821c
      Peter Krempa 提交于
      The helper iterates the directory with files for the capability test and
      looks up the most recent one for the given architecture. This will allow
      testing against the newest qemu capabilities so that we can catch
      regressions in behaviour more easily.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      e831821c
  17. 17 4月, 2018 1 次提交
  18. 04 1月, 2018 1 次提交
  19. 26 7月, 2017 3 次提交
    • P
      qemu: switch QEMU capabilities to use virFileCache · d03de54e
      Pavel Hrdina 提交于
      The switch contains considerable amount of changes:
      
        virQEMUCapsRememberCached() is removed because this is now handled
        by virFileCacheSave().
      
        virQEMUCapsInitCached() is removed because this is now handled by
        virFileCacheLoad().
      
        virQEMUCapsNewForBinary() is split into two functions,
        virQEMUCapsNewData() which creates new data if there is nothing
        cached and virQEMUCapsLoadFile() which loads the cached data.
        This is now handled by virFileCacheNewData().
      
        virQEMUCapsCacheValidate() is removed because this is now handled by
        virFileCacheValidate().
      
        virQEMUCapsCacheFree() is removed because it's no longer required.
      
        Add virCapsPtr into virQEMUCapsCachePriv because for each call of
        virFileCacheLookup*() we need to use current virCapsPtr.
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      Reviewed-by: NJiri Denemark <jdenemar@redhat.com>
      d03de54e
    • P
      qemu: pass only host arch instead of the whole virCaps · f366cfed
      Pavel Hrdina 提交于
      This is a preparation for following patches where we switch to
      virFileCache for QEMU capabilities cache
      
      The host arch will always remain the same but virCaps may change.  Now
      the host arch is stored while creating new qemu capabilities cache.
      It removes the need to pass virCaps into virQEMUCapsCache*() functions.
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      Reviewed-by: NJiri Denemark <jdenemar@redhat.com>
      f366cfed
    • P
      tests: rewrite host CPU mocking · 13554a9e
      Pavel Hrdina 提交于
      Move all the host CPU data into a separate file and rewrite qemucpumock
      to not use passed @caps.  This is preparation for following patch which
      will replace virCaps argument with virArch.
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      Reviewed-by: NJiri Denemark <jdenemar@redhat.com>
      13554a9e
  20. 20 7月, 2017 1 次提交
  21. 13 6月, 2017 1 次提交
  22. 11 4月, 2017 4 次提交
  23. 23 3月, 2017 1 次提交
  24. 17 3月, 2017 1 次提交
  25. 08 3月, 2017 1 次提交
    • M
      qemuTestDriverInit: Don't access live data · 16efa11a
      Michal Privoznik 提交于
      Some of our tests (e.g. qemuhotplugtest) call
      virDomainSaveConfig(). Now the problem is, qemuTestDriverInit()
      creates a fake qemu driver and fills it with some fake
      configuration. At least so we hoped. The truth is, it calls
      regular virQEMUDriverConfigNew() and then fix couple of paths.
      Literally. Therefore our tests see regular stateDir and configDir
      for the user that is running the tests. Directories, where live
      domain XMLs are stored. Let's just hope our test suite hasn't
      mangled any of them.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      16efa11a
  26. 04 11月, 2016 1 次提交
  27. 22 9月, 2016 4 次提交
  28. 10 8月, 2016 1 次提交