1. 09 12月, 2019 1 次提交
  2. 20 11月, 2019 1 次提交
  3. 12 11月, 2019 1 次提交
  4. 15 10月, 2019 1 次提交
  5. 13 9月, 2019 1 次提交
  6. 27 8月, 2019 2 次提交
  7. 23 8月, 2019 4 次提交
    • R
      tests: Use flat namespace on macOS · fefc4ff4
      Roman Bolshakov 提交于
      Test executables and mocks have assumption that any symbol can be
      replaced with LD_PRELOAD. That's not a case for macOS unless flat
      namespace is used, because every external symbol reference records the
      library to be looked up. And the symbols cannot be replaced unless dyld
      interposing is used.
      
      Setting DYLD_FORCE_FLAT_NAMESPACE changes symbol lookup behaviour to be
      similar to Linux dynamic linker. It's more lightweight solution than
      explicitly decorating all mock symbols as interpositions and building
      libvirt as interposable dynamic library.
      
      This fixes vircryptotest and allows to proceed other tests that rely on
      mocks a little bit further.
      Signed-off-by: NRoman Bolshakov <r.bolshakov@yadro.com>
      fefc4ff4
    • R
      tests: Remove -module flag for mocks · 647c6518
      Roman Bolshakov 提交于
      macOS has two kinds of loadable libraries: MH_BUNDLE, and MH_DYLIB.
      bundle is used for plugins that are loaded with dlopen/dlsym/dlclose.
      And there's no way to preload a bundle into an application. dynamic
      linker (dyld) will reject it when finds it in DYLD_INSERT_LIBRARIES.
      
      Unfortunately, a bundle is built if -module flag is provided to libtool.
      The flag has been removed to build dylibs with ".dylib" suffix.
      Signed-off-by: NRoman Bolshakov <r.bolshakov@yadro.com>
      647c6518
    • R
      tests: Add lib- prefix to all mocks · fde36108
      Roman Bolshakov 提交于
      In preparation libtool "-module" flag removal, add lib prefix to all
      mock shared objects.
      
      While at it, introduce VIR_TEST_MOCK macros that makes path out of mock
      name to be used with VIR_TEST_PRELOAD or VIR_TEST_MAIN_PRELOAD.  That,
      hopefully, improves readability, reduces line length and allows to
      tailor VIR_TEST_MOCK for specific platform if it has shared library
      suffix different from ".so".
      Signed-off-by: NRoman Bolshakov <r.bolshakov@yadro.com>
      fde36108
    • R
      tests: Preload mocks with DYLD_INSERT_LIBRARIES on macOS · 351492e3
      Roman Bolshakov 提交于
      LD_PRELOAD has no effect on macOS. Instead, dyld(1) provides a way for
      symbol hooking via DYLD_INSERT_LIBRARIES. The variable should contain
      colon-separated paths to the dylibs to be inserted.
      Signed-off-by: NRoman Bolshakov <r.bolshakov@yadro.com>
      351492e3
  8. 19 6月, 2019 1 次提交
  9. 20 2月, 2019 1 次提交
  10. 03 1月, 2019 1 次提交
  11. 14 12月, 2018 1 次提交
  12. 20 9月, 2018 1 次提交
  13. 19 4月, 2018 1 次提交
    • 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
  14. 13 3月, 2018 1 次提交
  15. 03 11月, 2017 1 次提交
    • A
      Remove backslash alignment attempts · 3e7db8d3
      Andrea Bolognani 提交于
      Right-aligning backslashes when defining macros or using complex
      commands in Makefiles looks cute, but as soon as any changes is
      required to the code you end up with either distractingly broken
      alignment or unnecessarily big diffs where most of the changes
      are just pushing all backslashes a few characters to one side.
      
      Generated using
      
        $ git grep -El '[[:blank:]][[:blank:]]\\$' | \
          grep -E '*\.([chx]|am|mk)$$' | \
          while read f; do \
            sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
          done
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      3e7db8d3
  16. 27 7月, 2017 2 次提交
  17. 04 4月, 2017 1 次提交
  18. 28 3月, 2017 1 次提交
  19. 14 6月, 2016 1 次提交
    • J
      xenconfig: support bios=ovmf xl.cfg · 53d98cce
      Jim Fehlig 提交于
      Add support to xenconfig for conversion of xl.cfg(5) bios config
      to/from libvirt domXml <loader> config. SeaBIOS is the default
      for HVM guests using upstream QEMU. ROMBIOS is the default when
      using the old qemu-dm. This patch allows specifying OVMF as an
      alternate firmware.
      
      Example xl.cfg:
        bios = "ovmf"
      
      Example domXML:
        <os>
          ...
          <loader readonly='yes' type='pflash'>/usr/lib/xen/boot/ovmf.bin</loader>
        </os>
      
      Note that currently Xen does not support a separate nvram for
      non-volatile variables.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      53d98cce
  20. 08 6月, 2016 15 次提交
  21. 20 5月, 2016 1 次提交