1. 06 4月, 2011 3 次提交
    • O
      qemu: Always reserves slot 0x02 for primary VGA. · 7b2cac12
      Osier Yang 提交于
      To address https://bugzilla.redhat.com/show_bug.cgi?id=692355
      
      This fix is to reserve slot 0x02 for primary VGA even if there
      is no "video" specified in domain XML to avoid the problem.
      7b2cac12
    • E
      libxl: avoid compiler warning · 3eb869a0
      Eric Blake 提交于
      cc1: warnings being treated as errors
      libxl/libxl_driver.c: In function 'libxlDomainSetVcpusFlags':
      libxl/libxl_driver.c:1570:14: error: cast from function call of type 'double' to non-matching type 'unsigned int' [-Wbad-function-cast]
      libxl/libxl_driver.c:1578:15: error: cast from function call of type 'double' to non-matching type 'unsigned int' [-Wbad-function-cast]
      
      This was the only use of floor() and ceil(), and floating-point
      is overkill for power-of-two manipulations.
      
      * src/libxl/libxl_driver.c (libxlDomainSetVcpusFlags): Avoid -lm
      for trivial computations.
      3eb869a0
    • D
      Avoid compiler warnings about int -> void * casts · 5b099250
      Daniel P. Berrange 提交于
      GCC is a little confused about the cast of beginthread/beginthreadex
      from unsigned long -> void *. Go via an intermediate variable avoids
      the bogus warning, and makes the code a little cleaner
      
      * src/util/threads-win32.c: Avoid compiler warning in cast
      5b099250
  2. 05 4月, 2011 27 次提交
  3. 03 4月, 2011 2 次提交
  4. 01 4月, 2011 7 次提交
    • E
      virsh: fix mingw failure on creating nonblocking pipe · da3c4714
      Eric Blake 提交于
      * .gnulib: Update to latest, for nonblocking module.
      * bootstrap.conf (gnulib_modules): Add nonblocking.
      * src/util/util.c (virSetBlocking): Defer to gnulib.
      da3c4714
    • D
      Fix libxl driver startup · 03ede2f6
      Daniel Veillard 提交于
        When you happen to have a libvirtd binary compiled with the
      libxenlight driver (say you have installed xen-4.1 libraries)
      but not running a xen enabled system, then libvirtd fails to start.
      
      The cause is that libxlStartup() returns -1 when failing to initialize
      the library, and this propagates to virStateInitialize() which consider
      this a failure. We should only exit libxlStartup with an error code
      if something like an allocation error occurs, not if the driver failed
      to initialize.
      
      * src/libxl/libxl_driver.c: fix libxlStartup() to not return -1
        when failing to initialize the libxenlight library
      03ede2f6
    • G
      Make check_fc_host() and check_vport_capable() usable as rvalues · d0bd206a
      Guido Günther 提交于
      as needed on non linux ports using HAL.
      d0bd206a
    • J
      qemu: Ignore libvirt debug messages in qemu log · 72ab0b6d
      Jiri Denemark 提交于
      qemu driver uses a 4K buffer for reading qemu log file. This is enough
      when only qemu's output is present in the log file. However, when
      debugging messages are turned on, intermediate libvirt process fills the
      log with a bunch of debugging messages before it executes qemu binary.
      In such a case the buffer may become too small. However, we are not
      really interested in libvirt messages so they can be filtered out from
      the buffer.
      72ab0b6d
    • O
      qemu: Fix improper logic of qemuCgroupSetup · 0ca16a78
      Osier Yang 提交于
      It throws errors as long as the cgroup controller is not available,
      regardless of whether we really want to use it to do setup or not,
      which is not what we want, fixing it with throwing error when need
      to use the controller.
      
      And change "VIR_WARN" to "qemuReportError" for memory controller
      incidentally.
      0ca16a78
    • W
      free tmp after unlinking it · e206946d
      Wen Congyang 提交于
      We create a temporary file to save memory, and we will remove it after reading
      memory to buffer. But we free the variable that contains the temporary filename
      before we remove it. So we should free tmp after unlinking it.
      e206946d
    • M
      Fix several formatting mistakes in doc · 51434d3b
      Michal Privoznik 提交于
      51434d3b
  5. 31 3月, 2011 1 次提交
    • E
      maint: avoid locale-sensitivity in string case comparisons · 6c9e89bb
      Eric Blake 提交于
      strcase{cmp/str} have the drawback of being sensitive to the global
      locale; this is unacceptable in a library setting.  Prefer a
      hard-coded C locale alternative for all but virsh, which is user
      facing and where the global locale isn't changing externally.
      
      * .gnulib: Update to latest, for c-strcasestr change.
      * bootstrap.conf (gnulib_modules): Drop strcasestr, add c-strcase
      and c-strcasestr.
      * cfg.mk (sc_avoid_strcase): New rule.
      (exclude_file_name_regexp--sc_avoid_strcase): New exception.
      * src/internal.h (STRCASEEQ, STRCASENEQ, STRCASEEQLEN)
      (STRCASENEQLEN): Adjust offenders.
      * src/qemu/qemu_monitor_text.c (qemuMonitorTextEjectMedia):
      Likewise.
      * tools/virsh.c (namesorter): Document exception.
      6c9e89bb