summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRichard Henderson2019-09-19 22:30:29 +0200
committerRichard Henderson2019-10-28 10:26:02 +0100
commit7886cefe5ddd238c64d07eb037804f1aef24755c (patch)
tree5faf0102157c73268c1cc3922083be184688d1d8 /include
parentcpu: use ROUND_UP() to define xxx_PAGE_ALIGN (diff)
downloadqemu-7886cefe5ddd238c64d07eb037804f1aef24755c.tar.gz
qemu-7886cefe5ddd238c64d07eb037804f1aef24755c.tar.xz
qemu-7886cefe5ddd238c64d07eb037804f1aef24755c.zip
exec: Split out variable page size support to exec-vary.c
The next patch will play a trick with "const" that will confuse the compiler about the uses of target_page_bits within exec.c. Moving everything to a new file prevents this confusion. No functional change so far. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/qemu-common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/qemu-common.h b/include/qemu-common.h
index 8d84db90b0..082da59e85 100644
--- a/include/qemu-common.h
+++ b/include/qemu-common.h
@@ -75,6 +75,12 @@ void cpu_exec_step_atomic(CPUState *cpu);
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);
+
+/**
* Sends a (part of) iovec down a socket, yielding when the socket is full, or
* Receives data into a (part of) iovec from a socket,
* yielding when there is no data in the socket.