1. 15 7月, 2019 1 次提交
  2. 11 7月, 2019 1 次提交
    • D
      interface: acquire a pidfile in the driver root directory · 09d37f9d
      Daniel P. Berrangé 提交于
      When we allow multiple instances of the driver for the same user
      account, using a separate root directory, we need to ensure mutual
      exclusion. Use a pidfile to guarantee this.
      
      In privileged libvirtd this ends up locking
      
         /var/run/libvirt/interface/driver.pid
      
      In unprivileged libvirtd this ends up locking
      
        /run/user/$UID/libvirt/interface/run/driver.pid
      
      NB, the latter can vary depending on $XDG_RUNTIME_DIR
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      09d37f9d
  3. 20 9月, 2018 1 次提交
  4. 12 4月, 2018 3 次提交
  5. 01 2月, 2018 1 次提交
  6. 28 4月, 2017 1 次提交
  7. 06 3月, 2017 1 次提交
    • J
      conf: Introduce virinterfaceobj · eabeff8e
      John Ferlan 提交于
      Move all the InterfaceObj API's into their own module virinterfaceobj
      from the interface_conf
      
      Purely code motion at this point.
      eabeff8e
  8. 23 9月, 2016 1 次提交
  9. 27 1月, 2015 2 次提交
    • D
      Removing probing of secondary drivers · 55ea7be7
      Daniel P. Berrange 提交于
      For stateless, client side drivers, it is never correct to
      probe for secondary drivers. It is only ever appropriate to
      use the secondary driver that is associated with the
      hypervisor in question. As a result the ESX & HyperV drivers
      have both been forced to do hacks where they register no-op
      drivers for the ones they don't implement.
      
      For stateful, server side drivers, we always just want to
      use the same built-in shared driver. The exception is
      virtualbox which is really a stateless driver and so wants
      to use its own server side secondary drivers. To deal with
      this virtualbox has to be built as 3 separate loadable
      modules to allow registration to work in the right order.
      
      This can all be simplified by introducing a new struct
      recording the precise set of secondary drivers each
      hypervisor driver wants
      
      struct _virConnectDriver {
          virHypervisorDriverPtr hypervisorDriver;
          virInterfaceDriverPtr interfaceDriver;
          virNetworkDriverPtr networkDriver;
          virNodeDeviceDriverPtr nodeDeviceDriver;
          virNWFilterDriverPtr nwfilterDriver;
          virSecretDriverPtr secretDriver;
          virStorageDriverPtr storageDriver;
      };
      
      Instead of registering the hypervisor driver, we now
      just register a virConnectDriver instead. This allows
      us to remove all probing of secondary drivers. Once we
      have chosen the primary driver, we immediately know the
      correct secondary drivers to use.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      55ea7be7
    • D
      Remove use of interfacePrivateData from udev driver · d85f9f1a
      Daniel P. Berrange 提交于
      The udev driver can be implemented using global state instead
      of the connect private data.
      d85f9f1a
  10. 03 12月, 2014 1 次提交
    • J
      Replace virInterfaceFree with virObjectUnref · c56a591a
      John Ferlan 提交于
      Since virInterfaceFree will call virObjectUnref anyway, let's just use that
      directly so as to avoid the possibility that we inadvertently clear out
      a pending error message when using the public API.
      c56a591a
  11. 15 11月, 2014 1 次提交
  12. 01 10月, 2014 1 次提交
  13. 11 6月, 2014 1 次提交
  14. 04 5月, 2014 1 次提交
  15. 22 4月, 2014 1 次提交
  16. 25 3月, 2014 1 次提交
  17. 21 3月, 2014 1 次提交
  18. 11 7月, 2013 1 次提交
  19. 10 7月, 2013 1 次提交
  20. 03 7月, 2013 1 次提交
  21. 28 6月, 2013 1 次提交
    • D
      Allow RO connections to interface udev backend · 027a7707
      Doug Goldstein 提交于
      The udev based interface backend did not allow querying data over a
      read-only connection which is different than how the netcf backend
      operates. This brings the behavior inline with the default, netcf
      backend.
      027a7707
  22. 24 6月, 2013 1 次提交
  23. 22 5月, 2013 1 次提交
  24. 21 5月, 2013 1 次提交
  25. 10 5月, 2013 2 次提交
  26. 09 5月, 2013 2 次提交
  27. 02 5月, 2013 1 次提交
    • M
      virutil: Move string related functions to virstring.c · 7c9a2d88
      Michal Privoznik 提交于
      The source code base needs to be adapted as well. Some files
      include virutil.h just for the string related functions (here,
      the include is substituted to match the new file), some include
      virutil.h without any need (here, the include is removed), and
      some require both.
      7c9a2d88
  28. 24 4月, 2013 3 次提交
  29. 27 2月, 2013 1 次提交
  30. 26 2月, 2013 1 次提交
    • D
      interface: Fix udev backend bridge device display · 65bb1b97
      Doug Goldstein 提交于
      The bridge device was showing the vnet devices created for the domains
      as connected to the bridge. libvirt should only show host devices when
      trying to get the interface definition rather than the domain devices as
      well.
      65bb1b97
  31. 22 2月, 2013 3 次提交