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>
This commit is contained in:
Richard Henderson 2025-03-27 18:52:13 -05:00
parent 6effa87475
commit 12eeb04ab4
5 changed files with 21 additions and 9 deletions

View file

@ -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