summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorRichard Henderson2022-09-17 14:25:12 +0200
committerRichard Henderson2022-10-26 03:11:28 +0200
commit50d4c8c1d433ae843a6b86a65467c507095f65f1 (patch)
tree6c5fe4a6b10dc82d545a62523d5620c4b72b7adc /include/exec
parentinclude/qemu/thread: Use qatomic_* functions (diff)
downloadqemu-50d4c8c1d433ae843a6b86a65467c507095f65f1.tar.gz
qemu-50d4c8c1d433ae843a6b86a65467c507095f65f1.tar.xz
qemu-50d4c8c1d433ae843a6b86a65467c507095f65f1.zip
accel/tcg: Make page_alloc_target_data allocation constant
Use a constant target data allocation size for all pages. This will be necessary to reduce overhead of page tracking. Since TARGET_PAGE_DATA_SIZE is now required, we can use this to omit data tracking for targets that don't require it. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/exec')
-rw-r--r--include/exec/cpu-all.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h
index 16b7df41bf..854adc4ac2 100644
--- a/include/exec/cpu-all.h
+++ b/include/exec/cpu-all.h
@@ -281,19 +281,18 @@ void page_reset_target_data(target_ulong start, target_ulong end);
int page_check_range(target_ulong start, target_ulong len, int flags);
/**
- * page_alloc_target_data(address, size)
+ * page_alloc_target_data(address)
* @address: guest virtual address
- * @size: size of data to allocate
*
- * Allocate @size bytes of out-of-band data to associate with the
- * guest page at @address. If the page is not mapped, NULL will
+ * Allocate TARGET_PAGE_DATA_SIZE bytes of out-of-band data to associate
+ * with the guest page at @address. If the page is not mapped, NULL will
* be returned. If there is existing data associated with @address,
* no new memory will be allocated.
*
* The memory will be freed when the guest page is deallocated,
* e.g. with the munmap system call.
*/
-void *page_alloc_target_data(target_ulong address, size_t size);
+void *page_alloc_target_data(target_ulong address);
/**
* page_get_target_data(address)