1. 20 6月, 2019 1 次提交
  2. 13 6月, 2019 1 次提交
  3. 12 6月, 2019 2 次提交
  4. 03 6月, 2019 4 次提交
  5. 23 5月, 2019 1 次提交
  6. 10 5月, 2019 1 次提交
  7. 09 5月, 2019 14 次提交
  8. 07 5月, 2019 1 次提交
    • E
      conf: Add parameter to virDomainDiskSourceFormat · 1ec3e397
      Eric Blake 提交于
      Commits 4bc42986 and 218c81ea removed virDomainStorageSourceFormat on
      the grounds that there were no external callers; however, the upcoming
      backup code wants to output a <target> (push mode) or <scratch> (pull
      mode) element that is in all other respects identical to a domain's
      <source> element, where the previous virDomainStorageSourceFormat fit
      the bill nicely. But rather than reverting the commits, it's easier to
      just add an additional parameter for the element name to use, and
      update all callers.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      1ec3e397
  9. 17 4月, 2019 3 次提交
  10. 15 4月, 2019 2 次提交
    • D
      PPC64 support for NVIDIA V100 GPU with NVLink2 passthrough · 1a922648
      Daniel Henrique Barboza 提交于
      The NVIDIA V100 GPU has an onboard RAM that is mapped into the
      host memory and accessible as normal RAM via an NVLink2 bridge. When
      passed through in a guest, QEMU puts the NVIDIA RAM window in a
      non-contiguous area, above the PCI MMIO area that starts at 32TiB.
      This means that the NVIDIA RAM window starts at 64TiB and go all the
      way to 128TiB.
      
      This means that the guest might request a 64-bit window, for each PCI
      Host Bridge, that goes all the way to 128TiB. However, the NVIDIA RAM
      window isn't counted as regular RAM, thus this window is considered
      only for the allocation of the Translation and Control Entry (TCE).
      For more information about how NVLink2 support works in QEMU,
      refer to the accepted implementation [1].
      
      This memory layout differs from the existing VFIO case, requiring its
      own formula. This patch changes the PPC64 code of
      @qemuDomainGetMemLockLimitBytes to:
      
      - detect if we have a NVLink2 bridge being passed through to the
      guest. This is done by using the @ppc64VFIODeviceIsNV2Bridge function
      added in the previous patch. The existence of the NVLink2 bridge in
      the guest means that we are dealing with the NVLink2 memory layout;
      
      - if an IBM NVLink2 bridge exists, passthroughLimit is calculated in a
      different way to account for the extra memory the TCE table can alloc.
      The 64TiB..128TiB window is more than enough to fit all possible
      GPUs, thus the memLimit is the same regardless of passing through 1 or
      multiple V100 GPUs.
      
      Further reading explaining the background
      [1] https://lists.gnu.org/archive/html/qemu-devel/2019-03/msg03700.html
      [2] https://www.redhat.com/archives/libvir-list/2019-March/msg00660.html
      [3] https://www.redhat.com/archives/libvir-list/2019-April/msg00527.htmlSigned-off-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      1a922648
    • D
      qemu_domain: NVLink2 bridge detection function for PPC64 · cc9f0380
      Daniel Henrique Barboza 提交于
      The NVLink2 support in QEMU implements the detection of NVLink2
      capable devices by verifying the attributes of the VFIO mem region
      QEMU allocates for the NVIDIA GPUs. To properly allocate an
      adequate amount of memLock, Libvirt needs this information before
      a QEMU instance is even created, thus querying QEMU is not
      possible and opening a VFIO window is too much.
      
      An alternative is presented in this patch. Making the following
      assumptions:
      
      - if we want GPU RAM to be available in the guest, an NVLink2 bridge
      must be passed through;
      
      - an unknown PCI device can be classified as a NVLink2 bridge
      if its device tree node has 'ibm,gpu', 'ibm,nvlink',
      'ibm,nvlink-speed' and 'memory-region'.
      
      This patch introduces a helper called @ppc64VFIODeviceIsNV2Bridge
      that checks the device tree node of a given PCI device and
      check if it meets the criteria to be a NVLink2 bridge. This
      new function will be used in a follow-up patch that, using the
      first assumption, will set up the rlimits of the guest
      accordingly.
      Signed-off-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      cc9f0380
  11. 12 4月, 2019 1 次提交
  12. 10 4月, 2019 2 次提交
  13. 04 4月, 2019 1 次提交
  14. 03 4月, 2019 6 次提交