1. 12 1月, 2010 7 次提交
    • C
      qemu: migrate: Save MigratePerform error in MigrateFinish. · a9d12c24
      Cole Robinson 提交于
      This way we won't squash the original error report in
      MigratePerform, as is done for P2P and Tunneled migration.
      a9d12c24
    • C
      virterror: Add virSetError · fd5eb45b
      Cole Robinson 提交于
      Can be used to re-set an old error, which may have been squashed by
      other functions (like cleanup routines). Will be used in subsequent patches
      fd5eb45b
    • D
      Ensure error handling callback functions are called from safe context · 3a80f2f7
      Daniel P. Berrange 提交于
      The virRaiseErrorFull() may invoke the error handler callback
      functions an application has registered. This is not good
      because the connection object may not be available at this
      point, and the caller may be holding locks. This creates a
      problem if the error handler calls back into libvirt.
      
      The solutuon is to move invocation of the handler into the
      final cleanup code in the public API entry points, where it
      is guarenteed to have safe state.
      
      * src/libvirt.c: Invoke virDispatchError() in all error paths
      * src/util/virterror.c: Remove virSetConnError/virSetGlobalError,
        replacing with virDispatchError(). Move invocation of the
        error callbacks into virDispatchError() instead of the
        virRaiseErrorFull function which is not in a safe context
      3a80f2f7
    • D
      Revert 7aee2293 · 66b32505
      Daniel P. Berrange 提交于
      Revert commit 7aee2293 since it
      is mistakenly adding an extra parameter to virsh that does not
      belong there.
      66b32505
    • D
      cpu_shares parameter limit documented · 7aee2293
      David Jorm 提交于
      7aee2293
    • M
      ddcee85f
    • M
      qemu: Fix a memory leak in qemudExtractTTYPath · f01ee2ac
      Matthias Bolte 提交于
      qemudWaitForMonitor calls qemudReadLogOutput with qemudFindCharDevicePTYs
      as callback. qemudFindCharDevicePTYs calls qemudExtractTTYPath to assign
      a string to chr->data.file.path. Afterwards qemudWaitForMonitor may call
      qemudFindCharDevicePTYsMonitor that overwrites chr->data.file.path without
      freeing the old value. This results in leaking the memory allocated by
      qemudExtractTTYPath.
      
      Report an OOM error if the strdup in qemudFindCharDevicePTYsMonitor fails.
      f01ee2ac
  2. 11 1月, 2010 2 次提交
  3. 09 1月, 2010 9 次提交
  4. 08 1月, 2010 2 次提交
    • D
      Qemu: ask for memory preallocation with large pages · edcae5a7
      Daniel Veillard 提交于
      The -mem-prealloc flag should be used when using large pages
      This ensures qemu tries to allocate all required memory immediately,
      rather than when first used. The latter mode will crash qemu
      if hugepages aren't available when accessed, while the former
      should gracefully fallback to non-hugepages.
      
      * src/qemu/qemu_conf.c: add -mem-prealloc flag to qemu command line
        when using large pages
      edcae5a7
    • J
      xen hypervisor: xen domctl version 6 · 98ea78b6
      Jim Fehlig 提交于
      xen-unstable c/s 20685 changed the domctl interface, adding a field to
      xen_domctl_getdomaininfo structure.  This additional field causes stack
      corruption in libvirt.  xen-unstable c/s 20711 rightly bumped the domctl
      interface version so it is at least possible to handle the new field.
      This change accounts for shr_pages field added to xen_domctl_getdomaininfo
      structure.
      98ea78b6
  5. 07 1月, 2010 14 次提交
    • J
      network/bridge_driver.c: avoid potential NULL-dereference · 65160f50
      Jim Meyering 提交于
      * src/network/bridge_driver.c (networkBuildDnsmasqArgv): Correct
      test for NULL *argv.
      65160f50
    • M
      virsh: Use VIR_FREE instead of free · b6c87e3b
      Matthias Bolte 提交于
      virsh uses other parts of the internal API already, so use VIR_FREE also.
      b6c87e3b
    • M
      virsh: Add persistent history using libreadline · a4a38ffd
      Matthias Bolte 提交于
      a4a38ffd
    • M
      esx: Fix 'vpx' MAC address range and allow arbitrary MAC addresses · 96ceb124
      Matthias Bolte 提交于
      The MAC addresses with 00:50:56 prefix are split into several ranges:
      
        00:50:56:00:00:00 - 00:50:56:3f:ff:ff  'static' range (manually assigned)
        00:50:56:80:00:00 - 00:50:56:bf:ff:ff  'vpx' range (assigned by a VI Client)
      
      Erroneously the 'vpx' range was assumed to be larger and to occupy the
      remaining addresses of the 00:50:56 prefix that are not part of the 'static'
      range.
      
      00:50:56 was used as prefix for generated MAC addresses, this is not possible
      anymore, because there are gaps in the allowed ranges. Therefore, change the
      prefix to 00:0c:29 which is the prefix for auto generated MAC addresses anyway.
      
      Allow arbitrary MAC addresses to be used and set the checkMACAddress VMX option
      to false in case the MAC address doesn't fall into any predefined range.
      
      * docs/drvesx.html.in: update website accordingly
      * src/esx/esx_driver.c: set the auto generation prefix to 00:0c:29
      * src/esx/esx_vmx.c: fix MAC address range handling and allow arbitrary MAC
        addresses
      * tests/vmx2xml*, tests/xml2vmx*: add some basic MAC address range tests
      96ceb124
    • M
    • M
      esx: Fix and improve the libcurl debug callback · d9734072
      Matthias Bolte 提交于
      The data passed to the callback is not guaranteed to be zero terminated,
      take care of that by coping the data and adding a zero terminator.
      
      Also dump the data for other types than CURLINFO_TEXT.
      
      Set CURLOPT_VERBOSE to 1 so the debug callback is called when enabled.
      d9734072
    • M
      esx: Don't warn about an empty URI path · b0367e86
      Matthias Bolte 提交于
      b0367e86
    • M
      esx: Also allow virtualHW version 4 for ESX 4.0 · 44112bce
      Matthias Bolte 提交于
      A domain with virtualHW version 4 is allowed on an ESX 4.0 server.
      If a domain is migrated from an ESX 3.5 server to an ESX 4.0 server
      then the virtualHW version stays the same. So a ESX 4.0 server can
      host domains with virtualHW version 4.
      44112bce
    • M
      Don't free an uninitalized pointer in update_driver_name() · 338e7c3c
      Matthias Bolte 提交于
      This invalid free results in heap corruption. Some symptoms I saw
      because of this were libvirtd crashing and virt-manager hanging
      while trying to enumerate devices.
      338e7c3c
    • J
      xend_internal: don't let invalid input provoke NULL dereference · 7679f064
      Jim Meyering 提交于
      * src/xen/xend_internal.c (xenDaemonOpen_unix): Do not dereference
      a NULL "conn".  Move first deref to follow the "conn == NULL" test.
      7679f064
    • A
      qemu: Always enable the virtio balloon driver · 7a90f216
      Adam Litke 提交于
      The behavior for the qemu balloon device has changed.  Formerly, a virtio
      balloon device was provided by default.  Now, '-balloon virtio' must be
      specified on the command line to enable it.  This patch causes libvirt to
      add '-balloon virtio' to the command line whenever the -balloon option is
      available.
      * src/qemu/qemu_conf.c src/qemu/qemu_conf.h: check for the new flag and
        add "-baloon vitio" to qemu command when needed
      * tests/qemuhelptest.c: add the new flag for detection
      7a90f216
    • D
      Don't update vol details after build · 1c06eb18
      David Allan 提交于
      This patch removes the call to vol update after the volume build completes.
      The update call is currently meaningless anyway because the vol build is passed
      a copy of the definition, so the update result is thrown away.  More
      importantly, if the user specified a selinux label for the volume, the update
      call results in a double free of the label
      * src/storage/storage_backend_fs.c: remove the update call
      1c06eb18
    • D
      Disable building of static Python module · 8838ee39
      Diego Elio Pettenò 提交于
      * python/Makefile.am: python modules are loaded at runtime so the static
        version is not needed, avoid building it
      8838ee39
    • M
      Fix parsing of 'info chardev' line endings · c0a9b6a5
      Matthew Booth 提交于
      This change makes the 'info chardev' parser ignore any trailing
      whitespace on a line. This fixes a specific problem handling a '\r\n'
      line ending.
      
      * src/qemu/qemu_monitor_text.c: Ignore trailing whitespace in
        'info chardev' output.
      c0a9b6a5
  6. 06 1月, 2010 4 次提交
  7. 05 1月, 2010 1 次提交
  8. 28 12月, 2009 1 次提交