1. 21 12月, 2012 29 次提交
  2. 20 12月, 2012 3 次提交
    • E
      maint: formatting cleanups in buf.c · 258208e1
      Eric Blake 提交于
      * src/util/buf.c: Use consistent formatting.
      258208e1
    • E
      build: use strchr now that we can work around broken gcc · 622ceb34
      Eric Blake 提交于
      Revert the complex workaround of commit 39d91e9f, now that we have
      a nicer framework for shutting up broken gcc.
      
      * src/util/buf.c (virBufferEscape): Simplify.
      622ceb34
    • E
      build: make broken -Wlogical-op test be gcc-only · 6e148567
      Eric Blake 提交于
      Commit 8b8fcdea introduced a check for broken gcc -Wlogical-op,
      but did not guard the check against non-gcc compilers, which might
      lead to spurious failures when another compiler encounters an
      unknown pragma.  Additionally, all of our compiler warning logic
      should belong in a single file, and use cache variables to allow
      overriding the decision at configure time if necessary.
      
      * configure.ac (BROKEN_GCC_WLOGICALOP): Move...
      * m4/virt-compile-warnings.m4 (LIBVIRT_COMPILE_WARNINGS): ...here,
      and update to modern autoconf idioms.
      6e148567
  3. 19 12月, 2012 8 次提交
    • R
      util: FreeBSD: stub out CPU affinity functions · 2b9c1b1b
      Roman Bogorodskiy 提交于
      2b9c1b1b
    • R
      nodeinfo: add FreeBSD support · b370cd29
      Roman Bogorodskiy 提交于
      Uses sysctl(3) interface to obtain CPU and memory information on FreeBSD
      b370cd29
    • D
      Fix arch datatype in vahControl in virt-aa-helper.c · dc068e35
      Daniel P. Berrange 提交于
      When changing to virArch, the virt-aa-helper.c file was not
      completely changed. The vahControl struct was left with a
      char *arch field, instead of virArch arch field.
      dc068e35
    • D
      Change string form of VIR_ARCH_ITANIUM back to ia64 · 012ff583
      Daniel P. Berrange 提交于
      Historically there was an inconsistency in handling of the
      itanium arch. The xen driver & CPU model code treated it
      as 'ia64' but the QEMU capabilities code used 'itanium'. On
      the grounds that no one has ever seriously used  itanium
      with QEMU, while RHEL shipped itanium with Xen, we should
      favour 'ia64' as the canonical format
      012ff583
    • D
      Fix parsing of arch from domain XML · 1c212145
      Daniel P. Berrange 提交于
      When parsing the arch from domain XML, the result was only
      saved to a local variable, not the virDomainDefPtr
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      1c212145
    • D
      Fix CPU baseline to not hardcode arch · 1eec6d44
      Daniel P. Berrange 提交于
      Prior to the virArch changes, the CPU baseline method would
      free the arch string in the returned CPU. Fix the regression
      by setting arch to VIR_ARCH_NONE at the end
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      1eec6d44
    • D
      Fix SELinux security label test · 32df483f
      Daniel P. Berrange 提交于
      If securityselinuxtest was run on a system with newer SELinux
      policy it would fail, due to using svirt_tcg_t instead of
      svirt_t. Fixing the domain type to be KVM avoids this issue.
      32df483f
    • M
      conf: eliminate redundant use of VIR_ALLOC · b12a9cde
      Martin Kletzander 提交于
      We can use VIR_REALLOC_N with NULL pointer, which behaves the same way
      as VIR_ALLOC_N in that case, so no need for a condition that's
      checking if some data are allocated already.
      
      ---
      
      I tried to find other parts of the code similar to this, so I can do a
      full cleanup for the whole repository, so I used this (excuse the long
      line, but that's how I was writing it):
      
      git grep -nHC 5 -e VIR_REALLOC_N -e VIR_ALLOC_N | while read line; do if [[ "$line" == "--" ]]; then if [[ ${#tmpbuf} -gt 10 && "$REALLOC_N" == "true" && "$ALLOC_N" == "true" ]]; then echo $line; while [[ ${#tmpbuf[*]} -gt 0 ]]; do echo "${tmpbuf[0]}"; tmpbuf=( "${tmpbuf[@]:1:${#tmpbuf[*]}}" ); done; fi; unset tmpbuf REALLOC_N ALLOC_N; else if [[ "$ALLOC_N" != "true" && "${line/VIR_ALLOC_N//}" != "${line}" ]]; then ALLOC_N="true"; fi; if [[ "$REALLOC_N" != "true" && "${line/VIR_REALLOC_N//}" != "${line}" ]]; then REALLOC_N="true"; fi; tmpbuf[${#tmpbuf[*]}]="$line"; fi; done | less
      
      And reviewed the output just to find out this was the only occurrence of
      the inconsistency.
      b12a9cde