diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-03-23 19:57:34 +0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-04-06 14:31:43 +0200 |
commit | ec5f7ca857a396ae23ce01a8f84fbae12bdce0f4 (patch) | |
tree | 477627f6b515b56cfa143de536394e251b5ec4d0 /include/exec | |
parent | 1f269c1484c4d381d61a7d9b97f289a94e0d43cb (diff) | |
download | qemu-ec5f7ca857a396ae23ce01a8f84fbae12bdce0f4.zip qemu-ec5f7ca857a396ae23ce01a8f84fbae12bdce0f4.tar.gz qemu-ec5f7ca857a396ae23ce01a8f84fbae12bdce0f4.tar.bz2 |
include: move target page bits declaration to page-vary.h
Since the implementation unit is page-vary.c.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220323155743.1585078-24-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec')
-rw-r--r-- | include/exec/page-vary.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/exec/page-vary.h b/include/exec/page-vary.h index c22a7a7..ebbe9b1 100644 --- a/include/exec/page-vary.h +++ b/include/exec/page-vary.h @@ -31,4 +31,22 @@ extern bool set_preferred_target_page_bits_common(int bits); extern void finalize_target_page_bits_common(int min); #endif +/** + * set_preferred_target_page_bits: + * @bits: number of bits needed to represent an address within the page + * + * Set the preferred target page size (the actual target page + * size may be smaller than any given CPU's preference). + * Returns true on success, false on failure (which can only happen + * if this is called after the system has already finalized its + * choice of page size and the requested page size is smaller than that). + */ +bool set_preferred_target_page_bits(int bits); + +/** + * finalize_target_page_bits: + * Commit the final value set by set_preferred_target_page_bits. + */ +void finalize_target_page_bits(void); + #endif /* EXEC_PAGE_VARY_H */ |