1. 07 10月, 2019 2 次提交
  2. 30 9月, 2019 1 次提交
  3. 25 9月, 2019 1 次提交
  4. 19 9月, 2019 1 次提交
  5. 06 9月, 2019 2 次提交
  6. 14 8月, 2019 1 次提交
  7. 07 8月, 2019 1 次提交
    • C
      qemu: conf: Cache domCaps in qemuCaps · 270583ed
      Cole Robinson 提交于
      qemuCaps is tied to a binary on disk. domCaps is tied to a combo
      of binary+machine+arch+virttype values. For the qemu driver this almost
      entirely translates to a permutation of qemuCaps though
      
      Upcoming patches want to use the domCaps data store at XML validate
      time, but we need to cache the data so we aren't repeatedly
      regenerating it.
      
      Add a domCapsCache hash table to qemuCaps. This ensures that the domCaps
      cache is blown away whenever qemuCaps needs to be regenerated. Similarly
      when qemuCaps is invalidated, the next call to virQEMUCapsCacheLookup
      will unref qemuCaps and free our cache as well.
      
      Adjust virQEMUDriverGetDomainCapabilities to search the cache and add
      to it if we don't find a hit.
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      Reviewed-by: NReviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      270583ed
  8. 15 7月, 2019 1 次提交
  9. 20 6月, 2019 4 次提交
  10. 19 6月, 2019 1 次提交
  11. 12 6月, 2019 1 次提交
    • E
      backup: Add two new qemu capabilities · 6abda7a4
      Eric Blake 提交于
      Add two capabilities for testing features required for the upcoming
      virDomainBackupBegin: use block-dirty-bitmap-merge as the generic
      witness of bitmap support needed for checkpoints (since all of the
      bitmap management functionalities were finalized in the same qemu 4.0
      release), and the bitmap parameter to nbd-server-add for pull-mode
      backup support.  Even though both capabilities are likely to be
      present or absent together (that is, it is unlikely to encounter a
      qemu that backports only one of the two), it still makes sense to keep
      two capabilities as the two uses are orthogonal (full backups don't
      require checkpoints, push mode backups don't require NBD bitmap
      support, and checkpoints can be used for more than just incremental
      backups).
      
      Existing code is not affected by the new capabilities.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Acked-by: NPeter Krempa <pkrempa@redhat.com>
      6abda7a4
  12. 03 6月, 2019 1 次提交
  13. 25 4月, 2019 1 次提交
  14. 15 4月, 2019 2 次提交
  15. 12 4月, 2019 2 次提交
  16. 10 4月, 2019 2 次提交
    • M
      domain capabilities: Expose firmware auto selection feature · 5b9819ee
      Michal Privoznik 提交于
      If a management application wants to use firmware auto selection
      feature it can't currently know if the libvirtd it's talking to
      support is or not. Moreover, it doesn't know which values that
      are accepted for the @firmware attribute of <os/> when parsing
      will allow successful start of the domain later, i.e. if the mgmt
      application wants to use 'bios' whether there exists a FW
      descriptor in the system that describes bios.
      
      This commit then adds 'firmware' enum to <os/> element in
      <domainCapabilities/> XML like this:
      
        <enum name='firmware'>
          <value>bios</value>
          <value>efi</value>
        </enum>
      
      We can see both 'bios' and 'efi' listed which means that there
      are descriptors for both found in the system (matched with the
      machine type and architecture reported in the domain capabilities
      earlier and not shown here).
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Acked-by: NLaszlo Ersek <lersek@redhat.com>
      5b9819ee
    • P
      util: Move enum convertors into virenum.(c|h) · 285c5f28
      Peter Krempa 提交于
      virutil.(c|h) is a very gross collection of random code. Remove the enum
      handlers from there so we can limit the scope where virtutil.h is used.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      285c5f28
  17. 03 4月, 2019 4 次提交
  18. 28 3月, 2019 1 次提交
    • M
      qemu_capabilities; Drop virQEMUCapsSetVAList · 087a74e1
      Michal Privoznik 提交于
      There is one specific caller (testInfoSetArgs() in
      qemuxml2argvtest.c) which expect the va_list argument to change
      after returning from the virQEMUCapsSetVAList() function.
      However, since we are passing plain va_list this is not
      guaranteed. The man page of stdarg(3) says:
      
        If ap is passed to a function that uses va_arg(ap,type), then
        the value of ap is undefined after the return of that function.
      
      (ap is a variable of type va_list)
      
      I've seen this in action in fact: on i686 the qemuxml2argvtest
      fails on the second test case because testInfoSetArgs() sees
      ARG_QEMU_CAPS and calls virQEMUCapsSetVAList to process the
      capabilities (in this case there's just one
      QEMU_CAPS_SECCOMP_BLACKLIST). But since the changes are not
      reflected in the caller, in the next iteration testInfoSetArgs()
      sees the QEMU capability and not ARG_END.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      087a74e1
  19. 22 3月, 2019 1 次提交
  20. 12 3月, 2019 1 次提交
  21. 05 3月, 2019 1 次提交
    • C
      qemu: capabilities: Add virtio/vhost {non-}transitional · f15111f6
      Cole Robinson 提交于
      Add a single QEMU_CAPS_VIRTIO_PCI_TRANSITIONAL that
      will be set if any of the following qemu devices are found:
      
          virtio-blk-pci-transitional
          virtio-blk-pci-non-transitional
          virtio-net-pci-transitional
          virtio-net-pci-non-transitional
          vhost-scsi-pci-transitional
          vhost-scsi-pci-non-transitional
          virtio-rng-pci-transitional
          virtio-rng-pci-non-transitional
          virtio-9p-pci-transitional
          virtio-9p-pci-non-transitional
          virtio-balloon-pci-transitional
          virtio-balloon-pci-non-transitional
          vhost-vsock-pci-transitional
          vhost-vsock-pci-non-transitional
          virtio-input-host-pci-transitional
          virtio-input-host-pci-non-transitional
          virtio-scsi-pci-transitional
          virtio-scsi-pci-non-transitional
          virtio-serial-pci-transitional
          virtio-serial-pci-non-transitional
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      f15111f6
  22. 08 2月, 2019 7 次提交
  23. 02 1月, 2019 1 次提交