#asahi-dev · 2026-10-06 14:23
yukaso nested virt is still heavily broken#asahi-dev · 2026-10-06 14:23
yukaalso it locked up my host shortly after#asahi-dev · 2026-10-06 14:22
yukaand then https://termbin.com/5u2qm on nixpkgs#asahi-dev · 2026-10-06 14:22
yukaI added "kvm-arm.mode=nested" on the host#asahi-dev · 2026-10-06 14:22
yukaOk, so#asahi-dev · 2026-10-06 14:21
yukaqyliss has def run spectrum on M2 with nested virt before, but with some mainline + nv patches frankenstein kernel#asahi-dev · 2026-10-06 14:21
myriaYep, found it#asahi-dev · 2026-10-06 14:16
yukaIt will say no hyp mode supported#asahi-dev · 2026-10-06 14:16
yukaCheck the boot logs for kvm#asahi-dev · 2026-10-06 14:16
yukaSoftware emulation#asahi-dev · 2026-10-06 14:16
myriatcg?#asahi-dev · 2026-10-06 14:16
yukaUnless you do sth like this (will send diff in 5min)#asahi-dev · 2026-10-06 14:15
yukaIt wil just run the inner layer with tcg#asahi-dev · 2026-10-06 14:14
myriaHaven't run into any issues with pages/softlocks#asahi-dev · 2026-10-06 14:14
myriayuka: annoying. I seem to have `nixosTest.libvirtd` running fine right now on my M2, will let you know if it completes#asahi-dev · 2026-10-06 14:12
myriaj`ey: in macOS it doesn't. Win for linux there!#asahi-dev · 2026-10-06 14:11
myriaBut it should (hopefully) just require us setting up the event info for apple PMU, and then it should all work?#asahi-dev · 2026-10-06 14:11
yukabut also with this it locks up....#asahi-dev · 2026-10-06 14:11
yuka> kvm [1]: PAGE_SIZE not supported at Stage-2, giving up#asahi-dev · 2026-10-06 14:11
yukaI need to make it use a 16K pagesize kernel for the nixos test because 4K pagesize guests are not supported with nested virt#asahi-dev · 2026-10-06 14:11
j`eymyria: M2 have nested virt#asahi-dev · 2026-10-06 14:10
yuka> watchdog: BUG: soft lockup - CPU#1 stuck for 24s! [txg_sync:1092]#asahi-dev · 2026-10-06 14:10
myriaIt is built on that. From my quick reading, it seems that apple allows writes to some registers to trap, which we catch and then set the events in the host kernel#asahi-dev · 2026-10-06 14:09
yukaOr is the emulation not built on top of the Apple PMU thing#asahi-dev · 2026-10-06 14:09
yukafor M3#asahi-dev · 2026-10-06 14:09
yukaThe PMU emulation stuff requires adding the new PMU events and more bits per event thing?#asahi-dev · 2026-10-06 14:08
myriaThat, and we do funky emulation of the PMU stuff that I'm not sure will work in a nested virt setup... though I guess if it's a regular cpu in the kvm it won't notice...#asahi-dev · 2026-10-06 14:07
myriaI'm not sure, but only M3+ has nested virt on Apple, so not sure if it's the same here#asahi-dev · 2026-10-06 14:06
myriaThat sounds like fun#asahi-dev · 2026-10-06 14:06
yukait requires some special qemu flags#asahi-dev · 2026-10-06 14:06
yukatrying to get the libvirtd nixos test to build with nested virt#asahi-dev · 2026-10-06 14:04
yukabut I did take the M5 Pro#asahi-dev · 2026-10-06 14:04
yukaI just left home and didn't take the MB Neo#asahi-dev · 2026-10-06 14:04
myriaThat's the rest of the MIDRs I had#asahi-dev · 2026-10-06 14:04
myriaAlso, if you want to test on Tahiti, https://github.com/sempiternal-aurora/linux/commit/e63ee8779949b702127f4640b01bdb09f4179d5e#asahi-dev · 2026-10-06 13:55
myriaBut good to hear that it fixes it!#asahi-dev · 2026-10-06 13:54
myriaHmmm, only concern I have with that is what having `impdef_pmuv3` implies if M3/M4 doesn't have the PMU driver#asahi-dev · 2026-10-06 13:53
yukanow testing nested virt#asahi-dev · 2026-10-06 13:53
yukathis works for me on M3 Max: https://termbin.com/44r8m#asahi-dev · 2026-10-06 13:00
integralpilotanyway goodnight!#asahi-dev · 2026-10-06 13:00
integralpilotill try to rebase tmrw and see if it works#asahi-dev · 2026-10-06 12:57
chadmedits probably gonna be painful but whatever#asahi-dev · 2026-10-06 12:57
chadmedi will try to dump this on top of 7.1 on the weekend or something and see whats up #asahi-dev · 2026-10-06 12:55
integralpilotmaybe v2 once its better can be hippo :)#asahi-dev · 2026-10-06 12:55
integralpiloti wonder if games work out of the box, i feel like the answers gonna be no but only one way to find out (and i cant rly on m3)#asahi-dev · 2026-10-06 12:52
tryhard[m]hippo is more messy#asahi-dev · 2026-10-06 12:52
integralpilot(the way i set it up was asahi-6.18 -> m3-backports -> warthog, so it can work with m3)#asahi-dev · 2026-10-06 12:51
integralpilotanyway testing on M1/M2 or reproduction on M3 would be appreciated :)#asahi-dev · 2026-10-06 12:51
integralpiloti chose warthog cause i was thinking what animals are associated with messiness#asahi-dev · 2026-10-06 12:51
integralpilot4K branch pushed: https://github.com/IntegralPilot/linux/tree/warthog