1. 21 12月, 2012 29 次提交
  2. 20 12月, 2012 2 次提交
  3. 19 12月, 2012 9 次提交
    • 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
    • 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
    • M
      conf: minor indentation cleanups · 7affb25b
      Martin Kletzander 提交于
      On few places there are too many levels of indentation when some of
      them can be fixed with negating the option they are in or omitting
      useless condition altogether.
      7affb25b
    • M
      fix typo in the word affinities · b72c97e7
      Martin Kletzander 提交于
      This patch fixes just the word Affinites to Affinities (it's really
      painful to search in TAGS without being able to find the right
      function).
      b72c97e7