1. 01 9月, 2009 1 次提交
    • C
      support lzop save compression for qemu · cc76cf31
      Charles Duffy 提交于
      Per prior discussion -- this was, indeed, trivial.
      
      I'm a little disappointed to be breaking the ordering characteristics of
      the enum (as it had been ordered by increasing time requirements and
      decreasing output size), but breaking any save files with the old
      constants in the headers would of course be worse.
      
      >From 2a9cdcfc88de091a8d34aa3fc3b1208d7681790e Mon Sep 17 00:00:00 2001
      From: Charles Duffy <Charles_Duffy@dell.com>
      Date: Fri, 28 Aug 2009 11:49:54 -0500
      Subject: [PATCH] support lzop save compression for qemu
      
      One of the larger disincentives towards use of compression for migrated-out save
      files is performance impact. This patch adds support for lzop; CPU time for
      compression is about 5x faster than gzip (the next most performant algorithm)
      and decompression is about 3x faster.
      Signed-off-by: NCharles Duffy <Charles_Duffy@dell.com>
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      cc76cf31
  2. 17 8月, 2009 1 次提交
    • C
      Compressed save image format for Qemu. · 2d6a5819
      Chris Lalancette 提交于
      Implement a compressed save image format for qemu.  While ideally
      we would have the choice between compressed/non-compressed
      available to the libvirt API, unfortunately there is no "flags"
      parameter to the virDomainSave() API.  Therefore, implement this
      as a qemu.conf option.  gzip, bzip2, and lzma are implemented, and
      it should be very easy to implement additional compression
      methods.
      
      One open question is if/how we should detect the compression
      binaries.  One way to do it is to do compile-time setting of the
      paths (via configure.in), but that doesn't seem like a great thing
      to do.  My preferred solution is not to detect at all;
      when we go to run the commands that need them, if they
      aren't available, or aren't available in one of the standard paths,
      then we'll fail.  That's also the solution implemented in this patch.
      
      In the future, we'll have a more robust (managed) save/restore API,
      at which time we can expose this functionality properly in the API.
      
      V2: get rid of redundant dd command and just use >> to append data.
      V3: Add back the missing pieces for the enum and bumping the save version.
      V4: Make the compressed field in the save_header an int.
          Implement LZMA compression.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      2d6a5819
  3. 24 7月, 2009 1 次提交
    • D
      Make QEMU cgroups use configurable · f4c3acdf
      Daniel P. Berrange 提交于
       * qemud/libvirtd_qemu.aug, qemud/test_libvirtd_qemu.aug,
         src/qemu.conf: Add 'cgroups_controllers' and 'cgroups_device_acl'
         parameters
       * src/qemu_conf.h, src/qemu_conf.c: Load & parse configuration params
         for cgroups
       * src/qemu_driver.c: Only use cgroups controllers that are activated,
         and use configured device whitelist instead of default, if set.
      f4c3acdf
  4. 17 7月, 2009 1 次提交
    • D
      Run QEMU guests as an unprivileged user · 0714b2ba
      Daniel P. Berrange 提交于
      * configure.in: Add --with-qemu-user and --with-qemu-group args
      * libvirt.spec.in: use 'qemu' for user/group for Fedora >= 12
      * qemud/libvirtd_qemu.arg, qemud/test_libvirtd_qemu.aug,
        src/qemu.conf: Add 'user' and 'group' args for configuration
      * src/Makefile.am: Create %localstatedir/cache/libvirt/qemu
      * src/qemu_conf.c, src/qemu_conf.h: Load user/group from config
      * src/qemu_driver.c: Change user ID/group ID when launching QEMU
        guests. Change user/group ownership on disks/usb/pci devs.
        Put memory dumps in %localstatedir/cache/libvirt/qemu
      * src/util.c, src/util.h: Add convenient APIs for converting
        username/groupname to user ID / group ID
      0714b2ba
  5. 16 3月, 2009 1 次提交
  6. 03 3月, 2009 1 次提交
  7. 30 1月, 2009 1 次提交
  8. 17 3月, 2008 1 次提交
  9. 06 2月, 2008 1 次提交
  10. 13 10月, 2007 1 次提交