1. 22 12月, 2008 1 次提交
    • J
      make NUMA-initialization code more portable and more robust · d010b689
      Jim Meyering 提交于
      qemudCapsInitNUMA and umlCapsInitNUMA were identical, so this change
      factors them into a new function, virCapsInitNUMA, and puts it in
      nodeinfo.c.
      
      In addition to factoring out the duplicates, this change also
      adjusts that function definition (along with its macros) so
      that it works with Fedora 9's numactl version 1, and makes it
      so the code will work even if someone builds the kernel with
      CONFIG_NR_CPUS > 4096.
      
      Finally, also perform this NUMA initialization for the lxc
      and openvz drivers.
      
      * src/nodeinfo.c: Include <stdint.h>, <numa.h> and "memory.h".
      (virCapsInitNUMA): Rename from qemudCapsInitNUMA and umlCapsInitNUMA.
      (NUMA_MAX_N_CPUS): Define depending on NUMA API version.
      (n_bits, MASK_CPU_ISSET): Define, adjust, use uint64 rather than long.
      * src/nodeinfo.h: Include "capabilities.h".
      (virCapsInitNUMA): Declare it.
      * examples/domain-events/events-c/Makefile.am:
      * src/Makefile.am: Add $(NUMACTL_CFLAGS) and $(NUMACTL_LIBS) to various
      compile/link-related variables.
      * src/qemu_conf.c: Include "nodeinfo.h".
      (qemudCapsInitNUMA): Remove duplicate code.  Adjust caller.
      * src/uml_conf.c (umlCapsInitNUMA): Likewise.
      Include "nodeinfo.h".
      * src/lxc_conf.c: Include "nodeinfo.h".
      (lxcCapsInit): Perform NUMA initialization here, too.
      * src/openvz_conf.c (openvzCapsInit): And here.
      Include "nodeinfo.h".
      * src/libvirt_sym.version.in: Add virCapsInitNUMA so that libvirtd
      can link to this function.
      d010b689
  2. 20 12月, 2008 1 次提交
  3. 18 12月, 2008 2 次提交
  4. 17 12月, 2008 1 次提交
    • J
      fix numa-related (and kernel-dependent) test failures · 7e6a06ae
      Jim Meyering 提交于
      This change is required on some kernels due to the way a change in
      the kernel's CONFIG_NR_CPUS propagates through the numa library.
      * src/qemu_conf.c (qemudCapsInitNUMA): Pass numa_all_cpus_ptr->size/8
      as the buffer-length-in-bytes in the call to numa_node_to_cpus, since
      that's what is required on second and subseqent calls.
      * src/uml_conf.c (umlCapsInitNUMA): Likewise.
      7e6a06ae
  5. 12 12月, 2008 2 次提交
  6. 11 12月, 2008 2 次提交
    • C
      52037657
    • D
      Adding support for SDL fullscreen option · a3d570c7
      Daniel Veillard 提交于
      * src/domain_conf.c src/domain_conf.h src/qemu_conf.c
        tests/qemuxml2argvtest.c tests/qemuxml2xmltest.c
        tests/qemuxml2argvdata/qemuxml2argv-graphics-sdl-fullscreen.args
        tests/qemuxml2argvdata/qemuxml2argv-graphics-sdl-fullscreen.xml:
        slightly modified patch for SDL fullscreen from Itamar Heim
      * docs/formatdomain.html docs/formatdomain.html.in docs/libvirt.rng:
        update the schemas and docs about the sdl graphic element attributes
      * AUTHORS: add Itamar Heim
      Daniel
      a3d570c7
  7. 28 11月, 2008 1 次提交
  8. 20 11月, 2008 1 次提交
  9. 05 11月, 2008 3 次提交
  10. 03 11月, 2008 1 次提交
  11. 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
  12. 24 10月, 2008 1 次提交
  13. 11 10月, 2008 2 次提交
  14. 10 10月, 2008 1 次提交
  15. 09 10月, 2008 1 次提交
  16. 07 10月, 2008 1 次提交
  17. 09 9月, 2008 1 次提交
  18. 05 9月, 2008 1 次提交
  19. 02 9月, 2008 2 次提交
  20. 29 8月, 2008 1 次提交
  21. 21 8月, 2008 1 次提交
  22. 15 8月, 2008 1 次提交
  23. 08 8月, 2008 3 次提交
    • D
      Fix const-correctness of virRUn and virExec · b3728d7d
      Daniel P. Berrange 提交于
      b3728d7d
    • D
      llow to add a disk as an USB device (QEmu/KVM) · 5ba37230
      Daniel Veillard 提交于
      * src/domain_conf.c src/domain_conf.h src/qemu_conf.c
        src/qemu_driver.c: patch from Guido Günther allowing to add
        disk as USB devices
      * docs/libvirt.rng: extend the schemas for the new value
      * tests/qemuxml2argvdata/qemuxml2argv-disk-usb.args
        tests/qemuxml2argvdata/qemuxml2argv-disk-usb.xml
        tests/qemuxml2argvtest.c tests/qemuxml2xmltest.c: add a specific
        test to the regression suite
      Daniel
      5ba37230
    • D
      Extend parser and add support for USB devices in QEmu/KVM · d1710d35
      Daniel Veillard 提交于
      * src/domain_conf.c src/domain_conf.h src/qemu_conf.c
        src/qemu_driver.c: Patch from Guido Günther allowing to pass
        usb devices to qemu/kvm
      * docs/libvirt.rng: add the new functionality to the grammar
      * tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-address.args
        tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-address.xml
        tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-product.args
        tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-product.xml
        tests/qemuxml2argvtest.c tests/qemuxml2xmltest.c: adding examples
        to the regression tests
      * libvirt.spec.in: fix the licence tag
      Daniel
      d1710d35
  24. 29 7月, 2008 1 次提交
  25. 25 7月, 2008 1 次提交
  26. 12 7月, 2008 3 次提交
  27. 11 7月, 2008 1 次提交
  28. 09 7月, 2008 1 次提交
  29. 19 6月, 2008 1 次提交
    • C
      When doing the conversion to danpb's new memory API, a small bug was · a24b1d9e
      Chris Lalancette 提交于
      introduced into the qemudNetworkIfaceConnect() function.  In particular, there
      is a call:
      
          if (VIR_ALLOC_N(vm->tapfds, vm->ntapfds+2) < 0)
              goto no_memory;
      
      However, the tapfds structure is used to track *all* of the tap fds, and is
      called once for each network that is being attached to the domain.  VIR_ALLOC_N
      maps to calloc().  So the first network would work just fine, but if you had
      more than one network, subsequent calls to this function would blow away the
      stored fd's that were already there and fill them all in with zeros.  This
      causes multiple problems, from the qemu domains not starting properly to
      improper cleanup on shutdown.  The attached patch just changes the VIR_ALLOC_N()
      to a VIR_REALLOC_N(), and everything is happy again.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      a24b1d9e