1. 01 5月, 2016 1 次提交
  2. 21 4月, 2016 1 次提交
  3. 19 4月, 2016 1 次提交
  4. 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
  5. 15 4月, 2016 1 次提交
    • E
      makefile: Move include/Makefile.am to include/libvirt/Makefile.am · ab517a5c
      Erik Skultety 提交于
      The reason for this is to fix the automatic rebuild of libvirt-common.h.in.
      All *.in files should be automatically rebuilt each time they're modified.
      It works well for makefiles and pkgconfig files, since they do have a valid
      dependency in the top-level Makefile. However, with libvirt-common.h.in
      there is no dependency in the top-level Makefile and there's no need for it
      either, so this rule
      
      include/libvirt/libvirt-common.h: $(top_builddir)/config.status \
              $(top_srcdir)/include/libvirt/libvirt-common.h.in
          cd $(top_builddir) && $(SHELL) ./config.status $@
      
      is never hit and should be moved to include/Makefile, but that's automake's
      job. According to GNU automake docs:
      
      "Files created by AC_CONFIG_FILES, be they
      Automake Makefiles or not, are all removed by ‘make distclean’. Their inputs
      are automatically distributed, unless they are the output of prior
      AC_CONFIG_FILES commands. Finally, rebuild rules are generated in the Automake
      Makefile existing in the subdirectory of the output file, if there is one, or
      in the top-level Makefile otherwise."
      
      Which means that if we want to have the rule for libvirt-common.h automatically
      generated by automake, the include/Makefile.am needs to be moved into libvirt/
      subdirectory and $SUBDIRS in the top-level Makefile need to be adjusted as
      well. This patch moves Makefile.am from include/ to include/libvirt, adjusting
      the prefixes accordingly as well as updates the top-level Makefile $SUBDIRS to
      properly hint automake to generate all rules at proper places.
      
      Best way to see the changes, use -M with 'git show'.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      ab517a5c
  6. 13 4月, 2016 1 次提交
    • A
      configure: Make virt-host-validate optional · edebc166
      Andrea Bolognani 提交于
      virt-host-validate, just like virt-login-shell, doesn't make sense
      on Windows, so we should avoid building it.
      
      Make the tool optional and build it by default on all platforms
      except Windows, erroring out if the user attempts to build it
      anyway.
      edebc166
  7. 08 4月, 2016 1 次提交
    • A
      configure: Move check for <gnutls/crypto.h> · 6c209a90
      Andrea Bolognani 提交于
      Checking for the availability of this header, just like checking
      for the availability of gnutls_rnd(), requires CFLAGS and LIBS to
      be set appropriately.
      
      Fixes the following compilation errors on FreeBSD:
      
        qemu/qemu_domain.c:640:16: error: implicit declaration of function
         'gnutls_rnd' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
            if ((ret = gnutls_rnd(GNUTLS_RND_RANDOM, key, nbytes)) < 0) {
                       ^
        qemu/qemu_domain.c:640:27: error: use of undeclared identifier
         'GNUTLS_RND_RANDOM'; did you mean 'GNUTLS_CRD_ANON'?
            if ((ret = gnutls_rnd(GNUTLS_RND_RANDOM, key, nbytes)) < 0) {
                                  ^~~~~~~~~~~~~~~~~
                                  GNUTLS_CRD_ANON
      6c209a90
  8. 07 4月, 2016 3 次提交
    • A
      qemu: Explicitly check for gnutls_rnd() · 2d23d145
      Andrea Bolognani 提交于
      Our use of gnutls_rnd(), introduced with commit ad7520e8, is
      conditional to the availability of the <gnutls/crypto.h> header
      file.
      
      Such check, however, turns out not to be strict enough, as there
      are some versions of GnuTLS (eg. 2.8.5 from CentOS 6) that provide
      the header file, but not the function itself, which was introduced
      only in GnuTLS 2.12.0.
      
      Introduce an explicit check for the function.
      2d23d145
    • A
      configure: Always use old_CFLAGS and old_LIBS · a2e0e68c
      Andrea Bolognani 提交于
      The variables used for storing CFLAGS and LIBS before temporarily
      modifying them was consistent when it comes to the name, but not
      when it comes to the case.
      
      Make sure names are completely consistent.
      a2e0e68c
    • A
      configure: Restore CFLAGS properly after GnuTLS checks · bbb17237
      Andrea Bolognani 提交于
      The previous value of CFLAGS was saved as old_cflags but later
      restored from old_CFLAGS, which is clearly not correct.
      
      Restore CFLAGS from the right variable.
      bbb17237
  9. 06 4月, 2016 1 次提交
  10. 19 3月, 2016 1 次提交
    • M
      Initial support for NSS plugin skeleton · 859cb18d
      Michal Privoznik 提交于
      Name Service Switch is a glibc feature responsible for many
      things. Translating domain names into IP addresses and vice versa
      is just one of them. However, currently it's the only
      functionality that this commit is tickling. Well, in this commit
      the plugin skeleton is introduced. Implementation to come in next
      patches.
      Because of the future testing, where the implementation is to be
      linked with a test, this needs to go into static library. Linking
      a program with an .so statically is not portable. Therefore a
      dummy libnss_libvirt_impl library is being introduced too.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      859cb18d
  11. 18 3月, 2016 1 次提交
    • M
      Drop paths.h include · 865764de
      Michal Privoznik 提交于
      We include the file in plenty of places. This is mostly due to
      historical reasons. The only place that needs something from the
      header file is storage_backend_fs which opens _PATH_MOUNTED. But
      it gets the file included indirectly via mntent.h. At no other
      place in our code we need _PATH_.*. Drop the include and
      configure check then.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      865764de
  12. 01 3月, 2016 1 次提交
  13. 18 2月, 2016 1 次提交
  14. 04 2月, 2016 1 次提交
    • R
      configure: zfs: enable on Linux · 82f17fbe
      Roman Bogorodskiy 提交于
      ZFS-on-Linux implementation of ZFS starting with version 0.6.4
      contains all the features we use. Additionally, as we support
      'volmode' option handling that's not available on ZoL but is
      available on FreeBSD, there is no need to block ZFS storage driver
      on Linux anymore.
      
      So un-mark zfs storage driver as FreeBSD-only.
      82f17fbe
  15. 18 1月, 2016 1 次提交
  16. 13 1月, 2016 1 次提交
  17. 12 1月, 2016 3 次提交
  18. 10 1月, 2016 1 次提交
    • C
      examples: Use one top level makefile · da176bf6
      Cole Robinson 提交于
      Using one Makefile per example subdirectory essentially serializes 'make'
      calls. Convert to one example/Makefile that builds and distributes
      all the subdir files. This reduces example/ rebuild time from about 5.8
      seconds to 1.5 seconds on my machine.
      
      One slight difference is that we no longer ship Makefile.am with the
      examples in the rpm. This was virtually useless anyways since the Makefile
      was very specific to libvirt infrastructure, so wasn't generically
      reusable anyways.
      
      Tested with 'make distcheck' and 'make rpm'
      da176bf6
  19. 17 12月, 2015 3 次提交
    • C
      Allow building lxc without virt-login-shell · bec787ee
      Cédric Bosdonnat 提交于
      Add a configure option to disable virt-login-shell build even if lxc is
      enabled.
      bec787ee
    • A
      process: Add virProcessGetMaxMemLock() · bbefc9cc
      Andrea Bolognani 提交于
      This function can be used to retrieve the current locked memory
      limit for a process, so that the setting can be later restored.
      
      Add a configure check for getrlimit(), which we now use.
      bbefc9cc
    • E
      build: disable vbox on cygwin · df2fadfc
      Eric Blake 提交于
      Cygwin cannot build the vbox driver yet:
      
        CC       vbox/libvirt_driver_vbox_impl_la-vbox_glue.lo
      In file included from vbox/vbox_glue.c:27:0:
      vblox/vbox_XPCOMCGlue.c:63:3: error: #error "Port me"
       # error "Port me"
         ^
      In file included from vbox/vbox_XPCOMCGlue.c:45:0,
                       from vbox/vbox_glue.c:27:
      vbox/vbox_XPCOMCGlue.c: In function 'tryLoadOne':
      vbox/vbox_XPCOMCGlue.c:98:46: error: 'DYNLIB_NAME' undeclared (first use in this function)
               if (virAsprintf(&name, "%s/%s", dir, DYNLIB_NAME) < 0)
      	                                      ^
      ./util/virstring.h:245:31: note: in definition of macro 'virAsprintf'
                               strp, __VA_ARGS__)
      			       ^
      
      Rather than trying to figure out how to get dynamic loading of
      vbox to work under cygwin (since I don't even have a working vbox
      setup to test whether it works), I'm going to be lazy and just
      default to not even trying vbox on cygwin.
      df2fadfc
  20. 16 12月, 2015 1 次提交
    • I
      libxl: Use libxentoollog in preference to libxenctrl if available. · 716be257
      Ian Campbell 提交于
      Upstream Xen is in the process of splitting the (stable API) xtl_*
      interfaces out from the (unstable API) libxenctrl library and into a
      new (stable API) libxentoollog.
      
      In order to be compatible with Xen both before and after this
      transition check for xtl_createlogger_stdiostream in a libxentoollog
      library and use it if present. If it is not present assume it is in
      libxenctrl.
      
      Compile tested on Xen 4.6 and a development tree with the split in
      place.
      Signed-off-by: NIan Campbell <ian.campbell@citrix.com>
      716be257
  21. 09 12月, 2015 1 次提交
  22. 30 11月, 2015 1 次提交
    • E
      libvirt: introduce libvirt/libvirt-common.h.in · a20b6237
      Erik Skultety 提交于
      As it turned out, we need to share some enums and declarations between
      libvirt.h and libvirt-admin.h, but since our policy forbids direct includes of
      libvirt*.h, there has to be some header exempt from this rule. This patch moves
      the relevant part of code from libvirt.h.in to libvirt-common.h.in. Moreover,
      since there is no need to have libvirt.h generated anymore, introduce a new
      header libvirt.h which was previosly ignored from git and make the common
      header ignored and generated instead.
      a20b6237
  23. 24 11月, 2015 1 次提交
  24. 04 11月, 2015 2 次提交
  25. 02 10月, 2015 1 次提交
  26. 25 9月, 2015 1 次提交
    • M
      tools: Link libvirt.la and readline to libvirt_shell.a · 1fb8ac4c
      Michal Privoznik 提交于
      So, our mingw build is broken. It's because while libvirt_shell
      library is using some of our internal APIs, e.g. virStrndup, and
      readline API but it's not being linked with nor libvirt.la nor
      libreadline.  Only subsequent users of the library, like virsh,
      do link to the needed libraries. In fact, I'm surprised Linux
      linker doesn't care, because how can it make a static library
      with missing symbols is mystery to me.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      1fb8ac4c
  27. 09 9月, 2015 1 次提交
  28. 05 9月, 2015 1 次提交
  29. 04 9月, 2015 1 次提交
    • J
      examples: Add example polkit ACL rules · 29b51674
      Jiri Denemark 提交于
      Creating ACL rules is not exactly easy and existing examples are pretty
      simple. This patch adds a somewhat complex example which defines several
      roles. Admins can do everything, operators can do basic operations
      on any domain and several groups of users who act as operators but only
      on a limited set of domains.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      29b51674
  30. 02 9月, 2015 1 次提交
  31. 20 8月, 2015 2 次提交
  32. 14 8月, 2015 1 次提交