1. 17 12月, 2015 2 次提交
    • A
      process: Add virProcessGetMaxMemLock() · bbefc9cc
      Andrea Bolognani 提交于
      This function can be used to retrieve the current locked memory
      limit for a process, so that the setting can be later restored.
      
      Add a configure check for getrlimit(), which we now use.
      bbefc9cc
    • E
      build: disable vbox on cygwin · df2fadfc
      Eric Blake 提交于
      Cygwin cannot build the vbox driver yet:
      
        CC       vbox/libvirt_driver_vbox_impl_la-vbox_glue.lo
      In file included from vbox/vbox_glue.c:27:0:
      vblox/vbox_XPCOMCGlue.c:63:3: error: #error "Port me"
       # error "Port me"
         ^
      In file included from vbox/vbox_XPCOMCGlue.c:45:0,
                       from vbox/vbox_glue.c:27:
      vbox/vbox_XPCOMCGlue.c: In function 'tryLoadOne':
      vbox/vbox_XPCOMCGlue.c:98:46: error: 'DYNLIB_NAME' undeclared (first use in this function)
               if (virAsprintf(&name, "%s/%s", dir, DYNLIB_NAME) < 0)
      	                                      ^
      ./util/virstring.h:245:31: note: in definition of macro 'virAsprintf'
                               strp, __VA_ARGS__)
      			       ^
      
      Rather than trying to figure out how to get dynamic loading of
      vbox to work under cygwin (since I don't even have a working vbox
      setup to test whether it works), I'm going to be lazy and just
      default to not even trying vbox on cygwin.
      df2fadfc
  2. 16 12月, 2015 1 次提交
    • I
      libxl: Use libxentoollog in preference to libxenctrl if available. · 716be257
      Ian Campbell 提交于
      Upstream Xen is in the process of splitting the (stable API) xtl_*
      interfaces out from the (unstable API) libxenctrl library and into a
      new (stable API) libxentoollog.
      
      In order to be compatible with Xen both before and after this
      transition check for xtl_createlogger_stdiostream in a libxentoollog
      library and use it if present. If it is not present assume it is in
      libxenctrl.
      
      Compile tested on Xen 4.6 and a development tree with the split in
      place.
      Signed-off-by: NIan Campbell <ian.campbell@citrix.com>
      716be257
  3. 09 12月, 2015 1 次提交
  4. 30 11月, 2015 1 次提交
    • E
      libvirt: introduce libvirt/libvirt-common.h.in · a20b6237
      Erik Skultety 提交于
      As it turned out, we need to share some enums and declarations between
      libvirt.h and libvirt-admin.h, but since our policy forbids direct includes of
      libvirt*.h, there has to be some header exempt from this rule. This patch moves
      the relevant part of code from libvirt.h.in to libvirt-common.h.in. Moreover,
      since there is no need to have libvirt.h generated anymore, introduce a new
      header libvirt.h which was previosly ignored from git and make the common
      header ignored and generated instead.
      a20b6237
  5. 24 11月, 2015 1 次提交
  6. 04 11月, 2015 2 次提交
  7. 02 10月, 2015 1 次提交
  8. 25 9月, 2015 1 次提交
    • M
      tools: Link libvirt.la and readline to libvirt_shell.a · 1fb8ac4c
      Michal Privoznik 提交于
      So, our mingw build is broken. It's because while libvirt_shell
      library is using some of our internal APIs, e.g. virStrndup, and
      readline API but it's not being linked with nor libvirt.la nor
      libreadline.  Only subsequent users of the library, like virsh,
      do link to the needed libraries. In fact, I'm surprised Linux
      linker doesn't care, because how can it make a static library
      with missing symbols is mystery to me.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      1fb8ac4c
  9. 09 9月, 2015 1 次提交
  10. 05 9月, 2015 1 次提交
  11. 04 9月, 2015 1 次提交
    • J
      examples: Add example polkit ACL rules · 29b51674
      Jiri Denemark 提交于
      Creating ACL rules is not exactly easy and existing examples are pretty
      simple. This patch adds a somewhat complex example which defines several
      roles. Admins can do everything, operators can do basic operations
      on any domain and several groups of users who act as operators but only
      on a limited set of domains.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      29b51674
  12. 02 9月, 2015 1 次提交
  13. 20 8月, 2015 2 次提交
  14. 14 8月, 2015 1 次提交
  15. 03 8月, 2015 1 次提交
  16. 22 7月, 2015 1 次提交
  17. 21 7月, 2015 1 次提交
    • M
      nodedev: add RDMA and tx-udp_tnl-segmentation NIC capabilities · ac3ed208
      Moshe Levi 提交于
      Adding functionality to libvirt that will allow
      it query the interface for the availability of RDMA and
      tx-udp_tnl-segmentation Offloading NIC capabilities
      
      Here is an example of the feature XML definition:
      
      <device>
      <name>net_eth4_90_e2_ba_5e_a5_45</name>
        <path>/sys/devices/pci0000:00/0000:00:03.0/0000:08:00.1/net/eth4</path>
        <parent>pci_0000_08_00_1</parent>
        <capability type='net'>
          <interface>eth4</interface>
          <address>90:e2:ba:5e:a5:45</address>
          <link speed='10000' state='up'/>
          <feature name='rx'/>
          <feature name='tx'/>
          <feature name='sg'/>
          <feature name='tso'/>
          <feature name='gso'/>
          <feature name='gro'/>
          <feature name='rxvlan'/>
          <feature name='txvlan'/>
          <feature name='rxhash'/>
          <feature name='rdma'/>
          <feature name='txudptnl'/>
          <capability type='80203'/>
        </capability>
      </device>
      ac3ed208
  18. 14 7月, 2015 2 次提交
  19. 08 7月, 2015 1 次提交
  20. 02 7月, 2015 1 次提交
  21. 28 6月, 2015 1 次提交
  22. 19 6月, 2015 1 次提交
  23. 17 6月, 2015 1 次提交
  24. 16 6月, 2015 5 次提交
    • M
      Revert "Example virt-admin" · 220393bf
      Martin Kletzander 提交于
      This reverts commit 4e7ccf87.
      
      I mistakenly pushed it along with the Admin API series.
      220393bf
    • M
      Change livbirt version to 1.3.0 for the next release · 9a8d916e
      Martin Kletzander 提交于
      Since the background for Admin API is merged upstream, we are bumping
      the minor release version as discussed previously
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      9a8d916e
    • M
      Example virt-admin · 4e7ccf87
      Martin Kletzander 提交于
      You had only one job.  That's what you can say about this example
      binary.  In future, parts of virsh that are usable for this binary
      should be split into separate shell-utils and virt-admin should gain all
      the cool features of virsh without too much code addition.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      4e7ccf87
    • M
      Add libvirt-admin library · 55e0c840
      Martin Kletzander 提交于
      Initial scratch of the admin library.  It has its own virAdmConnectPtr
      that inherits from virAbstractConnectPtr and thus trivially supports
      error reporting.
      
      There's pkg-config file added and spec-file adjusted as well.
      
      Since the library should be "minimalistic" and not depend on any other
      library, the list of files is especially crafted for it.  Most of them
      could've been put to it's own sub-libraries that would be LIBADD'd to
      libvirt_util, libvirt_net_rpc and libvirt_setuid_rpc_client to minimize
      the number of object files being built, but that's a refactoring that
      isn't the orginal aim of this commit.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      55e0c840
    • G
      configure: Remove check for pkcheck_supports_uid · ecb9a7a1
      Guido Günther 提交于
      We're using Polkit's DBus API so no need to check wether this feature is
      supported. We don't use the result or the path to the pkcheck program
      anywhere.
      ecb9a7a1
  25. 03 6月, 2015 1 次提交
    • E
      build: silence ar warnings on rawhide · 2db6a447
      Eric Blake 提交于
      Newer binutils 'ar' has added an option 'D' for deterministic
      builds, and at least on rawhide, this option is enabled by default.
      But it conflicts with the 'u' optimization where the linker only
      modifies libraries based on file timestamps, but can result in
      different library ordering based on which files were touched last.
      Thus, it results in some noisy compilation, for every CCLD line:
      
        CCLD     libvirt_driver_qemu_impl.la
        ar: `u' modifier ignored since `D' is the default (see `U')
      
      Upstream automake has decided that defaulting ARFLAGS to 'cru' is
      no longer beneficial, and that switching the default to 'cr' will
      both silence the noise and not penalize modern build systems.
      
      https://lists.gnu.org/archive/html/automake-patches/2015-06/msg00000.html
      
      But rather than wait for newer automake to propagate to all systems
      that already have newer binutils, we might as well just use the new
      default ourselves, even on older platforms.
      
      * configure.ac: Default AR[_]FLAGS to 'cr', not 'cru'.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      2db6a447
  26. 01 6月, 2015 1 次提交
  27. 04 5月, 2015 1 次提交
  28. 23 4月, 2015 2 次提交
  29. 15 4月, 2015 1 次提交
  30. 02 4月, 2015 1 次提交
  31. 20 3月, 2015 1 次提交
    • J
      libxl: use xenlight pkgconfig file if present · 2adba7d3
      Jim Fehlig 提交于
      xen.git commit babeca32 added a pkgconfig file for libxenlight,
      allowing libxl apps to determine the location of Xen binaries
      such as firmware blobs, device emulator, etc.
      
      This patch adds support for xenlight.pc in the libxl driver, falling
      back to the previous configure logic if not found.  It introduces
      LIBXL_FIRMWARE_DIR and LIBXL_EXECBIN_DIR to define the firmware and
      libexec_bin locations.  If xenlight.pc does not exist, the defines
      are set to the current hardcoded paths.  The capabilities'
      <emulator> and <loader> elements are updated to use the paths.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      2adba7d3