#asahi-dev · 2023-05-08 08:48
maznah, TACR.#asahi-dev · 2023-05-08 08:45
mazI wonder whether that's a regression.#asahi-dev · 2023-05-08 08:45
mazbut j`ey is correct, we seem to be missing ACTLR_EL1's save/restore, descpite what I said earlier.#asahi-dev · 2023-05-08 08:43
marcan(which maps to apple's IMPDEF ACTLR_EL12 from EL2)#asahi-dev · 2023-05-08 08:43
marcanI mean ACTLR_EL1 from a guest should trap I think#asahi-dev · 2023-05-08 08:43
marcanoh a guest wouldn't even see that one#asahi-dev · 2023-05-08 08:43
mazmarcan: I don't think actlr_el12 in the TIDCP range.#asahi-dev · 2023-05-08 08:42
marcanbut that shouldn't affect KVM much, since I think TIDCP makes it trap anyway#asahi-dev · 2023-05-08 08:42
marcanapple actually has ACTLR_EL12 as an impdef, so the guest wouldn't even see the host's ACTLR I think (it got the VHE treatment)#asahi-dev · 2023-05-08 08:41
j`eymaz: not sure! just looking at access_actlr, and it has if (p->is_write..#asahi-dev · 2023-05-08 08:41
mazj`ey: sure? thad'be a bug.#asahi-dev · 2023-05-08 08:40
marcanas in save/restore the host's value, right?#asahi-dev · 2023-05-08 08:40
mazwe already save/restore ACTLR_EL1, so this has zero impact on KVM.#asahi-dev · 2023-05-08 08:40
j`eylooks like KVM ignores writes to ACTLR_EL1 currently#asahi-dev · 2023-05-08 08:40
marcanso you're safe for now ;)#asahi-dev · 2023-05-08 08:39
marcanbut that future may never come#asahi-dev · 2023-05-08 08:39
marcanin a hypothetical future where FEX runs as a 4K guest we can revisit that idea, though for that it would be sufficient to enable TSO guest-wide for most purposes#asahi-dev · 2023-05-08 08:39
marcanoh yeah I don't care about KVM, at least not yet#asahi-dev · 2023-05-08 08:39
mazmarcan: you don't have to sell it to me, only to the arm64 maintainers. the one thing I don't want is to expose something that isn't architectural to *guests*.#asahi-dev · 2023-05-08 08:39
marcanOTOH it's not exactly the ugliest thing ever, it's flipping a bit in a documented, IMPDEF-defined register (ACTLR_EL1)#asahi-dev · 2023-05-08 08:37
marcan(you know I'm not a fan of having to do this, but the benefits are too big to ignore)#asahi-dev · 2023-05-08 08:37
marcanhence annoy you#asahi-dev · 2023-05-08 08:37
marcanmaz: well obviously we'll be pushing this upstream because it's a *BIG* performance deal#asahi-dev · 2023-05-08 08:36
mazmarcan: as long as this stuff never gets near my machines and that I don't have to support it...#asahi-dev · 2023-05-08 08:36
j`eymarcan: stream prctl! (Im sure it wouldn't take more than an hour or something, youre fast)#asahi-dev · 2023-05-08 08:36
marcanI thought you didn't want impdef arch stuff ;)#asahi-dev · 2023-05-08 08:36
mazmarcan: why should I care?#asahi-dev · 2023-05-08 08:35
marcan(TSO is confirmed to be a *big* deal for FEX so we are definitely implementing it, sorry maz)#asahi-dev · 2023-05-08 08:35
marcanI'm sure that will greatly annoy maz and make the FEX folks very happy :p#asahi-dev · 2023-05-08 08:35
marcanI was going to stream speakers today but maybe I should try to add a prctl for TSO?#asahi-dev · 2023-05-08 08:33
marcanespecially for stuff that we really care about#asahi-dev · 2023-05-08 08:33
marcan*Apple versions#asahi-dev · 2023-05-08 08:33
marcanI do wonder, once official versions of these things get supported, how likely it is we can convince upstream to take alternate codepaths for the pre-standard ARM versions#asahi-dev · 2023-05-08 08:32
marcanooh nice :D#asahi-dev · 2023-05-08 08:32
j`eymarcan: I'm working on the PIE/POE stuff which is SPRR but official#asahi-dev · 2023-05-08 08:31
chadmedcolour management is just completely broken which sucks but i cant think of much else to cause it to look this subtly off while still "working"#asahi-dev · 2023-05-08 08:31
chadmedjannau: is it at all possible that we are advertising the wrong colour space or pixel format to plasma#asahi-dev · 2023-05-08 08:30
marcanall the extra SPRR stuff is curious but likely nobody cares enough to figure out what exactly it all does, since it doesn't really affect us#asahi-dev · 2023-05-08 08:29
marcanwas nice confirming basically everything we already knew though, I didn't find anything unexpected in there other than a pile of official register names for registers we'd already roughly identified#asahi-dev · 2023-05-08 08:28
marcan(and then of course it calls into pmap/gl to actually switch to the guest etc)#asahi-dev · 2023-05-08 08:28
marcanARM HVs are boring enough a significant part of the entire HV is touching secret stuff#asahi-dev · 2023-05-08 08:27
marcanbut I can sort of understand why, because they save/restore all the secret registers in there lol#asahi-dev · 2023-05-08 08:27
marcanself-compiled XNU = no hv#asahi-dev · 2023-05-08 08:27
marcanI'm still annoyed the hypervisor is sekrit, like not even distributed as object files#asahi-dev · 2023-05-08 08:26
svenlol#asahi-dev · 2023-05-08 08:26
marcanand then there's that raspberry pi target :D#asahi-dev · 2023-05-08 08:26
svenso maybe 10 or so different variants?#asahi-dev · 2023-05-08 08:26
marcanyeah of course#asahi-dev · 2023-05-08 08:26
svenwell, there’s also the iPhone/iPad SoCs #asahi-dev · 2023-05-08 08:26
marcanmac13g, mac13j, mac14g, mac14j