Re: [PATCH v5 6/7] tcg: implement JIT for iOS and Apple Silicon

2020-12-11 Thread Joelle van Dyne
Sounds good, I will make that change in the next version. -j On Fri, Dec 11, 2020 at 4:36 AM Stefan Hajnoczi wrote: > > On Fri, Dec 11, 2020 at 10:54 AM Alexander Graf wrote: > > On 25.11.20 03:08, Joelle van Dyne wrote: > > > A lot of users of UTM are on iOS 13 (a large number of devices only

Re: [PATCH v5 6/7] tcg: implement JIT for iOS and Apple Silicon

2020-12-11 Thread Stefan Hajnoczi
On Fri, Dec 11, 2020 at 10:54 AM Alexander Graf wrote: > On 25.11.20 03:08, Joelle van Dyne wrote: > > A lot of users of UTM are on iOS 13 (a large number of devices only > > have jailbreak for iOS 13 and below), but if the QEMU community thinks > > it's better that way, we are willing to

Re: [PATCH v5 6/7] tcg: implement JIT for iOS and Apple Silicon

2020-12-11 Thread Alexander Graf
On 25.11.20 03:08, Joelle van Dyne wrote: A lot of users of UTM are on iOS 13 (a large number of devices only have jailbreak for iOS 13 and below), but if the QEMU community thinks it's better that way, we are willing to compromise. I think it would make merging much more straight forward

Re: [PATCH v5 6/7] tcg: implement JIT for iOS and Apple Silicon

2020-11-24 Thread Joelle van Dyne
A lot of users of UTM are on iOS 13 (a large number of devices only have jailbreak for iOS 13 and below), but if the QEMU community thinks it's better that way, we are willing to compromise. -j On Tue, Nov 24, 2020 at 7:15 PM Alexander Graf wrote: > > > On 20.11.20 16:58, Joelle van Dyne wrote:

Re: [PATCH v5 6/7] tcg: implement JIT for iOS and Apple Silicon

2020-11-24 Thread Alexander Graf
On 20.11.20 16:58, Joelle van Dyne wrote: On Fri, Nov 20, 2020 at 3:08 AM Alexander Graf wrote: On 09.11.20 00:24, Joelle van Dyne wrote: When entitlements are available (macOS or jailbroken iOS), a hardware feature called APRR exists on newer Apple Silicon that can cheaply mark JIT pages

Re: [PATCH v5 6/7] tcg: implement JIT for iOS and Apple Silicon

2020-11-20 Thread Joelle van Dyne
On Fri, Nov 20, 2020 at 3:08 AM Alexander Graf wrote: > > > On 09.11.20 00:24, Joelle van Dyne wrote: > > When entitlements are available (macOS or jailbroken iOS), a hardware > > feature called APRR exists on newer Apple Silicon that can cheaply mark JIT > > pages as either RX or RW. Reverse

Re: [PATCH v5 6/7] tcg: implement JIT for iOS and Apple Silicon

2020-11-20 Thread Richard Henderson
On 11/20/20 6:15 AM, Alexander Graf wrote: > MAP_JIT is definitely missing to make it work on macos. As per the cover, Based-on: 20201106032921.600200-1-richard.hender...@linaro.org ([PATCH v3 00/41] Mirror map JIT memory for TCG) which contains

Re: [PATCH v5 6/7] tcg: implement JIT for iOS and Apple Silicon

2020-11-20 Thread Alexander Graf
On 20.11.20 10:08, Alexander Graf wrote: On 09.11.20 00:24, Joelle van Dyne wrote: When entitlements are available (macOS or jailbroken iOS), a hardware feature called APRR exists on newer Apple Silicon that can cheaply mark JIT pages as either RX or RW. Reverse engineered functions from

Re: [PATCH v5 6/7] tcg: implement JIT for iOS and Apple Silicon

2020-11-20 Thread Alexander Graf
On 09.11.20 00:24, Joelle van Dyne wrote: When entitlements are available (macOS or jailbroken iOS), a hardware feature called APRR exists on newer Apple Silicon that can cheaply mark JIT pages as either RX or RW. Reverse engineered functions from libsystem_pthread.dylib are implemented to

[PATCH v5 6/7] tcg: implement JIT for iOS and Apple Silicon

2020-11-08 Thread Joelle van Dyne
When entitlements are available (macOS or jailbroken iOS), a hardware feature called APRR exists on newer Apple Silicon that can cheaply mark JIT pages as either RX or RW. Reverse engineered functions from libsystem_pthread.dylib are implemented to handle this. The following rules apply for JIT