summary refs log tree commit diff stats
path: root/scripts/qapi-commands.py
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2017-01-20 14:35:28 +0800
committerMichael S. Tsirkin <mst@redhat.com>2017-02-01 03:37:17 +0200
commit04eb6247eb1d95728b1e3e0078ba79f5b6d2ac25 (patch)
tree3f4b8cc82f5fc3ebbfe852b9e06e16a8f8c421b4 /scripts/qapi-commands.py
parentec42813028d9ede3f9f73b8c943b00ff235ba0c1 (diff)
downloadfocaccia-qemu-04eb6247eb1d95728b1e3e0078ba79f5b6d2ac25.tar.gz
focaccia-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 'scripts/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions