1. 26 6月, 2020 1 次提交
  2. 23 6月, 2020 2 次提交
  3. 17 6月, 2020 1 次提交
  4. 10 6月, 2020 3 次提交
  5. 18 5月, 2020 1 次提交
  6. 13 5月, 2020 1 次提交
  7. 12 5月, 2020 1 次提交
    • P
      qemu: capabilities: Introduce QEMU_CAPS_VIRTIO_BLK_SCSI_DEFAULT_DISABLED · 3b7ca6d4
      Peter Krempa 提交于
      Historically the 'scsi' passthrough feature of virtio-blk-pci
      was enabled by default. Libvirt was disabling it due to security
      implications outlined in libvirt commit v0.9.9-4-g177db087 if it was
      not explicitly requested. In qemu commit v2.4.0-1566-ged65fd1a27 the
      default value was changed to disabled in preparation for virtio-1.
      Starting from QEMU-5.0 the 'scsi' property was also deprecated. There
      replacement for the functionality is to use 'virtio-scsi' for the
      purpose. This isn't a direct replacement though.
      
      Add capability named QEMU_CAPS_VIRTIO_BLK_SCSI_DEFAULT_DISABLED which
      allows us to stop formatting the 'scsi=' property if it's disabled by
      default and not requested so that we don't use deprecated features.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      3b7ca6d4
  8. 28 4月, 2020 2 次提交
  9. 27 4月, 2020 3 次提交
    • D
      qemu: Add capability for IBS pSeries feature · 199dd6f6
      Daniel Henrique Barboza 提交于
      IBS (Indirect Branch Speculation) is the last capability added
      in QEMU 2.12 related to Spectre mitigation for Power. It was
      added in commit 4be8d4e7d935.
      
      This patch introduces it as QEMU_CAPS_MACHINE_PSERIES_CAP_IBS.
      Like CFPC and SBBC, users might want to tune in IBS based on
      their HW and guest OS requirements, and it's better to do it
      so in a proper Libvirt feature than to put QEMU arguments
      in the middle of the domain XML.
      Signed-off-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      199dd6f6
    • D
      qemu: Add capability for SBBC pSeries feature · 249a5c78
      Daniel Henrique Barboza 提交于
      SBBC (Speculation Barrier Bounds Checking) is another capability
      related to Spectre mitigation efforts in Power processors. It
      was implemented in QEMU 2.12 by commit 09114fd81799.
      
      This patch introduces it as QEMU_CAPS_MACHINE_PSERIES_CAP_SBBC to
      be implemented in the next patch. Like the case with the now
      implemented CFPC, exposing this feature in the XML allows for
      a cleaner way for users to tune the SBBC accordingly, given
      that not all hypervisor and guest setups supports this
      Spectre mitigation.
      Signed-off-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      249a5c78
    • D
      qemu: Add capability for CFPC pSeries feature · a0a2c8ab
      Daniel Henrique Barboza 提交于
      CFPC (Cache Flush on Privilege Change) is one of the capabilities
      added to QEMU to mitigate Spectre vulnerabilities in Power chips.
      It was implemented in QEMU 2.12 by commit 6898aed77f46.
      
      This capability is still used today due to differences in how
      the host setup (hardware and firmware/kernel) can handle this
      mitigation. Its default value also varies with the pseries machine
      version of the time. There's also certain OSes, like AIX, that
      might not support the default value of the pseries machine the
      guest uses.
      
      Exposing this in the Libvirt XML as a feature will allow users to tune
      CFPC values in a cleaner way, instead of hacking parameters in
      <qemu:commandline> elements.
      Signed-off-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      a0a2c8ab
  10. 24 4月, 2020 1 次提交
  11. 13 4月, 2020 1 次提交
  12. 08 4月, 2020 1 次提交
  13. 06 4月, 2020 1 次提交
  14. 01 4月, 2020 1 次提交
  15. 17 3月, 2020 1 次提交
  16. 13 3月, 2020 1 次提交
  17. 04 3月, 2020 2 次提交
  18. 14 2月, 2020 1 次提交
  19. 07 2月, 2020 1 次提交
  20. 06 2月, 2020 1 次提交
  21. 30 1月, 2020 2 次提交
    • J
      Add a space before ending a comment · 49882b33
      Ján Tomko 提交于
      Also add a space after the start in some of the cases.
      Signed-off-by: NJán Tomko <jtomko@redhat.com>
      Reviewed-by: NPeter Krempa <pkrempa@redhat.com>
      49882b33
    • L
      qemu: add capabilities flag for failover feature · cad65f22
      Laine Stump 提交于
      Presence of the virtio-net-pci option called "failover" indicates
      support in a qemu binary of a simplistic bonding of a virtio-net
      device with another PCI device. This feature allows migration of
      guests that have a network device assigned to a guest with VFIO, by
      creating a network bond device in the guest consisting of the
      VFIO-assigned device and a virtio-net-pci device, then temporarily
      (and automatically) unplugging the VFIO net device prior to migration
      (and hotplugging an equivalent device on the migration
      destination). (The feature is called "failover" because the bond
      device uses the vfio-pci netdev for normal guest networking, but
      "fails over" to the virtio-net-pci netdev once the vfio-pci device is
      unplugged for migration.)
      
      Full functioning of the feature also requires support in the
      virtio-net driver in the guest OS (since that is where the bond device
      resides), but if the "failover" commandline option is present for the
      virtio-net-pci device in qemu, at least the qemu part of the feature
      is available, and libvirt can add the proper options to both the
      virtio-net-pci and vfio-pci device commandlines to indicate qemu
      should attempt doing the failover during migration.
      
      This patch just adds the qemu capabilities flag "virtio-net.failover".
      Signed-off-by: NLaine Stump <laine@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      cad65f22
  22. 27 1月, 2020 1 次提交
  23. 25 1月, 2020 1 次提交
  24. 24 1月, 2020 1 次提交
    • M
      qemu_capabilities: Rework domain caps cache · c7600931
      Michal Privoznik 提交于
      Since v5.6.0-48-g270583ed we try to cache domain capabilities,
      i.e. store filled virDomainCaps in a hash table in virQEMUCaps
      for future use. However, there's a race condition in the way it's
      implemented. We use virQEMUCapsGetDomainCapsCache() to obtain the
      pointer to the hash table, then we search the hash table for
      cached data and if none is found the domcaps is constructed and
      put into the table. Problem is that this is all done without any
      locking, so if there are two threads trying to do the same, one
      will succeed and the other will fail inserting the data into the
      table.
      
      Also, the API looks a bit fishy - obtaining pointer to the hash
      table is dangerous.
      
      The solution is to use a mutex that guards the whole operation
      with the hash table. Then, the API can be changes to return
      virDomainCapsPtr directly.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1791790Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NPeter Krempa <pkrempa@redhat.com>
      c7600931
  25. 23 1月, 2020 1 次提交
  26. 16 1月, 2020 1 次提交
  27. 24 12月, 2019 1 次提交
  28. 17 12月, 2019 1 次提交
  29. 09 12月, 2019 3 次提交
  30. 03 12月, 2019 1 次提交