diff options
| author | Jason Wang | 2017-01-20 07:35:28 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2017-02-01 02:37:17 +0100 |
| commit | 04eb6247eb1d95728b1e3e0078ba79f5b6d2ac25 (patch) | |
| tree | 3f4b8cc82f5fc3ebbfe852b9e06e16a8f8c421b4 /include/hw/pci | |
| parent | pci: mark ROMs read-only (diff) | |
| download | qemu-04eb6247eb1d95728b1e3e0078ba79f5b6d2ac25.tar.gz qemu-04eb6247eb1d95728b1e3e0078ba79f5b6d2ac25.tar.xz qemu-04eb6247eb1d95728b1e3e0078ba79f5b6d2ac25.zip | |
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>
Diffstat (limited to 'include/hw/pci')
0 files changed, 0 insertions, 0 deletions
