accel/tcg: Support split-wx for linux with memfd
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 29 Oct 2020 05:49:42 +0000 (22:49 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 7 Jan 2021 15:09:42 +0000 (05:09 -1000)
commita8c35b2cadfc7bef5221ceee0725493461568528
treec216f79f95c50877a229a710eed2001d98121cc8
parenta35b3e14157b9d912898d4800f329dc5f3c200a6
accel/tcg: Support split-wx for linux with memfd

We cannot use a real temp file, because we would need to find
a filesystem that does not have noexec enabled.  However, a
memfd is not associated with any filesystem.

Reviewed-by: Joelle van Dyne <j@getutm.app>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/translate-all.c