1. 14 5月, 2014 7 次提交
    • J
      qemu: Ignore temporary job errors when checking migration status · cc4882f4
      Jiri Denemark 提交于
      When qemu driver is polling for migration to finish (in
      qemuMigrationWaitForCompletion), it may happen that another job allowed
      during migration is running and if it does not finish within 30 seconds,
      migration would be cancelled because of that. However, we can just
      ignore the timeout and let the waiting loop try again later.
      
      If an event fired at the end of migration is ever implemented in QEMU,
      we can just wait for the event instead of polling for migration status
      and libvirt will behave consistently, i.e., migration won't be cancelled
      in case another job started during migration takes long time to finish.
      
      For bug https://bugzilla.redhat.com/show_bug.cgi?id=1083238Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      cc4882f4
    • J
      qemu: Make qemuProcess{Start,Stop}CPUs easier to follow · b5e0532e
      Jiri Denemark 提交于
      As a side effect, the return value of qemuDomainObjEnterMonitorAsync is
      not directly used as the return value of qemuProcess{Start,Stop}CPUs.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      b5e0532e
    • J
      qemuDomainObjBeginNestedJob: Return -2 for temporary failures · dca377db
      Jiri Denemark 提交于
      If job queue is full or waiting for a job times out, the function
      returns -2 so that it can be handled in a different way by callers.
      
      The change is safe since all existing callers of
      qemuDomainObjBeginNestedJob check the return value to be less than zero.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      dca377db
    • J
      qemu: Make qemuDomainObjBeginNestedJob static · 1643b158
      Jiri Denemark 提交于
      It's only used within qemu_domain.c.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      1643b158
    • P
      qemu: snapshot: Terminate job when memory compression program isn't found · 71802685
      Peter Krempa 提交于
      If the compression program for external snapshot memory image isn't
      found we exitted the function without terminating the domain job. This
      caused the domain to be unusable.
      
      The problem was introduced in commit 7df5093f.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1097503
      71802685
    • R
      qemu: extract common PCI handling functions · 353cf370
      Roman Bogorodskiy 提交于
      Move sharable PCI handling functions to domain_addr.[ch], and
      change theirs prefix from 'qemu' to 'vir':
      
       - virDomainPCIAddressAsString;
       - virDomainPCIAddressBusSetModel;
       - virDomainPCIAddressEnsureAddr;
       - virDomainPCIAddressFlagsCompatible;
       - virDomainPCIAddressGetNextSlot;
       - virDomainPCIAddressReleaseSlot;
       - virDomainPCIAddressReserveAddr;
       - virDomainPCIAddressReserveNextSlot;
       - virDomainPCIAddressReserveSlot;
       - virDomainPCIAddressSetFree;
       - virDomainPCIAddressSetGrow;
       - virDomainPCIAddressSlotInUse;
       - virDomainPCIAddressValidate;
      
      The only change here is function names, the implementation itself
      stays untouched.
      
      Extract common allocation code from DomainPCIAddressSetCreate
      into virDomainPCIAddressSetAlloc.
      353cf370
    • R
      qemu: extract PCI handling structs · c453f2d0
      Roman Bogorodskiy 提交于
      Introduce new files (domain_addr.[ch]) to provide
      an API for domain device handling that could be
      shared across the drivers.
      
      A list of data types were extracted and moved there:
      
       qemuDomainPCIAddressBus -> virDomainPCIAddressBus
       qemuDomainPCIAddressBusPtr -> virDomainPCIAddressBusPtr
       _qemuDomainPCIAddressSet -> virDomainPCIAddressSet
       qemuDomainPCIAddressSetPtr -> virDomainPCIAddressSetPtr
       qemuDomainPCIConnectFlags -> virDomainPCIConnectFlags
      
      Also, move the related definitions and macros.
      c453f2d0
  2. 13 5月, 2014 16 次提交
  3. 12 5月, 2014 2 次提交
  4. 10 5月, 2014 1 次提交
    • D
      ESX: add virStorageVolGetInfo in iSCSI backend. · 77e7a75a
      Dawid Zamirski 提交于
      Since the ESX storage implements VMFS and iSCSI storage backends and
      chooses relevant backend dynamically at runtime, there was a segfault
      when issuing vol-info on iSCSI volume due to unimplemented
      virStorageGetInfo function. This patch implements that function that was
      missing in iSCSI backend and returns expected result without a segfault.
      77e7a75a
  5. 07 5月, 2014 12 次提交
  6. 06 5月, 2014 2 次提交