45 Commits
Author SHA1 Message Date
osy b2c910fb9f hv: support setting IPA base/size 2026-01-09 23:00:36 -08:00
osy 6071e6ecb4 hv: support setting IPA granule 2026-01-08 10:37:43 -08:00
osy f8fc8d8f50 project: add stub target for simulator builds 2025-07-04 21:17:13 -07:00
osy ee96dadeea project: updated to work with macOS 15.2 headers 2025-02-20 18:18:45 -08:00
osy eaf6d74362 project: updated to work with macOS 15 headers 2024-10-02 11:17:36 -07:00
osy bcec1a8b0c Merge pull request #3 from xliuxu/xnu22
Add support for XNU 22
2023-12-09 22:10:48 -06:00
osy 075257fede Merge branch 'zhuowei-typo-and-pac-comments' 2023-12-09 22:10:10 -06:00
Xu Liu 74e9c485f9 Add support for XNU 22 2023-12-03 21:02:56 +08:00
osy 2a2f42b077 hv: fix typo in hv_vcpu_set_reg 2023-01-07 14:32:01 -08:00
osy b4eb0e00c0 hv: expose some new APIs to enable TSO on entitled systems 2022-12-28 22:10:38 -08:00
osy c694e42468 hv: actually the whole file is wrong for XNU 20.6 2022-10-08 23:30:48 -05:00
osy 284b378e63 hv: offset version wrong for XNU 20.6 2022-10-07 11:41:18 -05:00
osy e4f3dd01fd hv: added XNU 20.4 offsets 2022-09-16 15:30:36 +03:00
osy 9c629d3304 find_sys_reg: add missing offset for XNU 20 2022-09-15 23:11:17 +03:00
osy cc2900ba4f hv: added XNU 20 offsets 2022-09-15 15:26:17 +03:00
Zhuowei Zhang 3196bc069a deliver_pac_trap: add comments with PAC hypercall names 2022-09-13 02:01:26 -04:00
Zhuowei Zhang a3fc635d52 hv_vcpu_set_reg: fix typo for setting fp
This actually didn't affect anything, surprisingly: QEMU doesn't sync state often.
2022-09-13 02:00:05 -04:00
osy ab117b273b hv_vcpu_run: inverted logic when activating timer 2022-09-09 07:27:25 -07:00
osy d9dddd99db deliver_msr_trap: simplify logic 2022-09-09 00:52:12 -07:00
osy d8bf784294 project: convert hv.m to hv.c 2022-09-08 23:19:58 -07:00
osy 5ae503b4f3 project: added xcode project and modulemap 2022-09-07 15:57:02 -07:00
osy 7b04ad2db7 hv_vcpu_{get|set}_sys_reg: handle syncing only when needed 2022-09-07 14:21:15 -07:00
osy a0c86f279d hv_vcpu_run: decompile all cases for exception handling 2022-09-07 14:21:15 -07:00
osy cdf94720fa hv_vcpu_run: support timer_enabled 2022-09-07 14:21:15 -07:00
osy 8caa32565a hv_vcpu_create: allow disabling of unsupported check bypass
Also removed some outdated todos
2022-09-07 14:21:15 -07:00
osy 306fb7eca0 hv_vcpu_create: support PAC updates 2022-09-07 14:21:15 -07:00
osy 619f719d77 hv_vm_create: handle config args 2022-09-07 14:21:06 -07:00
osy 4a7229e612 hv_vcpu_config_get_feature_regs: Update feature regs with masking 2022-09-07 14:21:00 -07:00
osy 87a9b023af hv_vcpu_config_get_feature_regs: add feature regs
From 12.5.1 decompile
2022-09-07 14:20:29 -07:00
Zhuowei Zhang ab82be558c implement get capabilities, populate ID registers 2022-06-06 00:05:10 -04:00
Zhuowei Zhang f35ca73a47 try getting task port from bootstrap_look_up 2022-06-04 20:30:49 -04:00
Zhuowei Zhang 7716521fb9 fix hv_vcpu_run not using cpuid 2022-05-30 20:37:07 -04:00
Zhuowei Zhang cfe2e7729b add scripts for building for iOS as a library 2022-05-30 20:20:41 -04:00
Zhuowei Zhang 6c6ee340ac fix struct for iOS 14.1 based on the macOS 11.3 (20E232) KDK 2022-05-30 20:19:54 -04:00
Zhuowei Zhang 283c1c8a4d fix injecting interrupts; qemu now works on macOS with this lib injected 2022-05-30 16:57:06 -04:00
Zhuowei Zhang e6d8ee8784 more sysregs, run in a loop 2022-05-30 15:40:17 -04:00
Zhuowei Zhang 3fc80e5cfb build as library, implement/stub remaining functions for qemu 2022-05-30 14:53:28 -04:00
Zhuowei Zhang d77c44cd55 drop the no hvf header declarations 2022-05-30 13:47:27 -04:00
Zhuowei Zhang 516e4fac25 move demo into its own file 2022-05-30 13:47:00 -04:00
Zhuowei Zhang 925d107f78 extract sysreg offsets 2022-05-30 13:34:20 -04:00
Zhuowei Zhang e39e156147 add better demo code 2022-05-30 00:08:16 -04:00
Zhuowei Zhang d368b281e4 use kexec userclient to call kernel functions (for iPhone 12/iOS 14.1)
See https://github.com/zhuowei/Fugu14/tree/wip-connect6
2022-05-29 23:41:14 -04:00
Zhuowei Zhang 6e4abd0e16 more set/get reg 2022-05-29 22:45:39 -04:00
Zhuowei Zhang 74cdb2d02b hv_vcpu_create/hv_vcpu_run, extract structs from kernel 2022-05-29 20:29:53 -04:00
Zhuowei Zhang a62ded0e76 Initial commit 2022-04-02 02:04:21 -04:00