aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorJoe Jin <[email protected]>2018-10-16 15:21:16 -0700
committerKonrad Rzeszutek Wilk <[email protected]>2018-10-18 23:51:39 +0000
commit7250f422da0480d8512b756640f131b9b893ccda (patch)
treeddaacea5ceed2d431e2c552c301323d9ece97737 /tools/perf/scripts/python/exported-sql-viewer.py
parent35a7f35ad1b150ddf59a41dcac7b2fa32982be0e (diff)
xen-swiotlb: use actually allocated size on check physical continuous
xen_swiotlb_{alloc,free}_coherent() allocate/free memory based on the order of the pages and not size argument (bytes). This is inconsistent with range_straddles_page_boundary and memset which use the 'size' value, which may lead to not exchanging memory with Xen (range_straddles_page_boundary() returned true). And then the call to xen_swiotlb_free_coherent() would actually try to exchange the memory with Xen, leading to the kernel hitting an BUG (as the hypercall returned an error). This patch fixes it by making the 'size' variable be of the same size as the amount of memory allocated. CC: [email protected] Signed-off-by: Joe Jin <[email protected]> Cc: Konrad Rzeszutek Wilk <[email protected]> Cc: Boris Ostrovsky <[email protected]> Cc: Christoph Helwig <[email protected]> Cc: Dongli Zhang <[email protected]> Cc: John Sobecki <[email protected]> Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions