diff options
author | Xie Yongji <[email protected]> | 2021-08-09 18:09:23 +0800 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2021-09-05 16:23:08 -0400 |
commit | 0d8c9e7d4b403f10f5c277efefd787244198a00c (patch) | |
tree | 1516b93df3fb0fac37843d7367974936d923ce98 /tools/perf/util/trace-event-scripting.c | |
parent | 23b228cb89fdad2140b6b73254ecaf5fb05de5fe (diff) |
vdpa_sim: Use iova_shift() for the size passed to alloc_iova()
The size passed to alloc_iova() should be the size of page frames.
Now we use byte granularity for the iova domain, so it's safe to
pass the size in bytes to alloc_iova(). But it would be better to use
iova_shift() for the size to avoid future bugs if we change granularity.
Signed-off-by: Xie Yongji <[email protected]>
Reviewed-by: Stefano Garzarella <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michael S. Tsirkin <[email protected]>
Acked-by: Jason Wang <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions