1. 08 1月, 2010 1 次提交
    • 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
  2. 22 12月, 2009 1 次提交
    • O
      fix some error report when on remote access · 54f868c1
      Olivier Fourdan 提交于
      When querying about a domain from 0.3.3 (or RHEL 5.3) domain located
      on a 0.6.3 (RHEL-5) machine, the errors are not properly reported.
      This patch from Olivier Fourdan <ofourdan@redhat.com> , slightly
      modified to not change the semantic when the domain os details cannot
      be provided
      
      * src/xen/proxy_internal.c src/xen/xen_hypervisor.c: add some missing
        error reports
      54f868c1
  3. 15 11月, 2009 1 次提交
    • J
      Fix compilation of libvirt against xen-unstable · 8d567fbc
      Jim Fehlig 提交于
      * src/xen/xen_hypervisor.c: xen-unstable changeset 19788 removed
        MAX_VIRT_CPUS from public headers, breaking compilation of libvirt
        on -unstable.  Its semanitc was retained with XEN_LEGACY_MAX_VCPUS.
        Ensure MAX_VIRT_CPUS is defined accordingly.
      8d567fbc
  4. 12 11月, 2009 1 次提交
    • D
      Filter out stale domains from xenstore listing · 7c34bb26
      Daniel P. Berrange 提交于
      The xenstore database sometimes has stale domain IDs which are not
      present in the hypervisor anymore. Filter these out to avoid causing
      confusion
      
      * src/xen/xs_internal.c: Filter domain IDs against HV's list
      * src/xen/xen_hypervisor.h, src/xen/xen_hypervisor.c: Add new
        xenHypervisorHasDomain() method for checking ID validity
      7c34bb26
  5. 10 11月, 2009 1 次提交
  6. 04 11月, 2009 1 次提交
    • C
      Various error reporting fixes · 4c44cdcc
      Cole Robinson 提交于
      - Don't duplicate SystemError
      - Use proper error code in domain_conf
      - Fix a broken error call in qemu_conf
      - Don't use VIR_ERR_ERROR in security driver (isn't a valid code in this case)
      4c44cdcc
  7. 23 9月, 2009 1 次提交
    • C
      Introduce virStrncpy. · 03d777f3
      Chris Lalancette 提交于
      Add the virStrncpy function, which takes a dst string, source string,
      the number of bytes to copy and the number of bytes available in the
      dest string.  If the source string is too large to fit into the
      destination string, including the \0 byte, then no data is copied and
      the function returns NULL.  Otherwise, this function copies n bytes
      from source into dst, including the \0, and returns a pointer to the
      dst string.  This function is intended to replace all unsafe uses
      of strncpy in the code base, since strncpy does *not* guarantee that
      the buffer terminates with a \0.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      03d777f3
  8. 21 9月, 2009 1 次提交
    • D
      Move xen driver code into src/xen/ directory · f7a107f7
      Daniel P. Berrange 提交于
      * src/Makefile.am, src/proxy_internal.c, src/proxy_internal.h
        src/sexpr.c, src/sexpr.h, src/xen_unified.c, src/xen_unified.h,
        src/xen_internal.c, src/xen_internal.h, src/xen_inotify.c,
        src/xen_inotify.h, src/xend_internal.c, src/xend_internal.h,
        src/xm_internal.c, src/xm_internal.h, src/xs_internal.c,
        src/xs_internal.h: Move to src/xen/ directory
      * proxy/Makefile.am, proxy/libvirt_proxy.c, src/Makefile.am,
        src/libvirt.c, tests/sexpr2xmltest.c, tests/statstest.c,
        tests/xencapstest.c, tests/xmconfigtest.c, tests/xml2sexprtest.c:
        Adapt to changed xen location
      * src/stats_linux.h, src/stats_linux.c: Remove xen specific block
        stats APIs
      * src/qemu_driver.c, src/uml_driver.c: Add missing sys/un.h include
        uncovered after change to stats_linux.h
      * src/xen/block_stats.h, src/xen/block_stats.c: Add xen specific
        block stats APIs
      f7a107f7
  9. 04 9月, 2009 1 次提交
  10. 11 8月, 2009 1 次提交
  11. 27 7月, 2009 3 次提交
    • D
      Fix crashes in Xen capabilities code · dd6cd7dd
      Daniel P. Berrange 提交于
      * src/xen_internal.c: Don't free memory now owned by the virCapsPtr
         structure
      * tests/testutilsxen.c: Fix up for change in internal API
      dd6cd7dd
    • D
      Fix typo in xen capabilities code · f055724b
      Daniel P. Berrange 提交于
      f055724b
    • M
      Add virCapsGuestMachine structure · 38fd207e
      Mark McLoughlin 提交于
      A subsequent commit will add a "canonical" field to this structure,
      this patch basically just prepares the way for that.
      
      The new type is added, along with virCapabilitiesAlloc/FreeMachines()
      helpers and a whole bunch of code to make the transition.
      
      One quirk is that virCapabilitiesAddGuestDomain() and
      virCapabilitiesAddGuest() take ownership of the machine list rather
      than duping it. This makes sense to avoid needless copying.
      
      * src/capabilities.h: add the virCapsGuestMachine struct and use it
        in virCapsGuestDomainInfo, add prototypes for new functions and
        update the AddGuest() prototypes
      
      * src/capabilities.c: add code for allocating and freeing the new
        type, change the machines parameter to AddGuest() etc.
      
      * src/libvirt_private.syms: export the new helpers
      
      * src/qemu_conf.c: update all the machine type code to use the new
        struct
      
      * src/xen_internal.c: ditto
      
      * tests/testutilsqemu.c: ditto
      38fd207e
  12. 16 6月, 2009 1 次提交
  13. 12 6月, 2009 1 次提交
  14. 08 5月, 2009 1 次提交
  15. 31 3月, 2009 1 次提交
  16. 06 2月, 2009 1 次提交
    • J
      remove remainder of offending strerror uses · bafd7389
      Jim Meyering 提交于
      * qemud/qemud.c (GET_CONF_STR): Use virStrerror, not strerror.
      * qemud/remote.c (remoteDispatchDomainBlockPeek): Likewise.
      (remoteDispatchDomainMemoryPeek, remoteDispatchAuthSaslInit): Likewise.
      (remoteDispatchAuthPolkit): Likewise.
      * src/lxc_container.c (lxcContainerAvailable): Likewise.
      * src/network_driver.c (networkStartNetworkDaemon): Likewise.
      (networkShutdownNetworkDaemon): Likewise.
      * src/qemu_conf.c (qemudExtractVersion, qemudNetworkIfaceConnect):
      * src/storage_conf.c (virStoragePoolLoadAllConfigs): Likewise.
      * src/storage_driver.c (storagePoolUndefine): Likewise.
      * src/uml_driver.c (umlStartup, umlStartVMDaemon): Likewise.
      * src/util.c (virFileReadAll): Likewise.
      * src/uuid.c (virUUIDGenerate): Likewise.
      * src/xen_internal.c (get_cpu_flags): Likewise.
      bafd7389
  17. 03 2月, 2009 1 次提交
    • J
      build: enable redundant-const check · dff21147
      Jim Meyering 提交于
      * Makefile.cfg (local-checks-to-skip): Remove sc_redundant_const.
      * src/lxc_controller.c: Remove redundant "const"(s).
      * src/storage_backend_fs.c: Likewise.
      * src/util.h: Likewise.
      * src/xen_internal.c: Likewise.
      * tests/qparamtest.c: Likewise.
      dff21147
  18. 29 1月, 2009 1 次提交
    • J
      error-reporting calls using VIR_ERR_NO_MEMORY: use virReportOOMError instead · bc18a91f
      Jim Meyering 提交于
      * src/uml_conf.c (VIR_FROM_THIS): Define to VIR_FROM_UML.
      * src/xs_internal.c (VIR_FROM_THIS): Define to VIR_FROM_XEN.
      * src/xml.c (VIR_FROM_THIS): Define to VIR_FROM_XML.
      * src/stats_linux.c (VIR_FROM_THIS): Define to VIR_FROM_STATS_LINUX.
      * src/datatypes.c (VIR_FROM_THIS): Define to VIR_FROM_NONE.
      * src/lxc_conf.c (VIR_FROM_THIS): Define to VIR_FROM_LXC.
      * src/libvirt.c (VIR_FROM_THIS): Define to VIR_FROM_NONE.
      * src/node_device_conf.c (VIR_FROM_THIS): Define to VIR_FROM_NODEDEV.
      * src/openvz_conf.c (VIR_FROM_THIS): Define to VIR_FROM_OPENVZ.
      * src/openvz_driver.c (VIR_FROM_THIS): Define to VIR_FROM_OPENVZ.
      * src/conf.c (VIR_FROM_THIS): Define to VIR_FROM_CONF.
      Note: this loses config_filename:config_lineno diagnostics,
      but that's ok.
      * src/node_device.c (VIR_FROM_THIS): Define to VIR_FROM_NODEDEV.
      * src/sexpr.c (VIR_FROM_THIS): Define to VIR_FROM_SEXPR.
      * po/POTFILES.in: remove src/sexpr.c and src/lxc_conf.c
      bc18a91f
  19. 23 1月, 2009 1 次提交
  20. 22 1月, 2009 1 次提交
  21. 21 1月, 2009 1 次提交
  22. 20 1月, 2009 1 次提交
  23. 15 1月, 2009 1 次提交
  24. 18 12月, 2008 2 次提交
  25. 17 11月, 2008 1 次提交
  26. 07 11月, 2008 1 次提交
    • D
      add new logging module, and move existing definitions there · df93e1ee
      Daniel Veillard 提交于
      * src/logging.c src/logging.h proxy/Makefile.am proxy/libvirt_proxy.c
        src/Makefile.am src/cgroup.c src/datatypes.c src/domain_event.c
        src/internal.h src/libvirt.c src/lxc_container.c src/lxc_controller.c
        src/lxc_driver.c src/proxy_internal.c src/qemu_driver.c
        src/remote_internal.c src/storage_backend_disk.c src/util.c
        src/veth.c src/xen_internal.c src/xen_unified.c src/xend_internal.c:
        add new logging module, and move existing definitions there
      Daniel
      df93e1ee
  27. 05 11月, 2008 2 次提交
  28. 29 10月, 2008 1 次提交
    • J
      use ARRAY_CARDINALITY more · 05589b72
      Jim Meyering 提交于
      * tests/nodeinfotest.c: Include "util.h".
      * src/xen_internal.c: Likewise.
      * src/qemu_conf.c (qemudCapsInit): Use ARRAY_CARDINALITY.
      * src/storage_backend.c (virStorageBackendForType): Likewise.
      * src/storage_backend_fs.c (virStorageBackendProbeFile): Likewise.
      * src/xen_internal.c (xenHypervisorMakeCapabilitiesInternal): Likewise.
      * src/xend_internal.c (xenDaemonParseSxpr): Likewise.
      * tests/nodeinfotest.c (mymain): Likewise.
      * tests/qparamtest.c (DO_TEST): Likewise.
      05589b72
  29. 24 10月, 2008 1 次提交
  30. 10 10月, 2008 2 次提交
    • D
      Fix two format string warnings on 32bit hosts · 0107578c
      Daniel P. Berrange 提交于
      0107578c
    • D
      virDomainDefineXML, and a few additional cleanups · f6803c96
      Daniel Veillard 提交于
      * include/libvirt/libvirt.h[.in] include/libvirt/virterror.h
        qemud/remote* src/driver.h src/libvirt.c src/libvirt_sym.version
        src/lxc_driver.c src/openvz_driver.c src/proxy_internal.c
        src/qemu_driver.c src/remote_internal.c src/test.c src/virsh.c
        src/xen_internal.c src/xen_unified.c src/xen_unified.h
        src/xend_internal.c src/xend_internal.h src/xm_internal.c
        src/xs_internal.c docs/*: cleanup virDomainCreateLinux into
        virDomainDefineXML, and a few additional cleanups
      Daniel
      f6803c96
  31. 09 10月, 2008 1 次提交
  32. 07 10月, 2008 1 次提交
  33. 05 9月, 2008 1 次提交
  34. 21 8月, 2008 1 次提交
  35. 25 7月, 2008 1 次提交