1. 20 2月, 2019 1 次提交
    • E
      domain: Define explicit flags for saved image xml · 12a51f37
      Eric Blake 提交于
      Commit d2a929d4 (0.9.4) defined virDomainSaveImageGetXMLDesc()'s use
      of @flags as a subset of virDomainXMLFlags, documenting that 2 of the
      3 flags defined at the time would never be valid.  Later, commit
      28f8dfdc (1.0.0) introduced a new flag, VIR_DOMAIN_XML_MIGRATABLE, but
      did not adjust the save image documentation to declare it as invalid.
      Later, commit a67e3872 (3.7.0) blindly copied and pasted the same text
      into virDomainManagedSaveGetXMLDesc.
      
      However, since the flag is not accepted as valid by any of the
      drivers (remote is just passthrough; and qemu is the only supporting
      driver for either API, with support for just VIR_DOMAIN_XML_SECURE),
      it is easier to just define an explicit set of supported flags
      directly related to the save image API rather than trying to borrow
      from live domain API, and risking confusion if even more domain flags
      are added later (in fact, I have an upcoming patch that plans to add
      a new flag to virDomainGetXMLDesc that makes no sense for saved
      images).  We may someday decide that saved images need to support the
      _MIGRATABLE flag, as it is possible to load a saved image with a
      different version of libvirt than the one that created it, but that
      can be a separate patch if it is ever needed.  Meanwhile, it DOES make
      sense to reuse the same flags for SaveImage and for ManagedSave (since
      ManagedSave is really just sugar for creating a normal SaveImage in a
      location controlled by libvirt instead of by the user).
      
      There is no API or ABI impact (since we purposefully used unsigned int
      rather than an enum type in public API, and since the new flag name
      carries the same value as the old reused name).
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      12a51f37
  2. 14 12月, 2018 1 次提交
    • D
      Remove all Author(s): lines from source file headers · 60046283
      Daniel P. Berrangé 提交于
      In many files there are header comments that contain an Author:
      statement, supposedly reflecting who originally wrote the code.
      In a large collaborative project like libvirt, any non-trivial
      file will have been modified by a large number of different
      contributors. IOW, the Author: comments are quickly out of date,
      omitting people who have made significant contribitions.
      
      In some places Author: lines have been added despite the person
      merely being responsible for creating the file by moving existing
      code out of another file. IOW, the Author: lines give an incorrect
      record of authorship.
      
      With this all in mind, the comments are useless as a means to identify
      who to talk to about code in a particular file. Contributors will always
      be better off using 'git log' and 'git blame' if they need to  find the
      author of a particular bit of code.
      
      This commit thus deletes all Author: comments from the source and adds
      a rule to prevent them reappearing.
      
      The Copyright headers are similarly misleading and inaccurate, however,
      we cannot delete these as they have legal meaning, despite being largely
      inaccurate. In addition only the copyright holder is permitted to change
      their respective copyright statement.
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      60046283
  3. 19 11月, 2018 1 次提交
    • J
      lib: Introduce virDomainSetIOThreadParams · ae69bda5
      John Ferlan 提交于
      Create a new API that will allow an adjustment of IOThread
      polling parameters for the specified IOThread. These parameters
      will not be saved in the guest XML. Currently the only parameters
      supported will allow the hypervisor to adjust the parameters used
      to limit and alter the scope of the polling interval. The polling
      interval allows the IOThread to spend more or less time processing
      in the guest.
      
      Based on code originally posted by Pavel Hrdina <phrdina@redhat.com>
      to add virDomainAddIOThreadParams and virDomainModIOThreadParams.
      Modification of those changes to use virDomainSetIOThreadParams
      instead and remove concepts related to saving the data in guest
      XML as well as the way to specifically enable the polling parameters.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
      ae69bda5
  4. 26 6月, 2018 1 次提交
  5. 12 6月, 2018 2 次提交
  6. 28 5月, 2018 3 次提交
  7. 18 4月, 2018 1 次提交
  8. 09 2月, 2018 1 次提交
  9. 19 10月, 2017 1 次提交
  10. 14 10月, 2017 1 次提交
  11. 29 8月, 2017 2 次提交
  12. 26 8月, 2017 1 次提交
  13. 04 8月, 2017 1 次提交
  14. 26 5月, 2017 1 次提交
  15. 18 5月, 2017 1 次提交
    • M
      Introduce virStorageVol{Download,Upload}Flags · 1f43aa67
      Michal Privoznik 提交于
      These flags to APIs will tell if caller wants to use sparse
      stream for storage transfer. At the same time, it's safe to
      enable them in storage driver frontend and rely on our backends
      checking the flags. This way we can enable specific flags only on
      some specific backends, e.g. enable
      VIR_STORAGE_VOL_DOWNLOAD_SPARSE_STREAM for filesystem backend but
      not iSCSI backend.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      1f43aa67
  16. 27 3月, 2017 2 次提交
  17. 21 2月, 2017 1 次提交
    • P
      lib: Add API for specific vCPU hot(un)plug · 8f657259
      Peter Krempa 提交于
      Similarly to domainSetGuestVcpus this commit adds API which allows to
      modify state of individual vcpus rather than just setting the count.
      
      This allows to enable CPUs in specific guest NUMA nodes to achieve any
      necessary configuration.
      8f657259
  18. 10 2月, 2017 2 次提交
  19. 10 1月, 2017 1 次提交
  20. 09 1月, 2017 2 次提交
  21. 21 12月, 2016 1 次提交
    • J
      storage: Introduce virStorageVolInfoFlags · 0c234889
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1332019
      
      This function will essentially be a wrapper to virStorageVolInfo in order
      to provide a mechanism to have the "physical" size of the volume returned
      instead of the "allocation" size. This will provide similar capabilities to
      the virDomainBlockInfo which can return both allocation and physical of a
      domain storage volume.
      
      NB: Since we're reusing the _virStorageVolInfo and not creating a new
      _virStorageVolInfoFlags structure, we'll need to generate the rpc APIs
      remoteStorageVolGetInfoFlags and remoteDispatchStorageVolGetInfoFlags
      (although both were originally created from gendispatch.pl and then
      just copied into daemon/remote.c and src/remote/remote_driver.c).
      
      The new API will allow the usage of a VIR_STORAGE_VOL_GET_PHYSICAL flag
      and will make the decision to return the physical or allocation value
      into the allocation field.
      
      In order to get that physical value, virStorageBackendUpdateVolTargetInfoFD
      adds logic to fill in physical value matching logic in qemuStorageLimitsRefresh
      used by virDomainBlockInfo when the domain is inactive.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      0c234889
  22. 05 10月, 2016 1 次提交
    • J
      remote: Increase bound limit for virDomainGetBlockIoTune · 66bfc7cc
      John Ferlan 提交于
      We are about to add 6 new values to fetch. This will put us over the
      current limit of 16 (we're at 13 now).
      
      Once there are more than 16 parameters, this will affect existing clients
      that attempt to fetch blockiotune config values for the domain from the
      remote host since the server side has no mechanism to determine whether
      the capability for the emulator exists and thus would attempt to return
      all known values from the persistentDef. If attempting to fetch the
      blockiotune values from a running domain, the code will check the emulator
      capabilities and set maxparams (in qemuDomainGetBlockIoTune) appropriately.
      
      On the client side of the remote connection, it uses this constant in
      xdr_remote_domain_get_block_io_tune_ret and virTypedParamsDeserialize
      calls, so if a remote server returns more than 16 parameters, then the
      client will fail with "Unable to decode message payload".
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      66bfc7cc
  23. 24 8月, 2016 2 次提交
  24. 15 8月, 2016 1 次提交
    • J
      Introduce node device update event as top level event · 43a6b37b
      Jovanka Gulicoska 提交于
      This event is emitted when a nodedev XML definition is updated,
      like when cdrom media is changed in a cdrom block device.
      
      Also includes node device update event implementation for udev
      backend, virsh nodedev-event support, and event-test support
      43a6b37b
  25. 02 8月, 2016 1 次提交
  26. 25 6月, 2016 1 次提交
  27. 22 6月, 2016 3 次提交
  28. 17 6月, 2016 1 次提交
  29. 13 4月, 2016 1 次提交
    • P
      Add VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILED event · 5be12071
      Peter Krempa 提交于
      Since we didn't opt to use one single event for device lifecycle for a
      VM we are missing one last event if the device removal failed. This
      event will be emitted once we asked to eject the device but for some
      reason it is not possible.
      5be12071
  30. 31 3月, 2016 1 次提交