Jason Wang
04eb6247eb
intel_iommu: fix and simplify size calculation in process_device_iotlb_desc()
...
We don't use 1ULL which is wrong during size calculation. Fix it, and
while at it, switch to use cto64() and adds a comments to make it
simpler and easier to be understood.
Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
2017-02-01 03:37:17 +02:00
..
2017-01-25 17:54:14 +00:00
2017-01-23 21:25:37 -02:00
2016-10-04 13:28:07 +01:00
2016-12-20 21:52:12 +01:00
2017-01-30 10:23:20 +00:00
2017-01-11 09:19:03 +01:00
2017-01-27 15:20:22 +00:00
2017-01-27 18:08:00 +01:00
2017-01-30 10:23:20 +00:00
2017-01-27 18:07:59 +01:00
2017-01-27 18:07:31 +01:00
2016-07-12 16:20:46 +02:00
2017-01-31 15:57:27 +02:00
2017-01-27 15:29:08 +00:00
2017-01-09 11:40:20 +00:00
2017-01-20 11:15:06 +00:00
2017-02-01 03:37:17 +02:00
2016-11-14 11:15:54 -05:00
2017-01-10 14:52:34 +00:00
2017-01-30 10:23:20 +00:00
2016-05-18 15:04:27 +03:00
2016-11-18 17:50:09 +02:00
2017-01-27 18:07:59 +01:00
2017-01-27 18:07:59 +01:00
2017-01-20 10:36:38 +08:00
2016-11-01 19:21:09 +02:00
2016-10-28 18:17:24 +03:00
2017-01-27 18:07:59 +01:00
2017-01-27 18:07:59 +01:00
2016-03-22 22:20:17 +01:00
2017-01-27 15:29:08 +00:00
2017-01-24 13:10:35 -08:00
2017-01-24 17:54:47 +00:00
2016-03-22 22:20:17 +01:00
2017-02-01 03:37:17 +02:00
2017-01-24 18:00:31 +00:00
2016-11-23 12:00:48 +11:00
2016-01-29 15:07:25 +00:00
2017-02-01 03:37:17 +02:00
2017-01-24 23:26:52 +03:00
2017-01-27 18:07:31 +01:00
2016-09-22 18:13:08 +01:00
2017-01-13 14:24:37 +00:00
2017-01-16 17:52:35 +01:00
2016-11-16 12:09:58 -02:00
2017-01-18 22:03:44 +01:00
2017-01-27 15:20:20 +00:00
2017-01-27 18:07:30 +01:00
2016-10-28 18:17:24 +03:00
2016-09-15 15:32:22 +03:00
2016-10-28 18:17:24 +03:00
2017-01-27 18:07:59 +01:00
2017-01-24 23:26:53 +03:00
2017-01-25 10:42:26 +00:00
2016-12-22 16:00:23 +01:00
2016-11-22 10:29:39 -08:00
2016-09-29 11:43:17 +08:00
2017-01-15 13:01:55 -08:00
2017-01-16 17:52:35 +01:00