1. 30 6月, 2016 1 次提交
  2. 26 6月, 2016 1 次提交
  3. 24 6月, 2016 1 次提交
    • J
      build: increase xz compression level · b7200d72
      Ján Tomko 提交于
      Increase the default compression level to 9 from 6.
      
      This also increases decompression memory requirements
      from 9 MB to 65 MB.
      
      Also turn on verbosity.
      b7200d72
  4. 16 6月, 2016 1 次提交
  5. 14 5月, 2016 1 次提交
    • M
      tests: Introduce check-file-access.pl · 4b3a46ca
      Michal Privoznik 提交于
      This script will check output generated by virtestmock against a
      white list. All non matching records found are printed out. So
      far, the white list is rather sparse at the moment.
      This test should be ran only after all other tests finished, and
      should cleanup the temporary file before their execution. Because
      I'm unable to reflect these requirements in Makefile.am
      correctly, I've introduced new target 'check-access' under which
      this test is available.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      4b3a46ca
  6. 26 4月, 2016 1 次提交
  7. 21 4月, 2016 1 次提交
  8. 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
  9. 13 1月, 2016 1 次提交
  10. 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
  11. 07 9月, 2015 1 次提交
  12. 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
  13. 28 6月, 2015 1 次提交
  14. 16 6月, 2015 3 次提交
    • M
      Revert "Example virt-admin" · 220393bf
      Martin Kletzander 提交于
      This reverts commit 4e7ccf87.
      
      I mistakenly pushed it along with the Admin API series.
      220393bf
    • M
      Example virt-admin · 4e7ccf87
      Martin Kletzander 提交于
      You had only one job.  That's what you can say about this example
      binary.  In future, parts of virsh that are usable for this binary
      should be split into separate shell-utils and virt-admin should gain all
      the cool features of virsh without too much code addition.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      4e7ccf87
    • M
      Add libvirt-admin library · 55e0c840
      Martin Kletzander 提交于
      Initial scratch of the admin library.  It has its own virAdmConnectPtr
      that inherits from virAbstractConnectPtr and thus trivially supports
      error reporting.
      
      There's pkg-config file added and spec-file adjusted as well.
      
      Since the library should be "minimalistic" and not depend on any other
      library, the list of files is especially crafted for it.  Most of them
      could've been put to it's own sub-libraries that would be LIBADD'd to
      libvirt_util, libvirt_net_rpc and libvirt_setuid_rpc_client to minimize
      the number of object files being built, but that's a refactoring that
      isn't the orginal aim of this commit.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      55e0c840
  15. 18 7月, 2014 1 次提交
    • M
      examples: Introduce domtop · 28d54aab
      Michal Privoznik 提交于
      There's this question on the list that is asked over and over again.
      How do I get {cpu, memory, ...} usage in percentage? Or its modified
      version: How do I plot nice graphs like virt-manager does?
      
      It would be nice if we have an example to inspire people. And that's
      what domtop should do. Yes, it could be written in different ways, but
      I've chosen this one as I think it show explicitly what users need to
      implement in order to imitate virt-manager's graphing.
      
      Note: The usage is displayed from host perspective. That is, how much
      host CPUs the domain is using. But it should be fairly simple to
      switch do just guest CPU usage if needed.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      28d54aab
  16. 23 6月, 2014 1 次提交
  17. 18 6月, 2014 1 次提交
  18. 30 4月, 2014 1 次提交
  19. 21 1月, 2014 1 次提交
    • Y
      Introduce Libvirt Wireshark dissector · 4f32c5f7
      Yuto KAWAMURA(kawamuray) 提交于
      Introduce Wireshark dissector plugin which adds support to Wireshark
      for dissecting libvirt RPC protocol.
      Added following files to build Wireshark dissector from libvirt source
      tree.
      * tools/wireshark/*: Source tree of Wireshark dissector plugin.
      
      Added followings to configure.ac or Makefile.am.
      configure.ac
      * --with-wireshark-dissector: Enable support for building Wireshark
        dissector.
      * --with-ws-plugindir: Specify wireshark plugin directory that dissector
        will installed.
      * Added tools/wireshark/{Makefile,src/Makefile} to  AC_CONFIG_FILES.
      Makefile.am
      * Added tools/wireshark/ to SUBDIR.
      4f32c5f7
  20. 25 12月, 2013 1 次提交
  21. 14 12月, 2013 1 次提交
  22. 05 12月, 2013 1 次提交
    • P
      examples: Remove broken bad example · 5eb4b042
      Peter Krempa 提交于
      The domsuspend example code is a really old and bad exmample of (how not
      to use) the libvirt API. Remove it as it's apparent that nobody tried to
      use it. It was broken and nobody complained.
      5eb4b042
  23. 26 11月, 2013 2 次提交
  24. 21 10月, 2013 1 次提交
    • D
      Don't link virt-login-shell against libvirt.so (CVE-2013-4400) · 3e2f27e1
      Daniel P. Berrange 提交于
      The libvirt.so library has far too many library deps to allow
      linking against it from setuid programs. Those libraries can
      do stuff in __attribute__((constructor) functions which is
      not setuid safe.
      
      The virt-login-shell needs to link directly against individual
      files that it uses, with all library deps turned off except
      for libxml2 and libselinux.
      
      Create a libvirt-setuid-rpc-client.la library which is linked
      to by virt-login-shell. A config-post.h file allows this library
      to disable all external deps except libselinux and libxml2.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      3e2f27e1
  25. 17 10月, 2013 1 次提交
    • G
      build: use the gnulib version of the .m4 files when present · 70dadfa7
      Giuseppe Scrivano 提交于
      prevent aclocal from preferring .m4 files under m4/ over the version
      provided by gnulib, by using only one directory.
      
      I have noticed this after './configure --help' gave me two different
      versions of "--enable-threads".  This was caused by aclocal that
      preferred the version of lock.m4 provided by autopoint instead of
      using the newer version distributed with gnulib.
      
      Having two different directories made sense back when we checked
      gnulib files into libvirt.git, but that was ages ago.
      Signed-off-by: NGiuseppe Scrivano <gscrivan@redhat.com>
      Signed-off-by: NEric Blake <eblake@redhat.com>
      70dadfa7
  26. 24 9月, 2013 1 次提交
    • E
      build: ensure 'make check' sees up-to-date config.h · b0d9207b
      Eric Blake 提交于
      Nehal J. Wani reported on IRC a rather interesting build failure:
      
      In file included from util/virnetdevbridge.c:53:0:
      /usr/include/linux/in6.h:30:8: error: redefinition of 'struct in6_addr'
       struct in6_addr {
              ^
      
      I traced it to the fact that he ran 'git pull; make check' across
      commit e62e0094.  What happened is that the configure changes
      result in a new variable that was set to be defined on his system,
      but config.h was not regenerated to contain the value of that
      variable.  Running 'make' instead of 'make check' cleaned up the
      problem.  A bit more investigation, and I see that in Makefile.am,
      automake sticks rules that rebuild config.h as part of 'make all',
      and that we also had a dependency 'check-local: all'; BUT the
      rule for check-local is run only at the point when the top-level
      directory is visited.  Automake documents that SUBDIRS should
      contain an explicit '.' at the point the top-level should be
      visited (defaulting to last, if it doesn't appear).  Sure enough,
      with this patch, 'make check' now does the top-level 'all' rules,
      which regenerates 'config.h' BEFORE compiling any code that might
      depend on changed content of that file.
      
      * Makefile.am (SUBDIRS): Put '.' first, not last.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      b0d9207b
  27. 19 7月, 2013 1 次提交
    • E
      maint: split long lines in Makefiles · d21d40bf
      Eric Blake 提交于
      Makefiles are another easy file to enforce line limits.
      
      Mostly straightforward; interesting tricks worth noting:
      src/Makefile.am: $(confdir) was already defined, use it in more places
      tests/Makefile.am: path_add and VG required some interesting compression
      
      * cfg.mk (sc_prohibit_long_lines): Add another test.
      * Makefile.am: Fix offenders.
      * daemon/Makefile.am: Likewise.
      * docs/Makefile.am: Likewise.
      * python/Makefile.am: Likewise.
      * src/Makefile.am: Likewise.
      * tests/Makefile.am: Likewise.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      d21d40bf
  28. 21 5月, 2013 1 次提交
    • E
      maint: use LGPL correctly · d7f53c7b
      Eric Blake 提交于
      Several files called out COPYING or COPYING.LIB instead of using
      the normal boilerplate.  It's especially important that we don't
      call out COPYING from an LGPL file, since COPYING is traditionally
      used for the GPL.  A few files were lacking copyright altogether.
      
      * src/rpc/gendispatch.pl: Add missing copyright.
      * Makefile.nonreentrant: Likewise.
      * src/check-symfile.pl: Likewise.
      * src/check-symsorting.pl: Likewise.
      * src/driver.h: Likewise.
      * src/internal.h: Likewise.
      * tools/libvirt-guests.sh.in: Likewise.
      * tools/virt-pki-validate.in: Mention copyright in comment, not just code.
      * tools/virt-sanlock-cleanup.in: Likewise.
      * src/rpc/genprotocol.pl: Spell out license terms.
      * src/xen/xend_internal.h: Likewise.
      * src/xen/xend_internal.c: Likewise.
      * Makefile.am: Likewise.
      * daemon/Makefile.am: Likewise.
      * docs/Makefile.am: Likewise.
      * docs/schemas/Makefile.am: Likewise.
      * examples/apparmor/Makefile.am: Likewise.
      * examples/domain-events/events-c/Makefile.am: Likewise.
      * examples/dominfo/Makefile.am: Likewise.
      * examples/domsuspend/Makefile.am: Likewise.
      * examples/hellolibvirt/Makefile.am: Likewise.
      * examples/openauth/Makefile.am: Likewise.
      * examples/python/Makefile.am: Likewise.
      * examples/systemtap/Makefile.am: Likewise.
      * examples/xml/nwfilter/Makefile.am: Likewise.
      * gnulib/lib/Makefile.am: Likewise.
      * gnulib/tests/Makefile.am: Likewise.
      * include/Makefile.am: Likewise.
      * include/libvirt/Makefile.am: Likewise.
      * python/Makefile.am: Likewise.
      * python/tests/Makefile.am: Likewise.
      * src/Makefile.am: Likewise.
      * tests/Makefile.am: Likewise.
      * tools/Makefile.am: Likewise.
      * configure.ac: Likewise.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      d7f53c7b
  29. 18 12月, 2012 1 次提交
    • J
      build: Fix AUTHORS generation · 7f193f1f
      Jiri Denemark 提交于
      Using s/#authorslist#/$$out/ makes perl eat @domain part of all email
      addresses from $out since it tries to interpret them as array variables.
      I'm not sure if we can escape those in s/// but I know we can use print:
      
          s/#authorslist#// and print '$$out'
      
      to tell perl not to even look inside $out.
      
      This patch also fixes gen-AUTHORS so that it works in VPATH.
      7f193f1f
  30. 12 12月, 2012 1 次提交
    • E
      maint: mention when HACKING is rebuilt during make · cdf1a372
      Eric Blake 提交于
      I noticed that on Fedora 18, xlstproc decides to regenerate
      HACKING with additional whitespace.  I haven't figured out why
      that is happening (although fixing it would probably be a task
      for xlstproc), but in the process of investigating, I noticed
      that 'make HACKING' was completely silent, for no good reason.
      
      * Makefile.am (gen-ChangeLog, gen-AUTHORS, NEWS)
      ($(top_srcdir)/HACKING): Mention which files we are generating.
      cdf1a372
  31. 20 10月, 2012 1 次提交
    • C
      Autogenerate AUTHORS · 7b21981c
      Cole Robinson 提交于
      AUTHORS.in tracks the maintainers, as well as some folks who were
      previously in AUTHORS but don't have a git commit with proper
      attribution.
      
      Generated output is sorted alphabetically and lacks pretty spacing, so
      tweak AUTHORS.in to follow the same format.
      
      Additionally, drop the syntax-check rule that previously validated
      AUTHORS against git log.
      7b21981c
  32. 18 9月, 2012 1 次提交
    • R
      Add a ./run script for running programs from the local directory. · 5090c576
      Richard W.M. Jones 提交于
      With this script you can run libvirt programs without needing to
      install them first.  You just have to do for example:
      
        ./run ./tools/virsh [args ...]
      
      If you are already in the tools/ subdirectory, then the following
      command will also work:
      
        ../run ./virsh [...]
      
      You can also run the C programs under valgrind like this:
      
        ./run valgrind [valgrind opts...] ./program
      
      or under gdb:
      
        ./run gdb --args ./program
      
      This also works with sudo (eg. if you need root access for libvirt):
      
        sudo ./run ./tools/virsh list --all
      
      Derived from libguestfs and simplified.  The ./run script in
      libguestfs is much more sophisticated:
      
      https://github.com/libguestfs/libguestfs/blob/master/run.in
      5090c576
  33. 25 6月, 2012 1 次提交
  34. 29 7月, 2011 1 次提交
    • E
      maint: add missing copyright notices · ff81956a
      Eric Blake 提交于
      I went with the shorter license notice used by src/libvirt.c,
      rather than spelling out the full LGPLv2+ clause into each of
      these files.
      
      * configure.ac: Declare copyright.
      * all Makefile.am: Likewise.
      ff81956a
  35. 09 5月, 2011 1 次提交
  36. 07 5月, 2011 1 次提交
    • E
      build: drop files generated by config.status from tarball · e6972165
      Eric Blake 提交于
      The rule of thumb is that any file generated by config.status
      is a) reproducible by any user, b) dependent on configure options.
      Therefore, it is inappropriate to include such generated files
      in the tarball (for proof, Makefile is generated from Makefile.in;
      the former is not in the tarball while the latter is).
      
      * Makefile.am (EXTRA_DIST): Remove files covered by AC_OUTPUT.
      e6972165
  37. 24 3月, 2011 1 次提交
    • E
      build: nuke all .x-sc* files, and fix VPATH syntax-check · 2d24037d
      Eric Blake 提交于
      Not every day you see a patch that nukes 27 files!
      
      * .gnulib: Update to latest, for maint.mk improvements
      * bootstrap: Resync to gnulib.
      * bootstrap.conf (ACLOCAL): Swap the secondary aclocal include
      directory, now that bootstrap picks up gnulib/m4 instead of m4.
      * Makefile.am (syntax_check_exceptions, EXTRA_DIST): No longer
      worry about nuked files.
      * cfg.mk (sc_x_sc_dist_check): Delete dead rule.
      (VC_LIST_ALWAYS_EXCLUDE_REGEX): Add HACKING.
      (exclude_file_name_regexp--sc_*): Inline and simplify contents...
      * .x-sc_*: ...from here, then delete the files.
      2d24037d