path: root/translate-all.c
diff options
authorPaolo Bonzini <pbonzini@redhat.com>2015-08-11 10:57:52 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-09-09 15:34:56 +0200
commit8fd19e6cfd5b6cdf028c6ac2ff4157ed831ea3a6 (patch)
treee8a94c171102729696fec8984437a40f7b6dd7b6 /translate-all.c
parent756920876f60829fad0d15df4f3fa205077a8131 (diff)
exec: make mmap_lock/mmap_unlock globally available
There is some iffy lock hierarchy going on in translate-all.c. To fix it, we need to take the mmap_lock in cpu-exec.c. Make the functions globally available. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'translate-all.c')
1 files changed, 0 insertions, 5 deletions
diff --git a/translate-all.c b/translate-all.c
index a12139ba01..e3c5c5e20a 100644
--- a/translate-all.c
+++ b/translate-all.c
@@ -466,11 +466,6 @@ static inline PageDesc *page_find(tb_page_addr_t index)
return page_find_alloc(index, 0);
-#if !defined(CONFIG_USER_ONLY)
-#define mmap_lock() do { } while (0)
-#define mmap_unlock() do { } while (0)
#if defined(CONFIG_USER_ONLY)
/* Currently it is not recommended to allocate big chunks of data in
user mode. It will change when a dedicated libc will be used. */