1. 26 11月, 2015 1 次提交
    • D
      util: add APIs for reading/writing from/to rotating files · 910e65d9
      Daniel P. Berrange 提交于
      Add virRotatingFileReader and virRotatingFileWriter objects
      which allow reading & writing from/to files with automation
      rotation to N backup files when a size limit is reached. This
      is useful for guest logging when a guaranteed finite size
      limit is required. Use of external tools like logrotate is
      inadequate since it leaves the possibility for guest to DOS
      the host in between invokations of logrotate.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      910e65d9
  2. 14 10月, 2015 1 次提交
  3. 09 10月, 2015 2 次提交
    • A
      src: Remove $(builddir) usage · 6c928996
      Andrea Bolognani 提交于
      Commit 4e803227 used $(builddir) in the header search
      path to fix a build issue; however, $(builddir) is not defined
      by old autoconf versions such as the one available in CentOS 5,
      resulting in the following error:
      
        cc1: error: /util: No such file or directory
        make[3]: *** [libvirt_driver_la-fdstream.lo] Error 1
      
      Since $(builddir) is defined to always be '.', just use that
      value directly instead.
      6c928996
    • A
      src: Include $(builddir)/util in the header search path · 4e803227
      Andrea Bolognani 提交于
      Since a9fe6203, we are generating virkeymaps.h at build
      time; however, we are not including $(builddir)/util in the
      header search path, so when doing a VPATH build the compiler
      is unable to locate the file.
      
      make[2]: Entering directory
      `/home/jenkins/libvirt/systems/libvirt-fedora-20/build/src'
        GEN      util/virkeymaps.h
        ...
        CC       util/libvirt_util_la-virkeycode.lo
        CC       util/libvirt_util_la-virkeyfile.lo
        CC       util/libvirt_util_la-virlockspace.lo
        CC       util/libvirt_util_la-virlog.lo
      ../../src/util/virkeycode.c:27:24: fatal error: virkeymaps.h: No such file or directory
       #include "virkeymaps.h"
                              ^
      compilation terminated.
      4e803227
  4. 06 10月, 2015 3 次提交
    • M
      vz: remove storage driver as never used · bd6ae7b8
      Maxim Nestratov 提交于
      In fact, it was never used as far as vz has no features supporting it.
      That is why there will be no harm to anyone if we just remove this code to
      prevent further misunderstanding and efforts to support dead code.
      Signed-off-by: NMaxim Nestratov <mnestratov@virtuozzo.com>
      bd6ae7b8
    • M
      vz: remove network driver as never used · 439f29e7
      Maxim Nestratov 提交于
      At the time this code was added we had intentions to support libvirt interface
      to manage vz networks. In fact, it was never implemented completely to work
      correctly that makes me think that there will be no harm to anyone if we just
      rip it off. Moreover, in vz7 we started to use libvirt bridge network driver to
      manage networks.
      Signed-off-by: NMaxim Nestratov <mnestratov@virtuozzo.com>
      439f29e7
    • M
      Do not distribute generated virkeymaps.h · a9fe6203
      Martin Kletzander 提交于
      We are distributing virkeymaps.h and all the tools needed to rebuild
      that file.  On top of that, we are generating that file into the
      $(srcdir) and that sometimes fails when trying to do make dist in VPATH
      on rawhide fedora.  And we don't clean the file when maintainer-clean
      make target is requested.  So let's not distribute the file and rather
      let everyone rebuild it when needed and clean it when appropriate.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      a9fe6203
  5. 23 9月, 2015 1 次提交
  6. 14 9月, 2015 1 次提交
  7. 31 8月, 2015 3 次提交
  8. 26 8月, 2015 1 次提交
    • I
      lxc: Inherit namespace feature · c27553b6
      ik.nitk 提交于
      This patch adds feature for lxc containers to inherit namespaces.
      This is very similar to what lxc-tools or docker provides.  Look
      for "man lxc-start" and you will find that you can pass command
      args as [ --share-[net|ipc|uts] name|pid ]. Or check out docker
      networking option in which you can give --net=container:NAME_or_ID
      as an option for sharing +namespace.
      
      >From this patch you can add extra libvirt option to share
      namespace in following way.
      
       <lxc:namespace>
         <lxc:sharenet type='netns' value='red'/>
         <lxc:shareipc type='pid' value='12345'/>
         <lxc:shareuts type='name' value='container1'/>
       </lxc:namespace>
      
      The netns option is specific to sharenet. It can be used to
      inherit from existing network namespace.
      
      Co-authored: Daniel P. Berrange <berrange@redhat.com>
      c27553b6
  9. 20 8月, 2015 1 次提交
    • G
      libvirt-admin: Generate symbols file · a2c5d16a
      Guido Günther 提交于
      Since we're linking this into libvirtd we need some symbols to be public
      but not part of the public API so mark them as
      LIBVIRT_ADMIN_PRIVATE_<VERSION> as we do with libvirt.
      
      Making all other symbols local makes sure we don't accidentally leak
      unwanted ones.
      a2c5d16a
  10. 05 8月, 2015 1 次提交
  11. 20 7月, 2015 1 次提交
  12. 17 6月, 2015 2 次提交
  13. 16 6月, 2015 4 次提交
  14. 15 6月, 2015 1 次提交
  15. 24 5月, 2015 1 次提交
    • P
      Add missing XDR_FLAGS · dd42ff07
      Pavel Fedin 提交于
      Fixes build problems on x86_64-cygwin host for aarch64 target:
        CC       lxc/libvirt_driver_lxc_impl_la-lxc_monitor_protocol.lo
      In file included from lxc/lxc_monitor_protocol.c:7:0:
      lxc/lxc_monitor_protocol.h:9:21: fatal error: rpc/rpc.h: No such file or directory
      
        CC       rpc/libvirt_setuid_rpc_client_la-virnetmessage.lo
      In file included from rpc/virnetmessage.h:24:0,
                       from rpc/virnetmessage.c:26:
      rpc/virnetprotocol.h:9:21: fatal error: rpc/rpc.h: No such file or directory
      
        CC       lxc/libvirt_lxc-lxc_monitor_protocol.o
      In file included from lxc/lxc_monitor_protocol.c:7:0:
      lxc/lxc_monitor_protocol.h:9:21: fatal error: rpc/rpc.h: No such file or directory
      Signed-off-by: NPavel Fedin <p.fedin@samsung.com>
      dd42ff07
  16. 18 5月, 2015 1 次提交
    • L
      node device: prepare node_device_linux_sysfs.c to add more functions · d2a57815
      Laine Stump 提交于
      This file contains only a single function, detect_scsi_host_caps(),
      which is declared in node_device_driver.h and called from both the hal
      and udev backends. Other things common to the hal and udev drivers
      can be placed in that file though. As a prelude to adding further
      functions, this patch renames the existing function to something
      closer in line with other internal libvirt function names
      (nodeDeviceSysfsGetSCSIHostCaps()), and puts the declarations into a
      separate .h file.
      d2a57815
  17. 30 4月, 2015 1 次提交
  18. 29 4月, 2015 1 次提交
  19. 27 4月, 2015 1 次提交
  20. 24 4月, 2015 2 次提交
  21. 22 4月, 2015 1 次提交
  22. 15 4月, 2015 1 次提交
    • M
      Cleanup "/sys/class/net" usage · 96a21e97
      Michal Privoznik 提交于
      Throughout the code, we have several places need to construct a path
      somewhere in /sys/class/net/... They are not consistent and nearly
      each code piece invents its own way how to do it. So unify this by:
      
      1) use virNetDevSysfsFile() wherever possible
      
      2) At least use common macro SYSFS_NET_DIR declared in virnetdev.h at
         the rest of places which can't go with 1)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      96a21e97
  23. 26 3月, 2015 1 次提交
  24. 25 3月, 2015 2 次提交
    • P
      Makefile: fix typo · 3edbfc88
      Pavel Hrdina 提交于
      Commit 95695388 introduced new util/virthreadjob.c/h files but the
      makefile has type that breaks rpm build.
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      3edbfc88
    • J
      Add support for tracking thread jobs · 95695388
      Jiri Denemark 提交于
      Each thread can use a thread local variable to keep the name of a job
      which is currently running in the job.
      
      The virThreadJobSetWorker API is supposed to be called once by any
      thread which is used as a worker, i.e., it is waiting in a pool, woken
      up to do a job, and returned back to the pool.
      
      The virThreadJobSet/virThreadJobClear APIs are to be called at the
      beginning/end of each job.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      95695388
  25. 23 3月, 2015 1 次提交
  26. 18 3月, 2015 1 次提交
  27. 21 2月, 2015 1 次提交
    • P
      conf: Move numatune_conf to numa_conf · fcee64e7
      Peter Krempa 提交于
      For a while now there are two places that gather information about NUMA
      related guest configuration. While the XML can't be changed we can at
      least store the data in one place in the definition.
      
      Rename the numatune_conf.[ch] files to numa_conf as later patches will
      move the rest of the definitions from the cpu definition to this one.
      fcee64e7
  28. 19 2月, 2015 1 次提交
    • J
      Search for schemas and cpu_map.xml in source tree · bc6e2063
      Jiri Denemark 提交于
      Not all files we want to find using virFileFindResource{,Full} are
      generated when libvirt is built, some of them (such as RNG schemas) are
      distributed with sources. The current API was not able to find source
      files if libvirt was built in VPATH.
      
      Both RNG schemas and cpu_map.xml are distributed in source tarball.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      bc6e2063
  29. 27 1月, 2015 1 次提交
    • 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