1. 21 5月, 2013 5 次提交
  2. 09 5月, 2013 11 次提交
  3. 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
  4. 17 4月, 2013 1 次提交
    • O
      cleanup: Remove the duplicate header · bc95be5d
      Osier Yang 提交于
      Detected by a simple Shell script:
      
      for i in $(git ls-files -- '*.[ch]'); do
          awk 'BEGIN {
              fail=0
          }
          /# *include.*\.h/{
              match($0, /["<][^">]*[">]/)
              arr[substr($0, RSTART+1, RLENGTH-2)]++
          }
          END {
              for (key in arr) {
                  if (arr[key] > 1) {
                      fail=1
                      printf("%d %s\n", arr[key], key)
                  }
              }
              if (fail == 1)
                  exit 1
          }' $i
      
          if test $? != 0; then
              echo "Duplicate header(s) in $i"
          fi
      done;
      
      A later patch will add the syntax-check to avoid duplicate
      headers.
      bc95be5d
  5. 05 4月, 2013 2 次提交
    • P
      virCaps: get rid of defaultConsoleTargetType callback · 482e5f15
      Peter Krempa 提交于
      This patch refactors various places to allow removing of the
      defaultConsoleTargetType callback from the virCaps structure.
      
      A new console character device target type is introduced -
      VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_NONE - to mark that no type was
      specified in the XML. This type is at the end converted to the standard
      VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SERIAL. Other types that are
      different from this default have to be processed separately in the
      device post parse callback.
      482e5f15
    • P
      virCaps: get rid of macPrefix field · 46becc18
      Peter Krempa 提交于
      Use the virDomainXMLConf structure to hold this data and tweak the code
      to avoid semantic change.
      
      Without configuration the KVM mac prefix is used by default. I chose it
      as it's in the privately administered segment so it should be usable for
      any purposes.
      46becc18
  6. 13 2月, 2013 1 次提交
    • E
      xen: clean up the mess with cpumap · 069b5c5a
      Eric Blake 提交于
      Commit 8b55992f added some Coverity comments to silence what was
      a real bug in the code.  Since then, we've had a miserable run
      of trying to fix the underlying problem (commits c059cdea and
      ba5193c8), and still have a problem on 32-bit machines.
      
      This fixes the problem for once and for all, by realizing that
      on older xen, cpumap_t is identical to uint64_t, and using the
      new virendian.h to do the transformation from the API (documented
      to be little-endian) to the host structure.
      
      * src/xen/xen_hypervisor.c (virXen_setvcpumap): Do the conversion
      correctly.  Finally.
      069b5c5a
  7. 12 2月, 2013 1 次提交
  8. 11 2月, 2013 2 次提交
    • J
      hypervisor: Revisit Coverity issues regarding cpumap · c059cdea
      John Ferlan 提交于
      Turns out the issue regarding ptr_arith and sign_exension weren't false
      positives. When shifting an 'unsigned char' as a target, it gets promoted
      to an 'int'; however, that 'int' cannot be shifted 32 bits which was how
      the algorithm was written. For the ptr_arith rather than index into the
      cpumap, change the to address as necessary and assign directly.
      c059cdea
    • J
      hypervisor: Remove redundant validity checks, clean up function headers · cbdf3b7c
      John Ferlan 提交于
      Arguments for driver entry points are checked in libvirt.c, so no need to
      check again. Make function entry points consistent. Don't type caste the
      privateData.
      cbdf3b7c
  9. 08 2月, 2013 1 次提交
  10. 22 1月, 2013 1 次提交
  11. 21 12月, 2012 7 次提交
  12. 19 12月, 2012 1 次提交
  13. 10 11月, 2012 1 次提交
    • V
      capabilities: defaultConsoleTargetType can depend on architecture · b1c88c14
      Viktor Mihajlovski 提交于
      For S390, the default console target type cannot be of type 'serial'.
      It is necessary to at least interpret the 'arch' attribute
      value of the os/type element to produce the correct default type.
      
      Therefore we need to extend the signature of defaultConsoleTargetType
      to account for architecture. As a consequence all the drivers
      supporting this capability function must be updated.
      
      Despite the amount of changed files, the only change in behavior is
      that for S390 the default console target type will be 'virtio'.
      
      N.B.: A more future-proof approach could be to to use hypervisor
      specific capabilities to determine the best possible console type.
      For instance one could add an opaque private data pointer to the
      virCaps structure (in case of QEMU to hold capsCache) which could
      then be passed to the defaultConsoleTargetType callback to determine
      the console target type.
      Seems to be however a bit overengineered for the use case...
      Signed-off-by: NViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
      b1c88c14
  14. 02 11月, 2012 1 次提交
  15. 24 10月, 2012 1 次提交
    • J
      Fix detection of Xen sysctl version 9 · 9785f2b6
      Jim Fehlig 提交于
      In commit 371ddc98, I mistakenly added the check for sysctl
      version 9 after setting the hypercall version to 1, which will
      fail with
      
      error : xenHypervisorDoV1Op:967 : Unable to issue hypervisor
      ioctl 3166208: Function not implemented
      
      This check should be included along with the others that use
      hypercall version 2.
      9785f2b6
  16. 27 9月, 2012 1 次提交
  17. 21 9月, 2012 1 次提交
  18. 27 7月, 2012 1 次提交
    • O
      maint: Use consistent copyright. · a4bcefbc
      Osier Yang 提交于
      This is a follow up patch of commit f9ce7dad, it modifies all
      the files which declare the copyright like "See COPYING.LIB for
      the License of this software" to use the detailed/consistent one.
      
      And deserts the outdated comments like:
      
       * libvirt-qemu.h:
       * Summary: qemu specific interfaces
       * Description: Provides the interfaces of the libvirt library to handle
       *              qemu specific methods
       *
       * Copy:  Copyright (C) 2010, 2012 Red Hat, Inc.
      
      Uses the more compact style like:
      
       * libvirt-qemu.h: Interfaces specific for QEMU/KVM driver
       *
       * Copyright (C) 2010, 2012 Red Hat, Inc.
      a4bcefbc