1. 25 10月, 2014 8 次提交
    • D
      Move virStoragePool/Vol related APIs out of libvirt.h.in · c9456e1a
      Daniel P. Berrange 提交于
      Create a new libvirt-storage.h file to hold the public
      API definitions for the virStorage/Vol type. This header
      file is not self-contained, so applications will not directly
      include it. They will continue to #include <libvirt/libvirt.h>
      c9456e1a
    • D
      Move virStream related APIs out of libvirt.h.in · 2805ddb2
      Daniel P. Berrange 提交于
      Create a new libvirt-stream.h file to hold the public
      API definitions for the virStream type. This header
      file is not self-contained, so applications will not directly
      include it. They will continue to #include <libvirt/libvirt.h>
      
      Note the definition of virStreamPtr is not moved, since that
      must be declared early for all other libvirt APIs to be able
      to reference it.
      2805ddb2
    • D
      Move virSecret related APIs out of libvirt.h.in · 75ff42fe
      Daniel P. Berrange 提交于
      Create a new libvirt-secret.h file to hold the public
      API definitions for the virSecret type. This header
      file is not self-contained, so applications will not directly
      include it. They will continue to #include <libvirt/libvirt.h>
      75ff42fe
    • D
      Move virNodeDevice related APIs out of libvirt.h.in · 0147d6b8
      Daniel P. Berrange 提交于
      Create a new libvirt-nodedev.h file to hold the public
      API definitions for the virNodeDevice type. This header
      file is not self-contained, so applications will not directly
      include it. They will continue to #include <libvirt/libvirt.h>
      0147d6b8
    • D
      Move virNWFilter related APIs out of libvirt.h.in · 40741984
      Daniel P. Berrange 提交于
      Create a new libvirt-nwfilter.h file to hold the public
      API definitions for the virNWFilter type. This header
      file is not self-contained, so applications will not directly
      include it. They will continue to #include <libvirt/libvirt.h>
      40741984
    • D
      Move virInterface related APIs out of libvirt.h.in · fc964bfc
      Daniel P. Berrange 提交于
      Create a new libvirt-interface.h file to hold the public
      API definitions for the virInterface type. This header
      file is not self-contained, so applications will not directly
      include it. They will continue to #include <libvirt/libvirt.h>
      fc964bfc
    • D
      Move virNetwork related APIs out of libvirt.h.in · 5c9789d2
      Daniel P. Berrange 提交于
      Create a new libvirt-network.h file to hold the public
      API definitions for the virNetwork type. This header
      file is not self-contained, so applications will not directly
      include it. They will continue to #include <libvirt/libvirt.h>
      5c9789d2
    • D
      Move virDomainSnapshot related APIs out of libvirt.h.in · 84783d9d
      Daniel P. Berrange 提交于
      Create a new libvirt-domain-snapshot.h file to hold the public
      API definitions for the virDomainSnapshot type. This header
      file is not self-contained, so applications will not directly
      include it. They will continue to #include <libvirt/libvirt.h>
      84783d9d
  2. 01 10月, 2014 1 次提交
    • D
      Release of libvirt-1.2.9 · 8a24579f
      Daniel Veillard 提交于
      * docs/news.html.in libvirt.spec.in: update for release
      * po/*.po*: updated localizations and regenerated
      8a24579f
  3. 16 9月, 2014 1 次提交
    • L
      network: detect conflicting route even if it is the final entry · 22048ae6
      Laine Stump 提交于
      This is a folloup to commit 5f719596, which checks for a route
      conflicting with the standard libvirt default network subnet
      (192.168.122.0/24). It turns out that $() strips the trailing newline
      from the output of "ip route show", so there would be no match if the
      route we were looking for was the final line of output. This can be
      solved by adding ${nl} to the end of the output (just as we were
      already adding it at the beginning of the output).
      22048ae6
  4. 15 9月, 2014 1 次提交
    • L
      network: try to eliminate default network conflict during package install · 5f719596
      Laine Stump 提交于
      Sometimes libvirt is installed on a host that is already using the
      network 192.168.122.0/24. If the libvirt-daemon-config-network package
      is installed, this creates a conflict, since that package has been
      hard-coded to create a virtual network that also uses
      192.168.122.0/24. In the past libvirt has attempted to warn of /
      remediate this situation by checking for conflicting routes when the
      network is started, but it turns out that isn't always useful (for
      example in the case that the *other* interface/network creating the
      conflict hasn't yet been started at the time libvirtd start its own
      networks).
      
      This patch attempts to catch the problem earlier - at install
      time. During the %post install script for
      libvirt-daemon-config-network, we use a case statement to look through
      the output of "ip route show" for a route that exactly matches
      192.168.122.0/24, and if found we search for a similar route that
      *doesn't* match (e.g. 192.168.124.0/24) (note that the search starts
      with "124" instead of 123 because of reports of people already
      modifying their L1 host's network to 192.168.123.0/24 in an attempt to
      solve exactly the problem we are also trying to solve).  When we find
      an available route, we just replace all occurrences of "122" in the
      default.xml that is being created with the newly found 192.168
      subnet. This could obviously be made more complicated - examine the
      template defaul.xml to automatically determine the existing network
      address and mask rather than hard coding it in the specfile, etc, but
      this scripting is simpler and gets the job done as long as we continue
      to use 192.168.122.0/24 in the template. (If anyone with mad bash
      skillz wants to suggest something to do that, by all means please do).
      
      This is intended to at least "further reduce" occurrence of the
      problems detailed in:
      
        https://bugzilla.redhat.com/show_bug.cgi?id=811967
      5f719596
  5. 12 9月, 2014 1 次提交
  6. 11 9月, 2014 1 次提交
    • M
      nvram: Fix permissions · 37d8c75f
      Michal Privoznik 提交于
      I've noticed two problem with the automatically created NVRAM varstore
      file. The first, even though I run qemu as root:root for some reason I
      get Permission denied when trying to open the _VARS.fd file. The
      problem is, the upper directory misses execute permissions, which in
      combination with us dropping some capabilities result in EPERM.
      
      The next thing is, that if I switch SELinux to enforcing mode, I get
      another EPERM because the vars file is not labeled correctly. It is
      passed to qemu as disk and hence should be labelled as disk. QEMU may
      write to it eventually, so this is different to kernel or initrd.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      37d8c75f
  7. 10 9月, 2014 1 次提交
    • M
      qemu: Automatically create NVRAM store · 742b08e3
      Michal Privoznik 提交于
      When using split UEFI image, it may come handy if libvirt manages per
      domain _VARS file automatically. While the _CODE file is RO and can be
      shared among multiple domains, you certainly don't want to do that on
      the _VARS file. This latter one needs to be per domain. So at the
      domain startup process, if it's determined that domain needs _VARS
      file it's copied from this master _VARS file. The location of the
      master file is configurable in qemu.conf.
      
      Temporary, on per domain basis the location of master NVRAM file can
      be overridden by this @template attribute I'm inventing to the
      <nvram/> element. All it does is holding path to the master NVRAM file
      from which local copy is created. If that's the case, the map in
      qemu.conf is not consulted.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Acked-by: NLaszlo Ersek <lersek@redhat.com>
      742b08e3
  8. 03 9月, 2014 1 次提交
  9. 02 9月, 2014 1 次提交
  10. 27 8月, 2014 1 次提交
    • M
      vbox: Register per partes · dbb4cbf5
      Michal Privoznik 提交于
      Since times when vbox moved to the daemon (due to some licensing
      issue) the subdrivers that vbox implements were registered, but not
      opened since our generic subdrivers took priority. I've tried to fix
      this in 65b7d553 but it was not correct. Apparently moving
      vbox driver registration upfront changes the default connection URI
      which makes some users sad. So, this commit breaks vbox into pieces
      and register vbox's network and storage drivers first, and vbox driver
      then at the end. This way, the vbox driver is registered in the order
      it always was, but its subdrivers are registered prior the generic
      ones.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      dbb4cbf5
  11. 26 8月, 2014 1 次提交
    • E
      spec: drop anything older than Fedora 13 · da579241
      Eric Blake 提交于
      RHEL 5 is based on libvirt 0.8.2, as was Fedora 13.  RHEL 5 also
      happens to be the oldest box that we actively support with a
      buildbot, so it is time to clean up some crufty conditionals in
      the spec file that no longer are necessary for modern Fedora.
      
      Although it is probably okay to make further simplifications to
      a newer minimum Fedora version, that can be done as a later patch.
      This patch just focuses on cleaning any comparison of %{?fedora}
      that will always be true or false once we assume a minimum of F13.
      
      * libvirt.spec.in: Make with_audit default to on. Move other
      conditionals to a single RHEL-5 block. Simplify any fedora
      comparison older than 13.  Document our assumptions.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      da579241
  12. 22 8月, 2014 1 次提交
  13. 14 8月, 2014 1 次提交
  14. 03 8月, 2014 1 次提交
    • D
      Release of libvirt-1.2.7 · 21b59b65
      Daniel Veillard 提交于
      * docs/news.html.in libvirt.spec.in: update for the release
      * po/*.po*: update localizations and regenerate
      21b59b65
  15. 26 7月, 2014 2 次提交
  16. 23 7月, 2014 1 次提交
  17. 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
  18. 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
  19. 15 7月, 2014 1 次提交
  20. 09 7月, 2014 1 次提交
  21. 08 7月, 2014 2 次提交
  22. 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
  23. 02 7月, 2014 1 次提交
  24. 23 6月, 2014 1 次提交
  25. 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
  26. 06 5月, 2014 2 次提交
  27. 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
  28. 30 4月, 2014 1 次提交