You need to sign in or sign up before continuing.
  1. 22 12月, 2008 2 次提交
    • 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
    • J
      337dce1e
  2. 20 12月, 2008 2 次提交
  3. 19 12月, 2008 1 次提交
  4. 18 12月, 2008 17 次提交
  5. 17 12月, 2008 2 次提交
    • 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
    • C
      Sanitize qemu monitor reads. · 0e459cbd
      Cole Robinson 提交于
      0e459cbd
  6. 16 12月, 2008 1 次提交
  7. 15 12月, 2008 3 次提交
    • D
      e4471a7a
    • D
      Fix deadlock when reloading configs · 43b897c1
      Daniel P. Berrange 提交于
      43b897c1
    • J
      remove redundant optname arguments · 289d52c4
      Jim Meyering 提交于
      This is the second part of the change mentioned here:
      
        http://thread.gmane.org/gmane.comp.emulators.libvirt/10331
      
      It removes the essentially redundant "optname" parameter
      from each of the vshCommandOptNetworkBy and vshCommandOptDomainBy
      functions as well as the correspond macros (without "By" suffix).
      Now, instead of always passing the optname, "domain", to
      vshCommandOptDomainBy, that function requires that its command
      argument refer to an opts array containing a "domain" option.
      
      This normalization makes one more help-related change:
      it renames the net-start "name" argument to the more
      sensible and consistent "network".
      * src/virsh.c (VSH_BYNAME, vshCommandOptDomain)
      (cmd_has_option): New function, used in vshCommandOptDomainBy
      and vshCommandOptNetworkBy.
      (vshCommandOptDomainBy, vshCommandOptNetworkBy): Remove the optname
      parameter, it's always "domain" ("network").  Update all callers.
      Call cmd_has_option.
      (vshCommandOptNetwork, cmdAutostart, cmdConsole, cmdDomstate)
      (cmdDomblkstat, cmdDomIfstat, cmdSuspend, cmdUndefine, cmdStart)
      (cmdSave, cmdSchedinfo, cmdDump, cmdResume, cmdShutdown)
      (cmdReboot, cmdDestroy, cmdDominfo, cmdVcpuinfo, cmdVcpupin)
      (cmdSetvcpus, cmdSetmem, cmdSetmaxmem, cmdDumpXML, cmdDomname)
      (cmdDomid, cmdDomuuid, cmdMigrate, cmdNetworkAutostart)
      (cmdNetworkDestroy, cmdNetworkDumpXML, cmdNetworkName)
      (opts_network_start, cmdNetworkStart, cmdNetworkUndefine)
      (cmdNetworkUuid, cmdVNCDisplay, cmdTTYConsole, cmdAttachDevice)
      (cmdDetachDevice, cmdAttachInterface, cmdDetachInterface)
      (cmdAttachDisk, cmdDetachDisk, cmdEdit)
      * src/Makefile.am (virsh-pool-edit.c): This code is generated
      from cmdEdit, and cmdEdit uses the vshCommandOptDomain macro which
      now, with the changes above, has only 3 (was 4) arguments, yet the
      macro use is mapped to vshCommandOptPool, which still requires 4
      arguments.  So this change adjusts the sed code to reinsert the
      just-removed argument -- we're not changing pool-related code right
      now, because it's not as straight-forward.
      289d52c4
  8. 12 12月, 2008 5 次提交
  9. 11 12月, 2008 5 次提交
  10. 10 12月, 2008 2 次提交
    • J
      fix just-broken "virsh start" and "virsh pool-start" commands · 3693a02f
      Jim Meyering 提交于
      * src/virsh.c (cmdPoolStart, cmdStart): Change hard-coded
      vshCommandOptDomainBy string argument to match just-changed
      option name.  Cole Robinson reported that "virsh start" was
      broken and provided that part of the fix.
      Bug introduced by yesterday's "virsh.c: tweak options to produce
      more accurate help".
      * tests/start: New file.  Test for the above fix.
      * tests/Makefile.am (test_scripts): Add start.
      3693a02f
    • G
      logrotate qemu monitor logs · 54f4ed6b
      Guido Günther 提交于
      54f4ed6b