1. 23 7月, 2014 1 次提交
  2. 18 7月, 2014 2 次提交
    • 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
    • J
      spec: Consolidate with_qemu* definitions · d659b412
      Jiri Denemark 提交于
      Decisions whether qemu driver and libvirt-daemon-{qemu,kvm} packages
      should be built on various OS/arch combinations were scattered around
      the spec file. Let's make it easier to see where qemu driver is going to
      be built.
      d659b412
  3. 16 7月, 2014 1 次提交
    • E
      spec: fix invalid syntax · 13228b85
      Eric Blake 提交于
      Commit 20e01504 broke 'make rpm':
      
      error: line 540: Unknown tag:     %elif 020 >= 12 || 0 >= 6
      
      Apparently, even though shell has elif so that you can do a chain
      of conditionals, the rpm spec file does not, and you have to nest
      things instead.
      
      * libvirt.spec.in: Convert %elif to proper nested %if.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      13228b85
  4. 15 7月, 2014 1 次提交
  5. 09 7月, 2014 1 次提交
  6. 08 7月, 2014 2 次提交
  7. 03 7月, 2014 1 次提交
    • M
      Introduce domain_capabilities · 614581f3
      Michal Privoznik 提交于
      This new module holds and formats capabilities for emulator. If you
      are about to create a new domain, you may want to know what is the
      host or hypervisor capable of. To make sure we don't regress on the
      XML, the formatting is not something left for each driver to
      implement, rather there's general format function.
      
      The domain capabilities is a lockable object (even though the locking
      is not necessary yet) which uses reference counter.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      614581f3
  8. 02 7月, 2014 1 次提交
  9. 23 6月, 2014 1 次提交
  10. 02 6月, 2014 2 次提交
    • N
      Add helper program to create custom leases · baafe668
      Nehal J Wani 提交于
      Introduce helper program to catch events from dnsmasq and maintain a custom
      lease file per network. It supports dhcpv4 and dhcpv6. The file is saved as
      "<interface-name>.status".
      
      Each lease contains the following info:
      <expiry-time (epoch time)> <mac> <iaid> <ip-address> <hostname> <clientid>
      
      Example of custom leases file content:
      [
          {
              "iaid": "1221229",
              "ip-address": "2001:db8:ca2:2:1::95",
              "mac-address": "52:54:00:12:a2:6d",
              "hostname": "Fedora20",
              "client-id": "00:04:1a:c1:d9:6b:5a:0a:e2:bc:f8:4b:1e:37:2e:38:22:55",
              "expiry-time": 1393244216
          },
          {
              "ip-address": "192.168.150.208",
              "mac-address": "52:54:00:11:56:b3",
              "hostname": "Wani-PC",
              "client-id": "01:52:54:00:11:56:b3",
              "expiry-time": 1393244248
          }
      ]
      
      src/Makefile.am:
         * Add options to compile the helper program
      
      src/network/bridge_driver.c:
         * Introduce networkDnsmasqLeaseFileNameCustom()
         * Invoke helper program along with dnsmasq
         * Delete the .status file when corresponding n/w is destroyed.
      
      src/network/leaseshelper.c
         * Helper program to create the custom lease file
      baafe668
    • D
      Forgot spec changelog in 1.2.5 commit · 7455be8e
      Daniel Veillard 提交于
      7455be8e
  11. 06 5月, 2014 2 次提交
  12. 04 5月, 2014 1 次提交
    • D
      Release of libvirt-1.2.4 · 791fb3f6
      Daniel Veillard 提交于
      * docs/news.html.in libvirt.spec.in: updates for release
      * po/*.po*: fetched new localization and regenerated
      791fb3f6
  13. 30 4月, 2014 1 次提交
  14. 14 4月, 2014 1 次提交
    • E
      conf: create common storage RNG grammar file · 110c0db8
      Eric Blake 提交于
      Having two tiny files with a couple definitions didn't make
      as much sense as one common file, especially since I plan to
      add more definitions and use it in more places.
      
      * docs/schemas/storageencryption.rng: Merge this...
      * docs/schemas/storagefilefeatures.rng: ...and this, into...
      * docs/schemas/storagecommon.rng: ...this new file.
      * docs/schemas/Makefile.am (schema_DATA): Reflect renames.
      * docs/schemas/storagevol.rng: Likewise.
      * docs/schemas/domaincommon.rng: Likewise.
      * libvirt.spec.in: Likewise.
      * mingw-libvirt.spec.in: Likewise.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      110c0db8
  15. 12 4月, 2014 1 次提交
  16. 01 4月, 2014 1 次提交
    • D
      Release of libvirt-1.2.3 · c53663cc
      Daniel Veillard 提交于
      * docs/news.html.in libvirt.spec.in: update for the release
      * po/*.po*: pull updated translations and regenerate
      c53663cc
  17. 17 3月, 2014 1 次提交
    • M
      spec: move some dirs into appropriate subpackages · 9add02a0
      Michael Chapman 提交于
      This commit moves a few directories into more appropriate subpackages.
      In a few cases a directory is owned by two subpackages, however this is
      OK as long as the permissions and ownership for the directory are
      consistent between them.
      
      - %{_sysconfdir}/libvirt/qemu/
      
        Used by the qemu and network drivers.
      
        When building with separate driver modules, this directory is only
        owned by l-d-d-network. l-d-d-qemu has a hard dependency on
        l-d-d-network, which means this directory is created with the
        correct permissions and ownership, however it's clearer if both
        subpackages own the directory independently.
      
      - %{_sysconfdir}/libvirt/nwfilter/
      
        Used by the nwfilter driver only.
      
        This directory is currently always owned by libvirt-daemon. This
        commit moves it into l-d-d-nwfilter when building with separate
        driver modules.
      
      - %{_localstatedir}/run/libvirt/network/
      
        Used by the network and nwfilter drivers.
      
        When building without separate driver modules, this directory is
        should be owned by libvirt-daemon only if either of these drivers
        are enabled. When building with separate driver modules, this
        directory should be owned by l-d-d-nwfilter in addition to
        l-d-d-network.
      
      - %{_datadir}/libvirt/networks/ and
        %{_datadir}/libvirt/networks/default.xml
      
        Used only by the %post scriptlet in libvirt-daemon-config-network.
      Signed-off-by: NMichael Chapman <mike@very.puzzling.org>
      9add02a0
  18. 07 3月, 2014 1 次提交
    • J
      spec: Let translations be properly updated · 20108248
      Jiri Denemark 提交于
      Libvirt tarball contains po/stamp-po file which prevents any po/*.gmo
      file to be regenerated even if a corresponding po/*.po file is newer. By
      removing the stamp-po file, all *.gmo files are properly updated if
      required. This allows downstreams to provide patches that update
      translations.
      20108248
  19. 02 3月, 2014 1 次提交
  20. 26 2月, 2014 5 次提交
    • P
      spec: Fix braces around macros · 16009667
      Peter Krempa 提交于
      In commit 72f7658b I've added a few
      macros with bad bracing. Although they work as expected fix them so that
      we use uniform syntax.
      16009667
    • E
      spec: make systemd_daemon usage configurable · dea81f40
      Eric Blake 提交于
      On Fedora 20, I added this to my '~/.rpmmacros':
      
      %_without_udev 1
      %_without_storage_mpath 1
      %_without_storage_disk 1
      
      and uninstalled systemd-devel (which also removed device-mapper-devel).
      Then I ran 'make rpm', and inspected the results:
      
      $ ldd ~/rpmbuild/BUILD/libvirt-1.2.2/daemon/.libs/libvirtd | grep syst
      $
      
      Then I reinstalled systemd-devel, where I now see:
      
      $ ldd ~/rpmbuild/BUILD/libvirt-1.2.2/daemon/.libs/libvirtd | grep syst
        libsystemd-daemon.so.0 => /lib64/libsystemd-daemon.so.0 (0x00007ffb858ba000)
      $
      
      Oops - the build is non-deterministic, where the final binary
      depends on my build environment.  The fix is to require
      systemd-devel in all situations where the code base uses it.
      Now ~/.rpmmacros can contain "%define _without_systemd_daemon 1"
      to explicitly disable use of the library, but the library is now
      a strict build requirement for normal builds; if systemd-devel
      is not installed, the user now gets an up-front warning:
      
      $ rpmbuild -ta libvirt-1.2.2.tar.gz
      error: Failed build dependencies:
             systemd-devel is needed by libvirt-1.2.2-1.fc20.x86_64
      
      * libvirt.spec.in (with_systemd_daemon): New variable.
      (BuildRequires): Require systemd-devel for more than just udev.
      (%configure): Make choice of systemd_daemon explicit.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      dea81f40
    • E
      spec: require device-mapper-devel for storage-disk · 7cac3afa
      Eric Blake 提交于
      On Fedora 20, with the following in my ~/.rpmmacros:
      
      %_without_udev 1
      %_without_storage_mpath 1
      
      and with device-mapper-devel uninstalled, 'make rpm' fails with:
      
      checking for libdevmapper.h... no
      configure: error: You must install device-mapper-devel/libdevmapper >= 1.0.0 to compile libvirt
      error: Bad exit status from /var/tmp/rpm-tmp.Wo9pOG (%build)
      
      This is a rather late point to be issuing an error; better is
      to flag missing packages up front.  The fix is to match the logic
      in configure.ac on when devmapper is required (for both mpath and
      storage).  While at it, rbd storage is not dependent on mpath.
      With this patch applied, I now get:
      
      $ rpmbuild -ta libvirt-1.2.2.tar.gz
      error: Failed build dependencies:
             device-mapper-devel is needed by libvirt-1.2.2-1.fc20.x86_64
      
      until either installing the package or further modifying
      ~/.rpmmacros to add "%_without_storage_disk 1".
      
      * libvirt.spec.in (BuildRequires): Fix build when mpath is
      disabled.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      7cac3afa
    • E
      spec: explicitly avoid bhyve on Linux · fa293998
      Eric Blake 提交于
      Generally, we try to make the spec file tweakable via user
      variables, so that they can select a different subset of sub-rpms
      to build.  We also try to explicitly list all driver config
      options, rather than leaving the chance that the rpm build may be
      non-deterministic based on what the user had installed locally.
      But in the case of the recent bhyve hypervisor driver, there is
      no port of bhyve to Linux, so it is easier to just blindly
      disable it for now.  If someone ever does try to port bhyve to
      Fedora, we can make the spec file conditional at that point.
      
      * libvirt.spec.in (%configure): Don't try to build bhyve.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      fa293998
    • P
      spec: Use correct versions of libgfapi in RHEL builds · 72f7658b
      Peter Krempa 提交于
      RHEL still uses the 3.4.0 package of libgfapi and the package is built
      only for x86_64.
      72f7658b
  21. 13 2月, 2014 5 次提交
  22. 05 2月, 2014 1 次提交
    • E
      rpm: create libvirt-wireshark sub-package · f9ada9f3
      Eric Blake 提交于
      On Fedora 20, with wireshark-devel installed, 'make rpm' failed
      due to installed but unpackaged files related to wireshark.  As
      F20 is already released without wireshark, I chose to add a new
      sub-package that is enabled only for F21 and later.  Furthermore,
      all existing wireshark plugins belong to the wireshark package,
      so I got to invent behavior of how the first third-party wireshark
      module will behave.
      
      * libvirt.spec.in (with_wireshark): Add new conditional.
      * configure.ac (ws-plugindir): Improve wording.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      f9ada9f3
  23. 16 1月, 2014 1 次提交
    • D
      Release of libvirt-1.2.1 · 7b84b167
      Daniel Veillard 提交于
      * docs/news.html.in libvirt.spec.in: updated for the release
      * po/*.po*: updated localization from transifex and regenerated
      7b84b167
  24. 25 12月, 2013 1 次提交
  25. 17 12月, 2013 1 次提交
    • L
      specfile: fix make rpm when with_driver_modules is 1 · a13051b2
      Laine Stump 提交于
      Commit ff76566e moved around things in the specfiles to put
      driver-specific files into their appropriate sub-packages (when
      with_driver_modules == 1), but accidentally changed things so that the
      deamon-driver-network and daemon-config-network files were only
      included in a package when with_driver_modules == 0. This broke "make
      rpm" on fedora (where with_driver_modules == 1).
      
      This patch follows the pattern (already used for the files in other
      sub-modules) of duplicating the files for the main package
      (!with_driver_modules) and the sub-package (with_driver_modules).
      a13051b2
  26. 14 12月, 2013 1 次提交
  27. 12 12月, 2013 2 次提交