1. 22 12月, 2010 5 次提交
    • M
      esx: Move VMX handling code out of the driver directory · 42b2f35d
      Matthias Bolte 提交于
      Now the VMware driver doesn't depend on the ESX driver anymore.
      
      Add a WITH_VMX option that depends on WITH_ESX and WITH_VMWARE.
      Also add a libvirt_vmx.syms file.
      
      Move some escaping functions from esx_util.c to vmx.c.
      
      Adapt the test suite, ESX and VMware driver to the new code layout.
      42b2f35d
    • M
      esx: Fix cluster resource lookup when connecting to a vCenter · 8cd4ca45
      Matthias Bolte 提交于
      Connecting to a ESX(i) server that is part of a cluster failed
      when the connection also involved a vCenter.
      
      Accept ClusterComputeResource type in addition to ComputeResource
      type in the object lookup function.
      
      Reported by Guillaume Le Louët.
      8cd4ca45
    • E
      maint: avoid space-tab · 831aaf4a
      Eric Blake 提交于
      * daemon/Makefile.am: Avoid spurious space before tabs.
      * src/Makefile.am: Likewise.
      * examples/dominfo/Makefile.am: Likewise.
      * examples/domsuspend/Makefile.am: Likewise.
      * tools/Makefile.am: Likewise.
      * src/datatypes.h (VIR_CONNECT_MAGIC): Likewise.
      * src/internal.h (TODO): Likewise.
      * src/qemu/qemu_monitor.h (QEMU_MONITOR_MIGRATE): Likewise.
      * src/xen/xen_hypervisor.c (XEN_V2_OP_GETAVAILHEAP): Likewise.
      * src/xen/xs_internal.h: Likewise.
      831aaf4a
    • E
      command: avoid hanging on daemon processes · c7f28dec
      Eric Blake 提交于
      * src/util/command.c (virCommandRun): Don't capture output on
      daemons.
      * tests/commandtest.c (test18): Expose the bug.
      Reported by Laine Stump.
      c7f28dec
    • E
      build: skip vmware driver when building for RHEL · 973ada0e
      Eric Blake 提交于
      * libvirt.spec.in: Provide vmware conditionals.
      973ada0e
  2. 21 12月, 2010 11 次提交
    • O
      storage: Ignore dangling symbolic link for filesystem pool · 76965b80
      Osier Yang 提交于
      If there is a dangling symbolic link in filesystem pool, the pool
      will fail to start or refresh, this patch is to fix it by ignoring
      it with a warning log.
      76965b80
    • J
      Skip file-based security checks for network disks · ee3efc41
      Josh Durgin 提交于
      Network disks are accessed by qemu directly, and have no
      associated file on the host, so checking for file ownership etc.
      is unnecessary.
      Signed-off-by: NJosh Durgin <joshd@hq.newdream.net>
      ee3efc41
    • J
      docs: added compiling page and significantly expanded windows page · 2954eb7b
      Justin Clift 提交于
      Also added an additional menu placement for the windows page, in
      order to attract further potential testers.
      2954eb7b
    • E
      build: make building on cygwin easier · da24a892
      Eric Blake 提交于
      * configure.ac (dlopen): Cygwin dlopen is in libc; avoid spurious
      failure.
      (XDR_CFLAGS): Define when needed.
      * src/Makefile.am (libvirt_driver_remote_la_CFLAGS): Use it.
      da24a892
    • E
      qemu: use virAsprintf instead of PATH_MAX · 450e8405
      Eric Blake 提交于
      * src/qemu/qemu_driver.c (qemudLogFD, qemudLogReadFD)
      (qemudStartup, qemudGetProcessInfo): Use heap instead of stack.
      450e8405
    • E
      tests: avoid spurious failure of nodeinfotest · bb11c553
      Eric Blake 提交于
      When running 'make check' under a multi-cpu Dom0 xen machine,
      nodeinfotest had a spurious failure it was reading from
      /sys/devices/system/cpu, but xen has no notion of topology.  The test
      was intended to be isolated from reading any real system files; the
      regression was introduced in Mar 2010 with commit aa2f6f96.
      
      Fix things by allowing an early exit for the testsuite.
      
      * src/nodeinfo.c (linuxNodeInfoCPUPopulate): Add parameter.
      (nodeGetInfo): Adjust caller.
      * tests/nodeinfotest.c (linuxTestCompareFiles): Likewise.
      bb11c553
    • E
      tests: avoid data race · 630fe36f
      Eric Blake 提交于
      I got some spurious failures when commandhelper won the race and
      ran to the point of parent detection prior to the intermediate
      daemonizing process getting a chance to exit.  This fixes it.
      
      * tests/commandhelper.c (main): Checking for re-parenting to
      init(1) is racy; instead check that we belong to a new session.
      630fe36f
    • E
      build: improve testsuite results with older automake · f0b834e7
      Eric Blake 提交于
      * tests/Makefile.am (TESTS_ENVIRONMENT, commandtest_CFLAGS)
      (commandhelper_CFLAGS): Avoid $(builddir) and $(abs_builddir) in
      automake 1.9.6; fixes spurious failures of commandtest.
      f0b834e7
    • E
      build: allow older libselinux again · 8e2b26db
      Eric Blake 提交于
      * configure.ac (with_selinux): Check for <selinux/label.h>.
      * src/security/security_selinux.c (getContext): New function.
      (SELinuxRestoreSecurityFileLabel): Use it to restore compilation
      when using older libselinux.
      8e2b26db
    • E
      build: allow autoconf 2.59 again · 8837d3c7
      Eric Blake 提交于
      Autoconf 2.59 doesn't define ${localedir}, so libvirt was failing
      to compile due to a missing LOCALEDIR until today's configmake fix.
      
      * .gnulib: Update to latest for configmake fix.
      * configure.ac (libpcap): Avoid AS_CASE.
      8837d3c7
    • W
      build: fix typo that broke 'make dist' · 4c6f6892
      Wen Congyang 提交于
      * src/Makefile.am (VMWARE_DRIVER_SOURCES): Fix vmware_driver.h.
      Signed-off-by: NWen Congyang <wency@cn.fujitsu.com>
      4c6f6892
  3. 20 12月, 2010 2 次提交
  4. 18 12月, 2010 11 次提交
  5. 17 12月, 2010 10 次提交
    • D
      Move QEMU hotplug helper code out of the QEMU driver · acabd9d0
      Daniel P. Berrange 提交于
      The QEMU driver file is far too large. Move all the hotplug
      helper code out into a separate file. No functional change.
      
      * src/qemu/qemu_hotplug.c, src/qemu/qemu_hotplug.h,
        src/Makefile.am: Add hotplug helper file
      * src/qemu/qemu_driver.c: Delete hotplug code
      acabd9d0
    • D
      Move QEMU domain lock / job helper code to separate file · 679d628c
      Daniel P. Berrange 提交于
      To allow the APIs to be used from separate files, move the domain
      lock / job helper code into qemu_domain.c
      
      * src/qemu/qemu_domain.c, src/qemu/qemu_domain.h: Add domain lock
        / job code
      * src/qemu/qemu_driver.c: Remove domain lock / job code
      679d628c
    • D
      Move QEMU driver lock helpers to a separate file · 22f4cb85
      Daniel P. Berrange 提交于
      To allow their use from other source files, move qemuDriverLock
      and qemuDriverUnlock to qemu_conf.h and make them non-static
      
      * src/qemu/qemu_conf.c, src/qemu/qemu_conf.h: Add qemuDriverLock
        qemuDriverUnlock
      * src/qemu/qemu_driver.c: Remove qemuDriverLock and qemuDriverUnlock
      22f4cb85
    • D
      Move QEMU hostdev helper code out of the QEMU driver · 01abc8a1
      Daniel P. Berrange 提交于
      The QEMU driver file is far too large. Move all the hostdev
      helper code out into a separate file. No functional change.
      
      * src/qemu/qemu_hostdev.c, src/qemu/qemu_hostdev.h,
        src/Makefile.am: Add hostdev helper file
      * src/qemu/qemu_driver.c: Delete hostdev code
      01abc8a1
    • D
      Move QEMU cgroup helper code out of the QEMU driver · 52271cfc
      Daniel P. Berrange 提交于
      The QEMU driver file is far too large. Move all the cgroup
      helper code out into a separate file. No functional change.
      
      * src/qemu/qemu_cgroup.c, src/qemu/qemu_cgroup.h,
        src/Makefile.am: Add cgroup helper file
      * src/qemu/qemu_driver.c: Delete cgroup code
      52271cfc
    • D
      Move QEMU audit helper code out of the QEMU driver · 1aecb634
      Daniel P. Berrange 提交于
      The QEMU driver file is far too large. Move all the audit
      helper code out into a separate file. No functional change.
      
      * src/qemu/qemu_audit.c, src/qemu/qemu_audit.h,
        src/Makefile.am: Add audit helper file
      * src/qemu/qemu_driver.c: Delete audit code
      1aecb634
    • D
      Move QEMU private data & namespace code into separate file · df4aabaf
      Daniel P. Berrange 提交于
      Move the code for handling the QEMU virDomainObjPtr private
      data, and custom XML namespace into a separate file
      
      * src/qemu/qemu_domain.c, src/qemu/qemu_domain.h: New file
        for private data & namespace code
      * src/qemu/qemu_driver.c, src/qemu/qemu_driver.h: Remove
        private data & namespace code
      * src/qemu/qemu_driver.h, src/qemu/qemu_command.h: Update
        includes
      * src/Makefile.am: Add src/qemu/qemu_domain.c
      df4aabaf
    • D
      Move QEMU command line management into a separate file · 0f2e4b9c
      Daniel P. Berrange 提交于
      The qemu_conf.c code is doing three jobs, driver config file
      loading, QEMU capabilities management and QEMU command line
      management. Move the command line code into its own file
      
      * src/qemu/qemu_command.c, src/qemu/qemu_command.h: New
        command line management code
      * src/qemu/qemu_conf.c, src/qemu/qemu_conf.h: Delete command
        line code
      * src/qemu/qemu_conf.h, src/qemu_conf.c: Adapt for API renames
      * src/Makefile.am: add src/qemu/qemu_command.c
      * src/qemu/qemu_monitor_json.c, src/qemu/qemu_monitor_text.c: Add
        import of qemu_command.h
      0f2e4b9c
    • D
      Move QEMU capabilities management into a separate file · d8ae147d
      Daniel P. Berrange 提交于
      The qemu_conf.c code is doing three jobs, driver config file
      loading, QEMU capabilities management and QEMU command line
      management. Move the capabilities code into its own file
      
      * src/qemu/qemu_capabilities.c, src/qemu/qemu_capabilities.h: New
        capabilities management code
      * src/qemu/qemu_conf.c, src/qemu/qemu_conf.h: Delete capabilities
        code
      * src/qemu/qemu_conf.h: Adapt for API renames
      * src/Makefile.am: add src/qemu/qemu_capabilities.c
      d8ae147d
    • E
      maint: doc fix · 02b4d34a
      Eric Blake 提交于
      * src/libvirt.c: Avoid duplicate word.
      02b4d34a
  6. 14 12月, 2010 1 次提交