1. 15 10月, 2019 1 次提交
  2. 12 4月, 2019 1 次提交
  3. 08 3月, 2019 1 次提交
  4. 08 10月, 2018 1 次提交
  5. 05 10月, 2018 1 次提交
    • P
      virt-host-validate: rewrite cgroup detection to use util/vircgroup · 0f4d7daa
      Pavel Hrdina 提交于
      This removes code duplication and simplifies cgroup detection.
      As a drawback we will not have separate messages to enable cgroup
      controller in kernel or to mount it.  On the other side the rewrite
      adds support for cgroup v2.
      
      The kernel config support was wrong because it was parsing
      '/proc/self/cgroup' instead of '/proc/cgroups/' file.
      
      The mount suggestion is removed as well because it will not work
      with cgroup v2.
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      0f4d7daa
  6. 20 9月, 2018 2 次提交
  7. 25 8月, 2017 1 次提交
  8. 25 11月, 2016 1 次提交
    • M
      virstring: Unify string list function names · c2a5a4e7
      Michal Privoznik 提交于
      We have couple of functions that operate over NULL terminated
      lits of strings. However, our naming sucks:
      
      virStringJoin
      virStringFreeList
      virStringFreeListCount
      virStringArrayHasString
      virStringGetFirstWithPrefix
      
      We can do better:
      
      virStringListJoin
      virStringListFree
      virStringListFreeCount
      virStringListHasString
      virStringListGetFirstWithPrefix
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      c2a5a4e7
  9. 04 5月, 2016 2 次提交
  10. 16 4月, 2016 1 次提交
    • J
      tools: Fix memory leak · cb31d618
      John Ferlan 提交于
      Coverity found that commit id 'c661b675' needed to create a cleanup
      path to handle the closing of 'fp' if the virBitmapNewQuiet failed.
      cb31d618
  11. 11 4月, 2016 1 次提交
  12. 08 4月, 2016 1 次提交
    • A
      host-validate: Be more careful when checking for cgroup mounts · f854c559
      Andrea Bolognani 提交于
      The existing code is built on the assumption that no cgroup
      name can appear as part of another cgroup name; moreover, cgroups
      are expected to always be listed in a specific order.
      
      If that's not the case, eg. 'cpuacct' is listed before 'cpu', the
      algorithm fails to detect the cgroup mount point.
      
      Rewrite it to get rid of such assumptions.
      f854c559
  13. 07 4月, 2016 1 次提交
    • A
      host-validate: Improve CPU flags processing · c661b675
      Andrea Bolognani 提交于
      Instead of relying on substring search, tokenize the input
      and process each CPU flag separately. This ensures CPU flag
      detection will continue to work correctly even if we start
      looking for CPU flags whose name might appear as part of
      other CPU flags' names.
      
      The result of processing is stored in a virBitmap, which
      means we don't have to parse /proc/cpuinfo in its entirety
      for each single CPU flag we want to check.
      
      Moreover, use of the newly-introduced virHostValidateCPUFlag
      enumeration ensures we don't go looking for random CPU flags
      which might actually be simple typos.
      c661b675
  14. 10 1月, 2016 1 次提交
    • M
      virt-host-validate-common: Print warning on missing IOMMU · 6e277017
      Michal Privoznik 提交于
      No only coverity warns about this, but it kind of makes sense
      too. We have a test whether host supports IOMMU. Some platforms
      don't have it, I know. But in that case we should print a message
      that it's unknown whether platform has it or not.
      
      Before:
        (no output)
      
      After:
        QEMU: Checking for device assignment IOMMU support                         : WARN (Unknown if this platform has IOMMU support)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      6e277017
  15. 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
  16. 12 10月, 2015 4 次提交
  17. 29 10月, 2014 1 次提交
    • E
      maint: avoid static zero init in tools · 05853324
      Eric Blake 提交于
      C guarantees that static variables are zero-initialized.  Some older
      compilers (and also gcc -fno-zero-initialized-in-bss) create larger
      binaries if you explicitly zero-initialize a static variable.
      
      * tools/virsh-console.c (got_signal): Drop unused variable.
      * tools/virsh-domain.c: Fix initialization.
      * tools/virsh.c: Likewise.
      * tools/virt-host-validate-common.c (virHostMsgWantEscape):
      Likewise.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      05853324
  18. 10 7月, 2013 1 次提交
    • M
      Introduce OOM reporting to virAsprintf · dc6f2dad
      Michal Privoznik 提交于
      Actually, I'm turning this function into a macro as filename,
      function name and line number needs to be passed. The new
      function virAsprintfInternal is introduced with the extended set
      of arguments.
      dc6f2dad
  19. 02 5月, 2013 1 次提交
    • M
      virutil: Move string related functions to virstring.c · 7c9a2d88
      Michal Privoznik 提交于
      The source code base needs to be adapted as well. Some files
      include virutil.h just for the string related functions (here,
      the include is substituted to match the new file), some include
      virutil.h without any need (here, the include is removed), and
      some require both.
      7c9a2d88
  20. 21 12月, 2012 2 次提交
  21. 21 9月, 2012 1 次提交
  22. 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
  23. 30 3月, 2012 1 次提交
  24. 28 1月, 2012 1 次提交
    • D
      Add a virt-host-validate command to sanity check HV config · 54a38915
      Daniel P. Berrange 提交于
      To assist people in verifying that their host is operating in an
      optimal manner, provide a 'virt-host-validate' command. For each
      type of hypervisor, it will check any pre-requisites, or other
      good recommendations and report what's working & what is not.
      
      eg
      
        # virt-host-validate
        QEMU: Checking for device /dev/kvm                                         : FAIL (Check that the 'kvm-intel' or 'kvm-amd' modules are loaded & the BIOS has enabled virtualization)
        QEMU: Checking for device /dev/vhost                                       : WARN (Load the 'vhost_net' module to improve performance of virtio networking)
        QEMU: Checking for device /dev/net/tun                                     : PASS
         LXC: Checking for Linux >= 2.6.26                                         : PASS
      
      This warns people if they have vmx/svm, but don't have /dev/kvm. It
      also warns about missing /dev/vhost net.
      54a38915