1. 14 10月, 2015 4 次提交
  2. 13 10月, 2015 1 次提交
    • D
      virt-host-validate: check for IOMMU support · 9139b46a
      Daniel P. Berrange 提交于
      This looks for existance of DMAR (Intel) and IVRS (AMD)
      files under /sys/firmware/acpi/tables/, as a sign that
      the platform has IOMMU present & enabled in the BIOS.
      
      If these are present and /sys/kernel/iommu_groups does
      not contain any entries this is taken as a sign that
      the kernel has not enabled the IOMMU currently.
      
      If no ACPI tables are found we can't distinguish between
      disabled in BIOS and not present in the hardware, so we
      have to give the user a generic hint.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      9139b46a
  3. 12 10月, 2015 18 次提交
  4. 09 10月, 2015 3 次提交
    • M
      virJSONValueArraySize: return ssize_t · 4f77c48c
      Michal Privoznik 提交于
      The internal representation of a JSON array counts the items in
      size_t. However, for some reason, when asking for the count it's
      reported as int. Firstly, we need the function to return a signed
      type as it's returning -1 on an error. But, not every system has
      integer the same size as size_t. Therefore, lets return ssize_t.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      4f77c48c
    • 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
  5. 08 10月, 2015 5 次提交
  6. 07 10月, 2015 9 次提交
    • M
      virSecurityManagerNew: Turn array of booleans into flags · 79bd55b3
      Michal Privoznik 提交于
      So imagine you want to crate new security manager:
      
        if (!(mgr = virSecurityManagerNew("selinux", "QEMU", false, true, false, true)));
      
      Hard to parse, right? What about this:
      
        if (!(mgr = virSecurityManagerNew("selinux", "QEMU",
                                          VIR_SECURITY_MANAGER_DEFAULT_CONFINED |
                                          VIR_SECURITY_MANAGER_PRIVILEGED)));
      
      Now that's better! This is what the commit does.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      79bd55b3
    • C
      tests: eventtest: Fix coverity warning · a946c50d
      Cole Robinson 提交于
      We can ignore the result of virtTestResult here, because failure is
      unconditionally reported by the callers
      a946c50d
    • A
      qemu: Fix indentation issue · 7cdf944b
      Andrea Bolognani 提交于
      Two #define lines introduced by b527aa09 did not respect the
      indentation rules, thus breaking syntax-check.
      7cdf944b
    • A
      qemu: Remove explicit values from virQEMUCapsFlags · b527aa09
      Andrea Bolognani 提交于
      This gets rid of the partially enforced alignment and makes it less
      likely for a bogus value to be introduced in the enumeration.
      Capabilities are divided in five-element groups for better readability.
      
      Use #define for QEMU_CAPS_NET_NAME and QEMU_CAPS_HOST_NET_ADD, both
      of which are aliases for QEMU_CAPS_0_10.
      b527aa09
    • P
      qemu: migration: Skip few checks while doing offline migration · 01b4baba
      Peter Krempa 提交于
      qemuMigrationIsAllowed would disallow offline migration if the VM
      contained host devices or memory modules. Since during offline migration
      we don't transfer any state we can safely migrate VMs with such
      configuration.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1265049
      01b4baba
    • P
      qemu: migration: Use migration flags in qemuMigrationIsAllowed · b6c44af0
      Peter Krempa 提交于
      Use the migration @flags for checking various migration aspects rather
      than picking them out as booleans. Document the new semantics in the
      function header.
      b6c44af0
    • P
      qemu: migration: Drop @def from qemuMigrationIsAllowed · f558c66f
      Peter Krempa 提交于
      Now that qemuMigrationIsAllowed is always called with @vm, we can drop
      the @def argument and simplify the control flow.
      
      Additionally the comment is invalid so drop it.
      f558c66f
    • P
      qemu: migration: Split source and destination migration checks · b866991f
      Peter Krempa 提交于
      Extract the hostdev check from qemuMigrationIsAllowed into a separate
      function since that is the only part that needs to be done in the v2
      migration protocol prepare phase on the destination. All other checks
      were added when the v3 protocol existed so they don't need to be
      extracted.
      
      This change will allow to drop the @def argument for
      qemuMigrationIsAllowed and further simplify the function.
      b866991f
    • C
      spec: Delete .git after applying patches · 62ff210e
      Cole Robinson 提交于
      I'm hitting this little annoyance in fedora's package repo:
      
      $ fedpkg prep
      Downloading libvirt-1.2.20.tar.gz
      ...
      + /usr/bin/gzip -dc /home/crobinso/src/fedora/libvirt/libvirt-1.2.20.tar.gz
      $ git clean -xdf
      Removing libvirt-1.2.20.tar.gz
      Skipping repository libvirt-1.2.20/
      
      We git-ify the libvirt directory as part of applying patches in the spec
      file, but 'git clean' will ignore subfolders that appear to be standalone
      git repos.
      
      Let's just delete the .git directory after we're done with it.
      62ff210e