1. 03 4月, 2019 20 次提交
  2. 01 4月, 2019 1 次提交
  3. 29 3月, 2019 3 次提交
  4. 28 3月, 2019 6 次提交
  5. 27 3月, 2019 9 次提交
    • E
      Revert "snapshot: Allow NULL to virDomainSnapshotObjGetDef" · a6d822ce
      Eric Blake 提交于
      This reverts commit 6b90a847.
      
      It turns out gcc -O2 is not happy with it, complaining:
      
      /home/pipo/libvirt/src/qemu/qemu_driver.c: In function 'qemuDomainSnapshotCreateXML':
      /home/pipo/libvirt/src/qemu/qemu_driver.c:15389:26: error: potential null pointer dereference [-Werror=null-dereference]
           bool memory = snapdef->memory == VIR_DOMAIN_SNAPSHOT_LOCATION_EXTERNAL;
                         ~~~~~~~^~~~~~~~
      /home/pipo/libvirt/src/qemu/qemu_driver.c:15389:26: error: potential null pointer dereference [-Werror=null-dereference]
      In file included from /home/pipo/libvirt/src/util/virbuffer.h:27,
                       from /home/pipo/libvirt/src/conf/capabilities.h:27,
                       from /home/pipo/libvirt/src/conf/domain_conf.h:32,
                       from /home/pipo/libvirt/src/qemu/qemu_agent.h:26,
                       from /home/pipo/libvirt/src/qemu/qemu_driver.c:40:
      /home/pipo/libvirt/src/util/viralloc.h:125:34: error: potential null pointer dereference [-Werror=null-dereference]
       # define VIR_ALLOC_N(ptr, count) virAllocN(&(ptr), sizeof(*(ptr)), (count), true, \
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                  VIR_FROM_THIS, __FILE__, __FUNCTION__, __LINE__)
                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /home/pipo/libvirt/src/qemu/qemu_driver.c:15103:9: note: in expansion of macro 'VIR_ALLOC_N'
           if (VIR_ALLOC_N(ret, snapdef->ndisks) < 0)
               ^~~~~~~~~~~
      /home/pipo/libvirt/src/qemu/qemu_driver.c:15798:45: error: null pointer dereference [-Werror=null-dereference]
                   virDomainSnapshotObjGetDef(snap)->memory == VIR_DOMAIN_SNAPSHOT_LOCATION_EXTERNAL) {
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
      
      As the patch simplified one or two callers at the risk of making
      many other callers now candidates to trigger aggressive compiler
      warnings, it isn't worth it.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      a6d822ce
    • E
      snapshot: Refactor qemu to utilize virDomainMoment more · a487890d
      Eric Blake 提交于
      Use the common base class virDomainMoment for iterator callbacks
      related to snapshots from the qemu code, so that when checkpoint
      operations are introduced, they can share the same callbacks.
      
      Simplify the code for qemuDomainSnapshotCurrent by better utilizing
      virDomainMoment helpers.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      a487890d
    • E
      snapshot: Allow NULL to virDomainSnapshotObjGetDef · 6b90a847
      Eric Blake 提交于
      Doing so can simplify some callers.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      6b90a847
    • E
      snapshot: Drop pointless function virDomainMomentIsCurrentName · 3d7c683a
      Eric Blake 提交于
      The qemu driver already had a full-blown virDomainMomentObjPtr to
      check against, and the test driver ought to have one since we get
      better error checking that the user passed in a valid object. Removes
      the need for a helper function added in commit commit 4819f54b.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      3d7c683a
    • J
      qemu: Add support for parallel migration · d3ea986a
      Jiri Denemark 提交于
      The VIR_MIGRATE_PARALLEL flag is implemented using QEMU's multifd
      migration capability and the corresponding multifd-channels migration
      parameter.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      d3ea986a
    • E
      backup: Introduce virDomainCheckpointPtr · 42186182
      Eric Blake 提交于
      Prepare for introducing a bunch of new public APIs related to
      backup checkpoints by first introducing a new internal type
      and errors associated with that type.  Checkpoints are modeled
      heavily after virDomainSnapshotPtr (both represent a point in
      time of the guest), although a snapshot exists with the intent
      of rolling back to that state, while a checkpoint exists to
      make it possible to create an incremental backup at a later
      time.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      42186182
    • E
      snapshot: Various doc tweaks · 1c6b6c0b
      Eric Blake 提交于
      Since I was copying this text to form checkpoint XML and API
      documentation, I might as well make improvements along the way. Most
      of these changes are based on reviews of the checkpoint docs.
      
      Among other things: grammar tweaks, point to a single source of
      documentation rather than repeating verbosity, reword things for
      easier legibility.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      1c6b6c0b
    • E
      Revert "snapshot: Add virDomainSnapshotObjListFormat" · 0b4fac6a
      Eric Blake 提交于
      This reverts commit 86c0ed6f, and
      subsequent refactorings of the function into new files.  There are no
      callers of this function - I had originally proposed it for
      implementing a new bulk snapshot API, but that proved to be too
      invasive given RPC limits. I also tried using it for streamlining how
      the qemu driver stores snapshot state across libvirtd restarts
      internally, but in the end, the risks of a new internal format
      outweighed the benefits of one file per snapshot.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      0b4fac6a
    • E
      Revert "snapshot: Add virDomainSnapshotObjListParse" · 57d252c7
      Eric Blake 提交于
      This reverts commit 1b57269c, and
      subsequent refactorings of the function into new files.  There are no
      callers of this function - I had originally proposed it for
      implementing a new bulk snapshot API, but that proved to be too
      invasive given RPC limits. I also tried using it for streamlining how
      the qemu driver stores snapshot state across libvirtd restarts
      internally, but in the end, the risks of a new internal format
      outweighed the benefits of one file per snapshot.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      57d252c7
  6. 26 3月, 2019 1 次提交
    • L
      qemu_hotplug: don't shutdown net device until the guest has released it · 34086fc5
      Laine Stump 提交于
      For [some unknown reason, possibly/probably pure chance], Net devices
      have been taken offline and their bandwidth tc rules cleared as the
      very first operation when detaching the device. This is contrary to
      every other type of device, where all hostside teardown is delayed
      until we receive the DEVICE_DELETED event back from qemu, indicating
      that the guest has finished with the device.
      
      This patch delays these two operations until receipt of
      DEVICE_DELETED, which removes an ugly wart from
      qemuDomainDetachDeviceLive(), and also seems to be a more correct
      sequence of events.
      Signed-off-by: NLaine Stump <laine@laine.org>
      ACKed-by: NPeter Krempa <pkrempa@redhat.com>
      34086fc5