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-27 18:08:00 +01:00
2017-01-27 18:07:59 +01:00
2017-01-20 11:15:06 +00:00
2017-01-10 14:52:34 +00:00
2017-01-27 18:07:59 +01:00
2017-01-27 18:07:59 +01:00
2017-01-27 18:07:59 +01:00
2017-01-27 18:07:59 +01:00
2017-01-24 17:54:47 +00:00
2017-02-01 03:37:17 +02:00
2017-01-24 23:26:52 +03:00
2017-01-27 18:07:59 +01:00
2017-01-25 10:42:26 +00:00