1. 01 7月, 2014 1 次提交
    • D
      libxl: don't break the build on Xen>=4.5 because of libxl_vcpu_setaffinity() · bfc72e99
      Dario Faggioli 提交于
      libxl interface for vcpu pinning is changing in Xen 4.5. Basically,
      libxl_set_vcpuaffinity() now wants one more parameter. That is
      representative of 'VCPU soft affinity', which libvirt does not use.
      
      To mark such change, the macro LIBXL_HAVE_VCPUINFO_SOFT_AFFINITY is
      defined. Use it as a gate and, if present, re-#define the calls from
      the old to the new interface, to avoid breaking the build.
      Signed-off-by: NDario Faggioli <dario.faggioli@citrix.com>
      Cc: Jim Fehlig <jfehlig@suse.com>
      Cc: Ian Campbell <Ian.Campbell@citrix.com>
      Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
      bfc72e99
  2. 30 6月, 2014 2 次提交
  3. 27 6月, 2014 7 次提交
    • R
      bhyve: fix build by fixing typo in variable name · b963ca06
      Roman Bogorodskiy 提交于
      Commit 80d0918b introduced a typo in variable name:
      
      s/failIncomaptible/failIncompatible/
      
      Pushed under the build breaker rule.
      b963ca06
    • J
      cpu: Add new Broadwell CPU model · 04533767
      Jiri Denemark 提交于
      04533767
    • P
      net: merge virNetworkGetDHCPLeases and virNetworkGetDHCPLeasesForMAC · 02bffd47
      Peter Krempa 提交于
      Instead of maintaining two very similar APIs, add the "@mac" parameter
      to virNetworkGetDHCPLeases and kill virNetworkGetDHCPLeasesForMAC. Both
      of those functions would return data the same way, so making @mac an
      optional filter simplifies a lot of stuff.
      02bffd47
    • J
      Add test for type none model dac seclabel · 96f62755
      Ján Tomko 提交于
      96f62755
    • J
      test: add user_xattr check for securityselinuxlabeltest · caf164f1
      Jincheng Miao 提交于
      libvirt unit test used setxattr with "user.libvirt.selinux" name to
      emulate setfilecon of selinux. But for some old kernel filesystem
      (like 2.6.32-431.el6.x86_64), if the filesystem is not mounted with
      user_xattr flag, the setxattr with "user.libvirt.selinux" will fail.
      
      So adding testUserXattrEnabled() in securityselinuxlabeltest.c,
      if user_xattr is not enabled, skip this case.
      
      The user_xattr is departed in newer kernel, therefore this commit is
      only for the compatablity for old kernel.
      Signed-off-by: NJincheng Miao <jmiao@redhat.com>
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Tested-by: NScott Sullivan <ssullivan@liquidweb.com>
      caf164f1
    • E
      docs: publish correct enum values · 9b291bbe
      Eric Blake 提交于
      We publish libvirt-api.xml for others to use, and in fact, the
      libvirt-python bindings use it to generate python constants that
      correspond to our enum values.  However, we had an off-by-one bug
      that any enum that relied on C's rules for implicit initialization
      of the first enum member to 0 got listed in the xml as having a
      value of 1 (and all later members of the enum were equally
      botched).
      
      The fix is simple - since we add one to the previous value when
      encountering an enum without an initializer, the previous value
      must start at -1 so that the first enum member is assigned 0.
      
      The python generator code has had the off-by-one ever since DV
      first wrote it years ago, but most of our public enums were immune
      because they had an explicit = 0 initializer.  The only affected
      enums are:
      - virDomainEventGraphicsAddressType (such as
      VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_IPV4), since commit 987e31ed
      (libvirt v0.8.0)
      - virDomainCoreDumpFormat (such as VIR_DOMAIN_CORE_DUMP_FORMAT_RAW),
      since commit 9fbaff00 (libvirt v1.2.3)
      - virIPAddrType (such as VIR_IP_ADDR_TYPE_IPV4), since commit
      03e0e79e (not yet released)
      
      Thanks to Nehal J Wani for reporting the problem on IRC, and
      for helping me zero in on the culprit function.
      
      * docs/apibuild.py (CParser.parseEnumBlock): Fix implicit enum
      values.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      9b291bbe
    • J
      libxl: detect support for save and restore · 1d37a4c4
      Jim Fehlig 提交于
      libxl does not support save, restore, or migrate on all architectures,
      notably ARM.  Detect whether libxl supports these operations using
      LIBXL_HAVE_NO_SUSPEND_RESUME.  If not supported, drop advertisement of
      <migration_features>.
      
      Found by Ian Campbell while improving Xen's OSSTEST infrastructure
      
      http://lists.xen.org/archives/html/xen-devel/2014-06/msg02171.html
      1d37a4c4
  4. 26 6月, 2014 19 次提交
  5. 25 6月, 2014 11 次提交