1. 20 6月, 2011 8 次提交
    • O
      numatune: Support persistent XML for numatune · d7edaf5d
      Osier Yang 提交于
      * src/conf/domain_conf.h: Introduce one new struct for representing
      NUMA tuning related stuffs.
      
      * src/conf/domain_conf.c: Parse and format numatune XML.
      d7edaf5d
    • O
      numatune: Add doc for new numatune XML · e6ea48c3
      Osier Yang 提交于
      e6ea48c3
    • O
      numatune: Define XML schema · e68b9ab0
      Osier Yang 提交于
      Example XML:
      
      <numatune>
        <memory mode="strict" nodeset="0-10,^4"/>
      </numatune>
      
      Please enter the commit message for your changes. Lines starting
      e68b9ab0
    • H
      Update qemuDomainSetBlkioParameters to use flags · 8485e5a2
      Hu Tao 提交于
      8485e5a2
    • H
      update qemuDomainGetBlkioParameters to use flags · 100c39ca
      Hu Tao 提交于
      100c39ca
    • H
      Add new parameters for blkiotune · 1bb414af
      Hu Tao 提交于
      Add --config, --live and --current for command blkiotune
      1bb414af
    • W
      build: fix building error when building without libvirtd · 34e3ec90
      Wen Congyang 提交于
      When building libvirt without libvirtd, we will receive the following error
      message:
      
      make[3]: Entering directory `/home/wency/rpmbuild/BUILD/libvirt-0.9.2/tools'
        CC     virsh-virsh.o
        CC     virsh-console.o
        GEN    virt-xml-validate
        GEN    virt-pki-validate
        CCLD   virsh
      ./src/.libs/libvirt.so: undefined reference to `numa_available'
      ./src/.libs/libvirt.so: undefined reference to `numa_max_node'
      collect2: ld returned 1 exit status
      
      The reason is that: we check numactl only when building qemu driver, and qemu
      driver will not be built when bulding without libvirtd. So with_numactl's
      value is check and we will not link libnuma.so.
      
      In the other function, we call numa_available() and numa_max_node() only
      when HAVE_NUMACTL is 1. We should do the same check in the function nodeGetMemoryStats().
      34e3ec90
    • J
      apparmor: implement AppArmorSetFDLabel() · b9757fea
      Jamie Strandboge 提交于
      During a savevm operation, libvirt will now use fd migration if qemu
      supports it. When the AppArmor driver is enabled, AppArmorSetFDLabel()
      is used but since this function simply returns '0', the dynamic AppArmor
      profile is not updated and AppArmor blocks access to the save file. This
      patch implements AppArmorSetFDLabel() to get the pathname of the file by
      resolving the fd symlink in /proc, and then gives that pathname to
      reload_profile(), which fixes 'virsh save' when AppArmor is enabled.
      
      Reference: https://launchpad.net/bugs/795800
      b9757fea
  2. 17 6月, 2011 7 次提交
  3. 16 6月, 2011 4 次提交
    • M
      Fix documentation of virStreamRecv · be757a3f
      Matthias Bolte 提交于
      virStreamRecv is for reading.
      
      Also add some missing punctuation to virStreamSend's documentation.
      be757a3f
    • E
      sendkey: use consistent API convention · 1d575629
      Eric Blake 提交于
      Even though rpc uses 'unsigned int' for the _len parameter that
      passes the length of item<length>, the public libvirt APIs all
      use 'int' and filter out lengths < 0, except for virDomainSendKey.
      
      * include/libvirt/libvirt.h.in (virDomainSendKey): All other APIs
      use int for array length.
      * src/libvirt.c (virDomainSendKey): Adjust.
      * src/driver.h (virDrvDomainSendKey): Likewise.
      * daemon/remote_generator.pl: Likewise.
      1d575629
    • E
      build: export correct function names · b33cd5e3
      Eric Blake 提交于
      Detected by autobuild.sh, when targetting mingw.
      Introduced in commit 98bfdff1.
      
      * src/libvirt_private.syms: Fix typos.
      b33cd5e3
    • E
      build: avoid compiler warning on non-Linux · a1df7054
      Eric Blake 提交于
      Detected by autobuild.sh when cross-building for mingw.
      Introduced in commits ce76e853 and af35cece.
      
      * src/nodeinfo.c (nodeGetCPUStats, nodeGetMemoryStats): Mark
      parameters as potentially unused.
      a1df7054
  4. 15 6月, 2011 21 次提交