62c5e181ee
Function that convert a number of target_pages into its size in MiB. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-Id: <20230511141208.17779-2-quintela@redhat.com>
23 lines
547 B
C
23 lines
547 B
C
/*
|
|
* Target page sizes and friends for non target files
|
|
*
|
|
* Copyright (c) 2017 Red Hat Inc
|
|
*
|
|
* Authors:
|
|
* David Alan Gilbert <dgilbert@redhat.com>
|
|
* Juan Quintela <quintela@redhat.com>
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#ifndef EXEC_TARGET_PAGE_H
|
|
#define EXEC_TARGET_PAGE_H
|
|
|
|
size_t qemu_target_page_size(void);
|
|
int qemu_target_page_bits(void);
|
|
int qemu_target_page_bits_min(void);
|
|
|
|
size_t qemu_target_pages_to_MiB(size_t pages);
|
|
#endif
|