1. 15 12月, 2016 1 次提交
  2. 07 12月, 2016 3 次提交
  3. 05 12月, 2016 2 次提交
  4. 24 11月, 2016 1 次提交
    • R
      tests: eventtest: fix build on macOS · a4234291
      Roman Bogorodskiy 提交于
      macOS doesn't support clock_gettime(2), at least versions prior 10.12
      (I didn't actually check 10.12 though). So, use its own routines in
      eventtest.
      
       * configure.ac: check for requires symbols and define
         HAVE_MACH_CLOCK_ROUTINES if found
       * tests/eventtest.c: add clock_get_time() based implementation
      a4234291
  5. 20 11月, 2016 1 次提交
    • G
      configure: Look for daemons in **/sbin · 112b0959
      Guido Günther 提交于
      Unify the logic we use for looking up daemons and admin binaries. Some
      lookups prefered $PATH over **/sbin while others left out $PATH
      entierly.  We add **/sbin since non-root users might not have these in
      their path.
      
      This also unbreaks libvirt when built on Debian systems with usrmerge[0]
      and run on systems without it.
      
      [0]: https://packages.debian.org/sid/usrmerge
      112b0959
  6. 15 11月, 2016 1 次提交
    • P
      libssh_transport: add new libssh-based transport · 6917467c
      Pino Toscano 提交于
      Implement a new libssh transport, which uses libssh to communicate with
      remote hosts, and add all the build system stuff (search of libssh,
      private symbols, etc) to built it.
      
      This new transport supports all the common ssh authentication methods,
      making use of libvirt's auth callbacks for interaction with the user.
      6917467c
  7. 11 11月, 2016 2 次提交
  8. 02 11月, 2016 2 次提交
  9. 05 10月, 2016 1 次提交
  10. 19 9月, 2016 1 次提交
  11. 14 9月, 2016 1 次提交
    • M
      configure: Check for major() more strictly · d53fa838
      Michal Privoznik 提交于
      Thing is, in f3f15cc2 I'm trying to adapt libvirt to the newest
      glibc where major()/minor()/makedev() are moved from sys/types.h
      to sys/sysmacros.h. However, my commit back then expect autoconf
      to be fixed too as we already use AC_HEADER_MAJOR to determine
      which header file the functions are in, but because the header
      files just trigger a warning and not a compile error, the
      autoconf macro detects the bad header file.
      
      This is just a workaround until autoconf macro is fixed.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      d53fa838
  12. 02 9月, 2016 1 次提交
  13. 02 8月, 2016 1 次提交
  14. 01 7月, 2016 1 次提交
  15. 17 6月, 2016 3 次提交
  16. 16 6月, 2016 1 次提交
  17. 14 6月, 2016 1 次提交
  18. 08 6月, 2016 2 次提交
    • D
      configure: allow setting default TLS priority string · cbb2e91e
      Daniel P. Berrange 提交于
      Currently libvirt calls gnutls_set_default_priority()
      which on old systems resolves to "NORMAL" while new
      systems it resolves to "@SYSTEM". Either way, this
      is a global default that is identical across all apps.
      
      We want to allow distros to flexibility to define a
      custom default string for libvirt priority, so add
      a --tls-priority=STRING  flag to configure to enable
      this to be set.
      
      It is expected that distros would use this when creating
      RPM/Deb/etc packages, according to their preferred crypto
      handling policies.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      cbb2e91e
    • D
      tls: remove support for gnutls 1.x.x, require 2.2.0 · d8a8af34
      Daniel P. Berrange 提交于
      We need to use the gnutls_priority_set_direct method which
      was not introduced until 2.1.7, so bump version to 2.2.0
      which is the first stable release with it included. This
      release dates from Dec 2007 so it is reasonable to ditch
      support for the 1.x.x series for gnutls releases entirely.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      d8a8af34
  19. 07 6月, 2016 1 次提交
  20. 06 6月, 2016 1 次提交
  21. 20 5月, 2016 2 次提交
    • M
      virtestmock: Mock stat() properly · 49c1a078
      Michal Privoznik 提交于
      There is a lot to explain, but I try to make it as short as
      possible. I'd start by pasting some parts of sys/stat.h:
      
      extern int stat (const char *__restrict __file,
      		 struct stat *__restrict __buf) __THROW __nonnull ((1, 2));
      
      extern int __REDIRECT_NTH (stat, (const char *__restrict __file,
      				  struct stat *__restrict __buf), stat64)
           __nonnull ((1, 2));
      
      __extern_inline int
      __NTH (stat (const char *__path, struct stat *__statbuf))
      {
        return __xstat (_STAT_VER, __path, __statbuf);
      }
      
      Only one of these is effective at once, due to some usage of
      the mess we are dealing with in here. So, basically, while
      compiling or linking stat() in our code can be transformed into
      some other func. Or a dragon.
      Now, if you read stat(2) manpage, esp. "C library/kernel
      differences" section, you'll learn that glibc uses some tricks
      for older applications to work. I haven't gotten around actual
      code that does this, but based on my observations, if 'stat'
      symbol is found, glibc assumes it's dealing with ancient
      application. Unfortunately, it can be just ours stat coming from
      our mock. Therefore, calling stat() from a test will end up in
      our mock. But since glibc is not exposing the symbol anymore, our
      call of real_stat() will SIGSEGV immediately as the pointer to
      function is NULL. Therefore, we should expose only those symbols
      we know glibc has.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      49c1a078
    • J
      util: Introduce encryption APIs · 1ce9c08a
      John Ferlan 提交于
      Introduce virCryptoHaveCipher and virCryptoEncryptData to handle
      performing encryption.
      
       virCryptoHaveCipher:
         Boolean function to determine whether the requested cipher algorithm
         is available. It's expected this API will be called prior to
         virCryptoEncryptdata. It will return true/false.
      
       virCryptoEncryptData:
         Based on the requested cipher type, call the specific encryption
         API to encrypt the data.
      
      Currently the only algorithm support is the AES 256 CBC encryption.
      
      Adjust tests for the API's
      1ce9c08a
  22. 11 5月, 2016 2 次提交
    • J
      storage: Fix virStorageBackendDiskDeleteVol for device mapper · 8cdff0b9
      John Ferlan 提交于
      Commit id 'df1011ca' modified virStorageBackendDiskDeleteVol to use
      "dmsetup remove --force" to remove the volume, but left things in an
      inconsistent state since the partition still existed on the disk and
      only the device mapper device (/dev/dm-#) was removed.
      
      Prior to commit '1895b421' (or '1ffd82bb' and '471e1c4e'), this could
      go unnoticed since virStorageBackendDiskRefreshPool wasn't called.
      However, the pool would be unusable since the /dev/dm-# device would
      be removed even though the partition was not removed unless a multipathd
      restart reset the link. That would of course make the volume appear again
      in the pool after a refresh or pool start after libvirt reload.
      
      This patch removes the 'dmsetup' logic and re-implements the partition
      deletion logic for device mapper devices. The removal of the partition
      via 'parted rm --script #' will cause udev device change logic to allow
      multipathd to handle removing the dm-* device associated with the partition.
      8cdff0b9
    • J
      libxl: switch to using libxl_domain_create_restore from v4.4 API · fccf2725
      Jim Fehlig 提交于
      In LIBXL_API_VERSION 0x040400, the libxl_domain_create_restore API
      gained a parameter for specifying restore parameters. Switch to
      using version 0x040400, which will be useful in a subsequent commit
      to specify the Xen migration stream version when restoring.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      fccf2725
  23. 10 5月, 2016 1 次提交
  24. 02 5月, 2016 3 次提交
  25. 01 5月, 2016 1 次提交
  26. 21 4月, 2016 1 次提交
  27. 19 4月, 2016 1 次提交
  28. 16 4月, 2016 1 次提交
    • J
      libxl: use LIBXL_API_VERSION 0x040200 · e7440656
      Jim Fehlig 提交于
      To ensure the libvirt libxl driver will build with future versions
      of Xen where the libxl API may change in incompatible ways,
      explicitly use LIBXL_API_VERSION 0x040200. The libxl driver
      does use new libxl APIs that have been added since Xen 4.2, but
      currently it does not make use of any changes made to existing
      APIs such as libxl_domain_create_restore or libxl_set_vcpuaffinity.
      The version can be bumped if/when the libxl driver consumes the
      changed APIs.
      
      Further details can be found in the following discussion thread
      
      https://www.redhat.com/archives/libvir-list/2016-April/msg00178.htmlSigned-off-by: NJim Fehlig <jfehlig@suse.com>
      e7440656