1. 07 7月, 2010 5 次提交
  2. 05 7月, 2010 1 次提交
  3. 03 7月, 2010 1 次提交
  4. 02 7月, 2010 3 次提交
  5. 30 6月, 2010 5 次提交
    • R
      cgroup: Fix compilation broken on MinGW due to dirent->d_type · 29da015a
      Ryota Ozaki 提交于
      As pointed out by Eric Blake, using dirent->d_type breaks
      compilation on MinGW. This patch addresses this by using
      '#if defined' as same as doing for virCgroupForDriver.
      29da015a
    • J
      html docs: add link to PHP bindings by Radek Hladik · 8919b4d4
      Justin Clift 提交于
      8919b4d4
    • E
      virsh: tweak help output for VSH_OT_DATA · 26752f3b
      Eric Blake 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=609044 complained
      that 'virsh help pool-create-as' didn't document the shortcut
      that you can do 'virsh pool-create-as $name $type --target $target'
      rather than having to supply the four optional source- arguments
      in order to fill out the necessary positional arguments.
      
      This one-liner changes the help output to hopefully make this more obvious:
      
        NAME
          pool-create-as - create a pool from a set of args
      
        SYNOPSIS
          pool-create-as <name> [--print-xml] <type> [<source-host>] [<source-path>] [<source-dev>] [<source-name>] [<target>] [--source-format <string>]
      
        DESCRIPTION
          Create a pool.
      
        OPTIONS
          [--name] <string>  name of the pool
          --print-xml      print XML document, but don't define/create
          [--type] <string>  type of the pool
          [--source-host] <string>  source-host for underlying storage
          [--source-path] <string>  source path for underlying storage
          [--source-dev] <string>  source device for underlying storage
          [--source-name] <string>  source name for underlying storage
          [--target] <string>  target for underlying storage
          --source-format <string>  format for underlying storage
      
      * tools/virsh.c (vshCmddefHelp): Make it more obvious that data
      arguments may, but not must, be specified by option leaders.
      26752f3b
    • D
      Avoid invoking the qemu monitor destroy callback if the constructor fails · 8134d396
      Daniel P. Berrange 提交于
      Some, but not all, codepaths in the qemuMonitorOpen() method
      would trigger the destroy callback. The caller does not expect
      this to be invoked if construction fails, only during normal
      release of the monitor. This resulted in a possible double-unref
      of the virDomainObjPtr, because the caller explicitly unrefs
      the virDomainObjPtr  if qemuMonitorOpen() fails
      
      * src/qemu/qemu_monitor.c: Don't invoke destroy callback from
        qemuMonitorOpen() failure paths
      8134d396
    • R
      cgroup: Add missing errno == ENOENT check in virCgroupRemoveRecursively · adc796c8
      Ryota Ozaki 提交于
      ENOENT happens normally when a subsystem is enabled with any other
      subsystems and the directory of the target group has already removed
      in a prior loop. In that case, the function should just return without
      leaving an error message.
      
      NB this is the same behavior as before introducing virCgroupRemoveRecursively.
      adc796c8
  6. 29 6月, 2010 9 次提交
  7. 28 6月, 2010 4 次提交
    • L
      Selectively ignore domainSetSecurityAllLabel failure in domain restore · 06f81c63
      Laine Stump 提交于
      When the saved domain image is on an NFS share, at least some part of
      domainSetSecurityAllLabel will fail (for example, selinux labels can't
      be modified). To allow domain restore to still work in this case, just
      ignore the errors.
      06f81c63
    • L
      use virStorageFileIsSharedFS utility function in qemudDomainSaveFlag · f35a9fc1
      Laine Stump 提交于
      Previously, this function had it's own bit of code performing the same
      function. Since there's now an equivalent utility function, let's use it.
      f35a9fc1
    • L
      Enhance virStorageFileIsSharedFS · fb457c5c
      Laine Stump 提交于
      virStorageFileIsSharedFS would previously only work if the entire path
      in question was stat'able by the uid of the libvirtd process. This
      patch changes it to crawl backwards up the path retrying the statfs
      call until it gets to a partial path that *can* be stat'ed.
      
      This is necessary to use the function to learn the fstype for files
      stored as a different user (and readable only by that user) on a
      root-squashed remote filesystem.
      fb457c5c
    • L
      Set proper selinux label on image file during qemu domain restore · 590c9c9a
      Laine Stump 提交于
      Also restore the label to its original value after qemu is finished
      with the file.
      
      Prior to this patch, qemu domain restore did not function properly if
      selinux was set to enforce.
      590c9c9a
  8. 26 6月, 2010 2 次提交
  9. 25 6月, 2010 10 次提交
    • D
      Don't squash file permissions when migration fails · 6d974315
      Daniel P. Berrange 提交于
      If an active migration operation fails, or is cancelled by the
      admin, the QEMU on the destination is shutdown and the one on
      the source continues running. It is important in shutting down
      the QEMU on the destination, the security drivers don't reset
      the file labelling/permissions.
      
      * src/qemu/qemu_driver.c: Don't reset labelling/permissions
        on migration abort
      6d974315
    • E
      phyp: optimize use of sed · 17dedf7c
      Eric Blake 提交于
      Minor speedups by using the full power of sed.
      
      * src/phyp/phyp_driver.c (phypGetVIOSFreeSCSIAdapter)
      (phypDiskType, phypListDefinedDomains): Use fewer processes, by
      folding other work into sed.
      (phypGetVIOSPartitionID): Likewise.  Also avoid non-portable use
      of 'sed -s'.
      17dedf7c
    • E
      phyp: add storage management driver · ebc46fea
      Eduardo Otubo 提交于
      Add the storage management driver to the Power Hypervisor driver.
      This is a big but simple patch, it's just a new set of functions.
      
      This patch includes:
       * Storage driver: The set of pool-* and vol-* functions.
       * attach-disk function.
       * Support for IVM on the new functions.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      ebc46fea
    • E
      phyp: add rudimentary storage driver · a4a28724
      Eduardo Otubo 提交于
      * src/phyp/phyp_driver.c (phypStorageDriver): New driver.
      (phypStorageOpen, phypStorageClose): New functions.
      (phypRegister): Register it.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      a4a28724
    • E
      phyp: reduce scope of driver functions · 89144534
      Eric Blake 提交于
      Several phyp functions are not namespace clean, and had no reason
      to be exported since no one outside the phyp driver needed to use
      them.  Rather than do lots of forward declarations, I was able
      to topologically sort the file.  So, this patch looks huge, but
      is really just a matter of marking things static and dealing with
      the compiler fallout.
      
      * src/phyp/phyp_driver.h (PHYP_DRIVER_H): Add include guard.
      (phypCheckSPFreeSapce): Delete unused declaration.
      (phypGetSystemType, phypGetVIOSPartitionID, phypCapsInit)
      (phypBuildLpar, phypUUIDTable_WriteFile, phypUUIDTable_ReadFile)
      (phypUUIDTable_AddLpar, phypUUIDTable_RemLpar, phypUUIDTable_Pull)
      (phypUUIDTable_Push, phypUUIDTable_Init, phypUUIDTable_Free)
      (escape_specialcharacters, waitsocket, phypGetLparUUID)
      (phypGetLparMem, phypGetLparCPU, phypGetLparCPUGeneric)
      (phypGetRemoteSlot, phypGetBackingDevice, phypDiskType)
      (openSSHSession): Move declarations to phyp_driver.c and make static.
      * src/phyp/phyp_driver.c: Rearrange file contents to provide
      topological sorting of newly-static funtions (no semantic changes
      other than reduced scope).
      (phypGetBackingDevice, phypDiskType): Mark unused, for now.
      89144534
    • E
      maint: add gnulib gettimeofday module · f9a92146
      Eric Blake 提交于
      * bootstrap.conf (gnulib_modules): Add gettimeofday.
      f9a92146
    • D
      Fix test case failure due to missing -nodefconfig · 39f8af38
      Daniel P. Berrange 提交于
      The previous change which split -nodefconfig probing off
      from -device broke the test case because it missed adding
      the QEMUD_CMD_FLAG_NODEFCONFIG to the test
      
      * src/util/bridge.c: Set QEMUD_CMD_FLAG_NODEFCONFIG for all
        configs with QEMUD_CMD_FLAG_DEVICE set
      39f8af38
    • D
      Fix migration in text mode and shared storage migration in json mode · 28e96d72
      Daniel P. Berrange 提交于
      The patches for shared storage migration were not correctly written
      for json mode. Thus the 'blk' and 'inc' parameters were never being
      set. In addition they didn't set the QEMU_MONITOR_MIGRATE_BACKGROUND
      so migration was synchronous. Due to multiple bugs in QEMU's JSON
      impl this wasn't noticed because it treated the sync migration requst
      as asynchronous anyway. Finally 'background' parameter was converted
      to take arbitrary flags but not renamed, and not all uses were changed
      to unsigned int.
      
      * src/qemu/qemu_driver.c: Set QEMU_MONITOR_MIGRATE_BACKGROUND in
        doNativeMigrate
      * src/qemu/qemu_monitor_json.c: Process QEMU_MONITOR_MIGRATE_NON_SHARED_DISK
        and QEMU_MONITOR_MIGRATE_NON_SHARED_INC flags
      * src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h,
        src/qemu/qemu_monitor_json.h, src/qemu/qemu_monitor_text.c,
        src/qemu/qemu_monitor_text.h: change 'int background' to
        'unsigned int flags' in migration APIs. Add logging of flags
        parameter
      28e96d72
    • D
      Avoid blocking all APIs during incoming migration · 755b53f9
      Daniel P. Berrange 提交于
      During incoming migration the QEMU monitor is not able to be
      used. The incoming migration code did not keep hold of the
      job lock because migration is split across multiple API calls.
      This meant that further monitor commands on the guest would
      hang until migration finished with no timeout.
      
      In this change the qemuDomainMigratePrepare method sets the
      job flag just before it returns. The qemuDomainMigrateFinish
      method checks for this job flag & clears it once done. This
      prevents any use of the monitor between prepare+finish steps.
      
      The qemuDomainGetJobInfo method is also updated to refresh
      the job elapsed time. This means that virsh domjobinfo can
      return time data during incoming migration
      
      * src/qemu/qemu_driver.c: Keep a job active during incoming
        migration. Refresh job elapsed time when returning job info
      755b53f9
    • D
      Set labelling for character devices in security drivers · 2bad82f7
      Daniel P. Berrange 提交于
      When configuring serial, parallel, console or channel devices
      with a file, dev or pipe backend type, it is necessary to label
      the file path in the security drivers. For char devices of type
      file, it is neccessary to pre-create (touch) the file if it does
      not already exist since QEMU won't be allowed todo so itself.
      dev/pipe configs already require the admin to pre-create before
      starting the guest.
      
      * src/qemu/qemu_security_dac.c: set file ownership for character
        devices
      * src/security/security_selinux.c: Set file labeling for character
        devices
      * src/qemu/qemu_driver.c: Add character devices to cgroup ACL
      2bad82f7