diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-03-27 18:52:13 -0500 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-04-23 15:04:57 -0700 |
| commit | 12eeb04ab4dd98f802ffc503f0da948a8c843086 (patch) | |
| tree | e829697b051187074dfb1ff871d60b08366bc41a /page-vary-target.c | |
| parent | 6effa87475986093007e3f2dcfd1f781de0993b1 (diff) | |
| download | focaccia-qemu-12eeb04ab4dd98f802ffc503f0da948a8c843086.tar.gz focaccia-qemu-12eeb04ab4dd98f802ffc503f0da948a8c843086.zip | |
page-vary: Move and rename qemu_target_page_bits_min
Rename to migration_legacy_page_bits, to make it clear that we cannot change the value without causing a migration break. Move to page-vary.h and page-vary-target.c. Define via TARGET_PAGE_BITS if not TARGET_PAGE_BITS_VARY. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'page-vary-target.c')
| -rw-r--r-- | page-vary-target.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/page-vary-target.c b/page-vary-target.c index 84ddeb7c26..6251d948cf 100644 --- a/page-vary-target.c +++ b/page-vary-target.c @@ -23,6 +23,15 @@ #include "exec/page-vary.h" #include "exec/target_page.h" +int migration_legacy_page_bits(void) +{ +#ifdef TARGET_PAGE_BITS_VARY + return TARGET_PAGE_BITS_MIN; +#else + return TARGET_PAGE_BITS; +#endif +} + bool set_preferred_target_page_bits(int bits) { #ifdef TARGET_PAGE_BITS_VARY |