]> Git Repo - qemu.git/commit - tcg/tcg.c
tcg: Workaround macOS 11.2 mprotect bug
authorRichard Henderson <[email protected]>
Sat, 20 Mar 2021 16:57:20 +0000 (10:57 -0600)
committerRichard Henderson <[email protected]>
Wed, 24 Mar 2021 01:36:36 +0000 (19:36 -0600)
commitc118881ee607dcac661b89893de07cbcbaeb304c
tree92282f1f0f8f4b37b7e8d2ea79441041c784bb1d
parent15c4e8fe44e34eee4a13135eeb121b3b26e4cd1b
tcg: Workaround macOS 11.2 mprotect bug

There's a change in mprotect() behaviour [1] in the latest macOS
on M1 and it's not yet clear if it's going to be fixed by Apple.

As a short-term fix, ignore failures setting up the guard pages.

[1] https://gist.github.com/hikalium/75ae822466ee4da13cbbe486498a191f

Signed-off-by: Richard Henderson <[email protected]>
Tested-by: Roman Bolshakov <[email protected]>
Reviewed-by: Roman Bolshakov <[email protected]>
Buglink: https://bugs.launchpad.net/qemu/+bug/1914849
Message-Id: <20210320165720.1813545[email protected]>
tcg/tcg.c
This page took 0.026226 seconds and 4 git commands to generate.