#
✕ nick:sven
#asahi-dev · 2026-10-25 18:54
svenwhat bootargs do you pass?
#asahi-dev · 2026-10-25 18:54
svenit should start outputting debug logs at that point
#asahi-dev · 2026-10-25 18:52
svenif it panics that's very helpful
#asahi-dev · 2026-10-25 18:52
svenyou should also see xnu's debug output at that point
#asahi-dev · 2026-10-25 18:52
sven\o/
#asahi-dev · 2026-10-25 18:47
svenjust make hv_amcc_init return true at the very beginning
#asahi-dev · 2026-10-25 18:47
sventhat's probably related to the ADT differences yuka mentioned
#asahi-dev · 2026-10-25 18:46
svenyou can just disable that function, it only matters once it's inside XNU
#asahi-dev · 2026-10-25 18:45
svenlong before it even reaches its exclave bootstrap code I think. but that's probably gonna be fine, the real test will be what happens once XNU is up and tries to talk to something it expects to run inside those exclaves
#asahi-dev · 2026-10-25 18:44
sveni dunno how far boot will get since SPTM still fails with some MTE crap on m5
#asahi-dev · 2026-10-25 18:44
svenlooks like the a18 pro has exclaves, so that's gonna be fun :P
#asahi-dev · 2026-10-25 18:43
svenheh
#asahi-dev · 2026-10-25 18:40
sven25G82?
#asahi-dev · 2026-10-25 18:39
svenwhich macos version is this?
#asahi-dev · 2026-10-25 18:38
svenAMCC [0x00000100060a0000-0x00000100060abfff] and ACC [0x000001001de14000-0x000001001df77fff] <-- first is what it reads from MMIO and second is what it wrote itself iirc
#asahi-dev · 2026-10-25 18:38
svenso i fake the values inside AMCC (https://github.com/AsahiLinux/m1n1/blob/51b747dced07a58eacf5dabc31ed6f00bcfa20fd/proxyclient/m1n1/hv/__init__.py#L2074) but if a18 pro's SPTM writes something different to the CTRR sysregs it'll panic
#asahi-dev · 2026-10-25 18:37
sventhe sysreg CTRR regions are written by SPTM but the regions inside AMCC are set up by iboot
#asahi-dev · 2026-10-25 18:36
svenor maybe it really wants a different memory map
#asahi-dev · 2026-10-25 18:36
svenmaybe https://github.com/AsahiLinux/m1n1/blob/51b747dced07a58eacf5dabc31ed6f00bcfa20fd/proxyclient/m1n1/hv/amcc.py works different on A18 pro
#asahi-dev · 2026-10-25 18:36
svenit's complaining that the region in AMCC doesn't match the region in the CTRR sysreg I think
#asahi-dev · 2026-10-25 18:34
svenoh, the carve out regions
#asahi-dev · 2026-10-25 18:31
svenand why do you get serrors? i'm curious
#asahi-dev · 2026-10-25 18:30
svendoes a18 pro already have exclaves?
#asahi-dev · 2026-10-25 18:30
svenhttps://github.com/AsahiLinux/m1n1/blob/51b747dced07a58eacf5dabc31ed6f00bcfa20fd/proxyclient/m1n1/hv/__init__.py#L2074 that's how region C is computed on m4 pro
#asahi-dev · 2026-10-25 18:29
svenit might just be that a18 pro wants a slightly different memory map
#asahi-dev · 2026-10-25 18:28
sventhat's an error string generated somewhere early in SPTM's boot code
#asahi-dev · 2026-10-25 18:28
svensnooze6214[m]: ah, now i finally saw that string: "000001001de14000-0x000001001df77fff] CTRR-C regions don't match"
#asahi-dev · 2026-10-25 18:18
svenso it's either back to patching SPTM's check that panics if I steal too much memory at the beginning of RAM or I have to find another way to steal memory from SPTM
#asahi-dev · 2026-10-25 18:17
sveni have the fun problem that the MTE tags are stored at the end of RAM and I can't change that because the register is locked where I also want to store my SPRR shadow tables now
#asahi-dev · 2026-10-25 18:06
svenyeah well.. m5 hv is gonna be quite cursed as well i think :(
#asahi-dev · 2026-10-25 16:12
svenjust this MTE crap but that shouldn't be there on a18 pro I think
#asahi-dev · 2026-10-25 16:12
svenno idea why, haven't run into an SError on m5 so far
#asahi-dev · 2026-10-25 16:11
sven:(
#asahi-dev · 2026-10-25 16:04
sven*sigh* yeah... this is some MTE crap
#asahi-dev · 2026-10-25 15:53
svendump ELR_EL12, ESR_EL12 and FAR_EL12
#asahi-dev · 2026-10-25 15:52
svensnooze6214[m]: and yeah, that looks like a panic loop. could even be SPTM's panic loop that early
#asahi-dev · 2026-10-25 15:51
sveni guess m5 hv even without secure kernel is gonna be "fun" *sigh*
#asahi-dev · 2026-10-25 15:51
svensnooze6214[m]: ah.. the other cores might not even be up i think. otherwise cpu(n) and then context()
#asahi-dev · 2026-10-25 15:50
svenhttps://fuzzinglabs.com/wp-content/uploads/2026/05/Navigating_iOS_MTE_Landscape.pdf which points to that... MTE crap :-(
#asahi-dev · 2026-10-25 15:50
svenTagOffset_EL2 according to debug strings I think...
#asahi-dev · 2026-10-25 15:47
svenhrm, looks like it fault trying to read S3_0_C11_C9_0
#asahi-dev · 2026-10-25 15:40
sventhat only matters once it's far into xnu
#asahi-dev · 2026-10-25 15:40
sveni've just disabled the amcc stuff for now
#asahi-dev · 2026-10-25 15:39
sventried to boot the hv on m5 and it hangs very very early inside SPTM :(
#asahi-dev · 2026-10-25 15:16
svenmaybe i'm just misremembing and looked at a previous kernel then
#asahi-dev · 2026-10-25 15:16
svenhrm, can't find it anymore
#asahi-dev · 2026-10-25 15:05
svenlet me check again
#asahi-dev · 2026-10-25 15:05
svenbut i though i had some symbols at least for macos 27 on m1
#asahi-dev · 2026-10-25 15:05
svenugh.. that's annoying :(
#asahi-dev · 2026-10-25 15:03
svendon't they have a KDK for those already?

plus ›