qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 55efcc: vfio: convert to 128 bit arithmetic c


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 55efcc: vfio: convert to 128 bit arithmetic calculations w...
Date: Tue, 29 Mar 2016 10:30:04 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 55efcc537d330f1659d3fa171a66eebc9327e91b
      
https://github.com/qemu/qemu/commit/55efcc537d330f1659d3fa171a66eebc9327e91b
  Author: Bandan Das <address@hidden>
  Date:   2016-03-28 (Mon, 28 Mar 2016)

  Changed paths:
    M hw/vfio/common.c

  Log Message:
  -----------
  vfio: convert to 128 bit arithmetic calculations when adding mem regions

vfio_listener_region_add for a iommu mr results in
an overflow assert since iommu memory region is initialized
with UINT64_MAX. Convert calculations to 128 bit arithmetic
for iommu memory regions and let int128_get64 assert for non iommu
regions if there's an overflow.

Suggested-by: Alex Williamson <address@hidden>
Signed-off-by: Bandan Das <address@hidden>
[missed (end - 1) on 2nd trace call, move llsize closer to use]
Signed-off-by: Alex Williamson <address@hidden>


  Commit: 7cd592bc6504b64f55570325674240a72a1aa037
      
https://github.com/qemu/qemu/commit/7cd592bc6504b64f55570325674240a72a1aa037
  Author: Peter Maydell <address@hidden>
  Date:   2016-03-29 (Tue, 29 Mar 2016)

  Changed paths:
    M hw/vfio/common.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/awilliam/tags/vfio-update-20160328.0' 
into staging

VFIO updates 2016-03-28

 - Use 128bit math to avoid asserts with IOMMU regions (Bandan Das)

# gpg: Signature made Mon 28 Mar 2016 23:16:52 BST using RSA key ID 3BB08B22
# gpg: Good signature from "Alex Williamson <address@hidden>"
# gpg:                 aka "Alex Williamson <address@hidden>"
# gpg:                 aka "Alex Williamson <address@hidden>"
# gpg:                 aka "Alex Williamson <address@hidden>"

* remotes/awilliam/tags/vfio-update-20160328.0:
  vfio: convert to 128 bit arithmetic calculations when adding mem regions

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/84a5a8014801...7cd592bc6504

reply via email to

[Prev in Thread] Current Thread [Next in Thread]