1. 17 9月, 2012 2 次提交
    • O
      list: Implement RPC calls for virConnectListAllNWFilters · 3f47ff8b
      Osier Yang 提交于
      The RPC generator doesn't support returning list of object yet, this patch
      do the work manually.
      
        * daemon/remote.c:
          Implemente the server side handler remoteDispatchConnectListAllNWFilters.
      
        * src/remote/remote_driver.c:
          Add remote driver handler remoteConnectListAllNWFilters.
      
        * src/remote/remote_protocol.x:
          New RPC procedure REMOTE_PROC_CONNECT_LIST_ALL_NWFILTERS and
          structs to represent the args and ret for it.
      
        * src/remote_protocol-structs: Likewise.
      3f47ff8b
    • O
      list: Implement RPC calls for virConnectListAllNodeDevices · 4230b6c1
      Osier Yang 提交于
      The RPC generator doesn't support returning list of object yet, this patch
      does the work manually.
      
        * daemon/remote.c:
          Implemente the server side handler remoteDispatchConnectListAllNodeDevices.
      
        * src/remote/remote_driver.c:
          Add remote driver handler remoteConnectListAllNodeDevices.
      
        * src/remote/remote_protocol.x:
          New RPC procedure REMOTE_PROC_CONNECT_LIST_ALL_INTERFACES and
      4230b6c1
  2. 12 9月, 2012 1 次提交
    • O
      list: Implemente RPC calls for virConnectListAllInterfaces · 65741d84
      Osier Yang 提交于
      The RPC generator doesn't support returning list of object yet, this patch
      do the work manually.
      
        * daemon/remote.c:
          Implemente the server side handler remoteDispatchConnectListAllInterfaces.
      
        * src/remote/remote_driver.c:
          Add remote driver handler remoteConnectListAllInterfaces.
      
        * src/remote/remote_protocol.x:
          New RPC procedure REMOTE_PROC_CONNECT_LIST_ALL_INTERFACES and
          structs to represent the args and ret for it.
      
        * src/remote_protocol-structs: Likewise.
      65741d84
  3. 11 9月, 2012 1 次提交
    • O
      list: Implement RPC calls for virConnectListAllNetworks · eff8a8db
      Osier Yang 提交于
      The RPC generator doesn't support returning list of object, this patch
      do the work manually.
      
      * daemon/remote.c:
        Implemente the server side handler remoteDispatchConnectListAllNetworks.
      
      * src/remote/remote_driver.c:
        Add remote driver handler remoteConnectListAllNetworks.
      
      * src/remote/remote_protocol.x:
        New RPC procedure REMOTE_PROC_CONNECT_LIST_ALL_NETWORKS and
        structs to represent the args and ret for it.
      
      * src/remote_protocol-structs: Likewise.
      eff8a8db
  4. 10 9月, 2012 1 次提交
    • O
      list: Implement RPC calls for virStoragePoolListAllVolumes · a8bac1c0
      Osier Yang 提交于
      The RPC generator doesn't returning support list of object, this
      patch do the work manually.
      
        * daemon/remote.c:
          Implemente the server side handler remoteDispatchStoragePoolListAllVolumes
      
        * src/remote/remote_driver.c:
          Add remote driver handler remoteStoragePoolListAllVolumes
      
        * src/remote/remote_protocol.x:
          New RPC procedure REMOTE_PROC_STORAGE_POOL_LIST_ALL_VOLUMES and
          structs to represent the args and ret for it.
      
        * src/remote_protocol-structs: Likewise.
      a8bac1c0
  5. 07 9月, 2012 1 次提交
    • J
      Fix PMSuspend and PMWakeup events · afab4824
      Jiri Denemark 提交于
      The unused reason parameter of PM{Suspend,Wakeup} event callbacks was
      completely ignored in lot of places and those events were not actually
      working at all.
      afab4824
  6. 06 9月, 2012 1 次提交
    • O
      list: Implement the RPC calls for virConnectListAllStoragePools · 17fd0088
      Osier Yang 提交于
      The RPC generator doesn't support returning list of object, this patch does
      the work manually.
      
        * daemon/remote.c:
          Implement the server side handler remoteDispatchConnectListAllStoragePools
      
        * src/remote/remote_driver.c:
          Add remote driver handler remoteConnectListAllStoragePools.
      
        * src/remote/remote_protocol.x:
          New RPC procedure REMOTE_PROC_CONNECT_LIST_ALL_STORAGE_POOLS and
          structs to represent the args and ret for it.
      
        * src/remote_protocol-structs: Likewise.
      17fd0088
  7. 31 8月, 2012 1 次提交
    • J
      Fix xen driver following changes to make it stateful · f781e276
      Jim Fehlig 提交于
      Recent work to improve support for loadable driver modules introduced
      a regression in the xen driver.  The legacy xen driver is now a
      stateful, libvirtd driver but was not being registered when building
      without driver modules.
      
      A slight behavior change was also noted in the xen drivers when
      built as driver modules.  Previously, explicitly specifying a
      connection URI was not necessary, but now
      
      Compiled against library: libvirt 0.10.0
      Using library: libvirt 0.10.0
      Using API: QEMU 0.10.0
      error: failed to get the hypervisor version
      error: internal error Cannot find suitable emulator for x86_64
      
      The xen drivers need to be registered before the qemu driver since
      the qemu driver will return success with a null connection URI.
      This ordering is safe since the xen drivers will decline when not
      running the xen kernel.
      f781e276
  8. 29 8月, 2012 1 次提交
  9. 22 8月, 2012 5 次提交
  10. 21 8月, 2012 1 次提交
  11. 18 8月, 2012 1 次提交
  12. 15 8月, 2012 5 次提交
    • D
      Update libvirtd --help output to match code · c7447ab1
      Doug Goldstein 提交于
      Updated the paths that libvirtd --help says are used when run as
      non-root to match what the code actually does.
      c7447ab1
    • D
      Update paths in man page to reflect libvirtd code · 7e2f6683
      Doug Goldstein 提交于
      Updated the paths in the man page to reflect what the code in libvirtd
      does. In addition broke out the FILES section into two subsections for
      files used when run as root and files used when run as non-root.
      Provided information about the defaults that libvirtd uses when running
      as non-root and when XDG_CONFIG_HOME and XDG_RUNTIME_DIR are not set in
      the environment.
      7e2f6683
    • D
      Replace unset REMOTE_PID_FILE with proper value · 910041ba
      Doug Goldstein 提交于
      REMOTE_PID_FILE is no longer used in the source or the build process but
      the man page still used it resulting in no file name being displayed.
      The same value that the libvirtd daemon code uses is now used in the man
      page.
      910041ba
    • D
      Fix man page file paths to real paths · 9cdd73a2
      Doug Goldstein 提交于
      Currently the man page has paths that start with @sysconfdir@,
      @localstatedir@ and @remote_pid_file@. The sed command attempts to
      replace these during the build but unfortunately pod2man gets to the
      files first and escapes the @ character resulting in the sed not
      working. This removes the @ character and makes the paths correct.
      9cdd73a2
    • D
      Refactor RPC client private data setup · 39b5e4d4
      Daniel P. Berrange 提交于
      Currently there is a hook function that is invoked when a
      new client connection comes in, which allows an app to
      setup private data. This setup will make it difficult to
      serialize client state during process re-exec(). Change to
      a model where the app registers a callback when creating
      the virNetServerPtr instance, which is used to allocate
      the client private data immediately during virNetClientPtr
      construction.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      39b5e4d4
  13. 07 8月, 2012 3 次提交
  14. 02 8月, 2012 3 次提交
  15. 01 8月, 2012 1 次提交
  16. 31 7月, 2012 1 次提交
    • J
      daemon: Fix crash in virTypedParameterArrayClear · 6039a2cb
      Jiri Denemark 提交于
      Daemon uses the following pattern when dispatching APIs with typed
      parameters:
      
          VIR_ALLOC_N(params, nparams);
          virDomain*(dom, params, &nparams, flags);
          virTypedParameterArrayClear(params, nparams);
      
      In case nparams was originally set to 0, virDomain* API would fill it
      with the number of typed parameters it can provide and we would use this
      number (rather than zero) to clear params. Because VIR_ALLOC* returns
      non-NULL pointer even if size is 0, the code would end up walking
      through random memory. If we were lucky enough and the memory contained
      7 (VIR_TYPED_PARAM_STRING) at the right place, we would try to free a
      random pointer and crash.
      
      Let's make sure params stays NULL when nparams is 0.
      6039a2cb
  17. 30 7月, 2012 1 次提交
  18. 26 7月, 2012 2 次提交
  19. 25 7月, 2012 2 次提交
    • O
      daemon: Fix the wrong macro name · 98518178
      Osier Yang 提交于
      WITH_INTERFACE is not defined, it should be WITH_NETCF there to load
      the interface driver.
      
      Eric posted patch weeks ago to resolve the problems in the whole
      build system, but it's not finalised yet:
      
      https://www.redhat.com/archives/libvir-list/2012-June/msg01299.html
      
      I'm going to simply fix the wrong macro name here so that the
      interface driver could loaded, and continue the work on the listing
      API for interface driver.
      98518178
    • D
      Fix libnl CFLAGS/LIBS inclusion · 90fcbb9f
      Doug Goldstein 提交于
      When using libnl, use the variables pkg-config provides in case there are
      additional libraries or CFLAGS required to build it. Specifically if
      the libnl headers are not directly in /usr/include.
      90fcbb9f
  20. 24 7月, 2012 1 次提交
    • D
      More advanced auto-detection of driver module directory · e537a316
      Daniel P. Berrange 提交于
      When running directly from GIT, libvirtd attempts to locate
      the directory containing loadable modules. This currently
      only works if executing libvirtd with a CWD inside the libvirt
      source tree. Switch to locate based on the path to the current
      binary instead
      e537a316
  21. 23 7月, 2012 1 次提交
    • O
      Desert the FSF address in copyright · f9ce7dad
      Osier Yang 提交于
      Per the FSF address could be changed from time to time, and GNU
      recommends the following now: (http://www.gnu.org/licenses/gpl-howto.html)
      
        You should have received a copy of the GNU General Public License
        along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
      
      This patch removes the explicit FSF address, and uses above instead
      (of course, with inserting 'Lesser' before 'General').
      
      Except a bunch of files for security driver, all others are changed
      automatically, the copyright for securify files are not complete,
      that's why to do it manually:
      
        src/security/security_selinux.h
        src/security/security_driver.h
        src/security/security_selinux.c
        src/security/security_apparmor.h
        src/security/security_apparmor.c
        src/security/security_driver.c
      f9ce7dad
  22. 20 7月, 2012 2 次提交
  23. 14 7月, 2012 1 次提交
    • D
      Define public API for receiving guest memory balloon events · 7ed6d7dd
      Daniel P. Berrange 提交于
      When the guest changes its memory balloon applications may want
      to know what the new value is, without having to periodically
      poll on XML / domain info. Introduce a "balloon change" event
      to let apps see this
      
      * include/libvirt/libvirt.h.in: Define the
        virConnectDomainEventBalloonChangeCallback callback
        and VIR_DOMAIN_EVENT_ID_BALLOON_CHANGE constant
      * python/libvirt-override-virConnect.py,
        python/libvirt-override.c: Wire up helpers for new event
      * daemon/remote.c: Helper for serializing balloon event
      * examples/domain-events/events-c/event-test.c,
        examples/domain-events/events-python/event-test.py: Add
        example of balloon event usage
      * src/conf/domain_event.c, src/conf/domain_event.h: Handling
        of balloon events
      * src/remote/remote_driver.c: Add handler of balloon events
      * src/remote/remote_protocol.x: Define wire protocol for
        balloon events
      * src/remote_protocol-structs: Likewise.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      7ed6d7dd
  24. 10 7月, 2012 1 次提交
    • J
      systemd: start libvirtd after network · 4036aa91
      Jim Fehlig 提交于
      Domains configured with autostart may fail to start if the host
      network stack has not been started.  E.g. when using bridged
      networking autostarting a domain can fail with
      
      libvirtd[1403]: 2012-06-20 13:23:49.833+0000: 1485: error :
      qemuAutostartDomain:177 : Failed to autostart VM 'test': Cannot get
      interface MTU on 'br0': No such device
      4036aa91