diff options
| author | Richard Henderson | 2012-11-01 23:20:46 +0100 |
|---|---|---|
| committer | Blue Swirl | 2012-12-08 15:18:37 +0100 |
| commit | 0be4835b4932f38167b611c2b311ebaaec98a8eb (patch) | |
| tree | 24756ec0796dd7556f0672a8b537bfe10e95259c /exec.c | |
| parent | Open up 1.4 development branch (diff) | |
| download | qemu-0be4835b4932f38167b611c2b311ebaaec98a8eb.tar.gz qemu-0be4835b4932f38167b611c2b311ebaaec98a8eb.tar.xz qemu-0be4835b4932f38167b611c2b311ebaaec98a8eb.zip | |
exec: Advise huge pages for the TCG code gen buffer
After allocating 32MB or more contiguous memory, huge pages
would seem to be ideal.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'exec.c')
| -rw-r--r-- | exec.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -607,6 +607,8 @@ static inline void code_gen_alloc(size_t tb_size) exit(1); } + qemu_madvise(code_gen_buffer, code_gen_buffer_size, QEMU_MADV_HUGEPAGE); + /* Steal room for the prologue at the end of the buffer. This ensures (via the MAX_CODE_GEN_BUFFER_SIZE limits above) that direct branches from TB's to the prologue are going to be in range. It also means |
