aboutsummaryrefslogtreecommitdiff
path: root/linux-user/qemu.h
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2012-12-25 16:58:44 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2012-12-25 16:58:44 +0200
commitdd55a01d2af35f5e9dabb2b745770afd008c9e24 (patch)
tree2bcab272d5cd94aab77f89220f1b8a3bff3109ac /linux-user/qemu.h
parent07d16a97127c9f56263ed5d8c697ff98a748e480 (diff)
Imported Upstream version 1.2.0-2012.09upstream/1.2.0-2012.09
Diffstat (limited to 'linux-user/qemu.h')
-rw-r--r--linux-user/qemu.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/linux-user/qemu.h b/linux-user/qemu.h
index 7b299b7..69b27d7 100644
--- a/linux-user/qemu.h
+++ b/linux-user/qemu.h
@@ -204,11 +204,18 @@ int get_osversion(void);
void fork_start(void);
void fork_end(int child);
-/* Return true if the proposed guest_base is suitable for the guest.
- * The guest code may leave a page mapped and populate it if the
- * address is suitable.
+/* 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.
*/
-bool guest_validate_base(unsigned long guest_base);
+unsigned long init_guest_space(unsigned long host_start,
+ unsigned long host_size,
+ unsigned long guest_start,
+ bool fixed);
#include "qemu-log.h"