aboutsummaryrefslogtreecommitdiff
path: root/linux-user/qemu.h
diff options
context:
space:
mode:
authorMeador Inge <meadori@codesourcery.com>2012-07-26 16:50:01 +0000
committerPeter Maydell <peter.maydell@linaro.org>2012-08-14 20:26:55 +0100
commitdce104013d1b393d39a89c4417d7771d928c08f3 (patch)
treeb626753ce53025a28859fb6c94562ed6bd27d451 /linux-user/qemu.h
parentcd8e407d24657569e0d6e323b2e8c274fafab590 (diff)
linux-user: Factor out guest space probing into a function
Signed-off-by: Meador Inge <meadori@codesourcery.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'linux-user/qemu.h')
-rw-r--r--linux-user/qemu.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/linux-user/qemu.h b/linux-user/qemu.h
index 7b299b7bc3..7d4e23e4c1 100644
--- a/linux-user/qemu.h
+++ b/linux-user/qemu.h
@@ -210,6 +210,19 @@ void fork_end(int child);
*/
bool guest_validate_base(unsigned long guest_base);
+/* Creates the initial guest address space in the host memory space using
+ * the given host start address hint and size. The guest_start parameter
+ * specifies the start address of the guest space. guest_base will be the
+ * difference between the host start address computed by this function and
+ * guest_start. If fixed is specified, then the mapped address space must
+ * start at host_start. The real start address of the mapped memory space is
+ * returned or -1 if there was an error.
+ */
+unsigned long init_guest_space(unsigned long host_start,
+ unsigned long host_size,
+ unsigned long guest_start,
+ bool fixed);
+
#include "qemu-log.h"
/* strace.c */