#asahi · 2025-03-09 14:30
bgtlover[mds]and...krun, I remember I heard that before. It's in...the container context. Now I'm curious how can this be a vm? I'm reading the rust bindings to said library#asahi · 2025-03-09 14:28
bgtlover[mds]chaos_princess: oho, now that's definitely not pleasent#asahi · 2025-03-09 14:25
chaos_princess(My only test cases were "play music via pw-play, and get camera via firefox)#asahi · 2025-03-09 14:25
chaos_princessBut if you have repro, or crash log, im interested#asahi · 2025-03-09 14:24
chaos_princessIt could be trying to negotiate explicit sync, or maybe allocate memory in vm and send to host. #asahi · 2025-03-09 14:24
bgtlover[mds]<monthebiff> "dirty hack... working code... *..." <- correct#asahi · 2025-03-09 14:22
chadmedit does actually take out the host's pipewire occasionally but i cant reliably repro :p#asahi · 2025-03-09 14:18
monthebiffship it :P#asahi · 2025-03-09 14:18
monthebiffdirty hack... working code... *shrug*#asahi · 2025-03-09 14:12
chaos_princessthis just assigns correct permissions for webcam passthrough#asahi · 2025-03-09 14:12
chaos_princessit is kind of a dirty hack because i did not want this thing to also handle dbus and portals#asahi · 2025-03-09 14:11
bgtlover[mds]I didn't know this stuff has wireplumber code in it...I suspect it's for passthrough?#asahi · 2025-03-09 14:10
bgtlover[mds]j`ey: depends, some have too many dependencies, like the cosmic stuff#asahi · 2025-03-09 14:08
chaos_princesshmm, there were people who were interested in contributing :P#asahi · 2025-03-09 14:06
j`eychaos_princess: but on the other hand, there's rust crates for wl-p already#asahi · 2025-03-09 14:06
chaos_princessnot only that, but that is one of the issues#asahi · 2025-03-09 14:06
chaos_princessyes#asahi · 2025-03-09 14:06
bgtlover[mds]chaos_princess: ahh, gotcha. And rn asahi can't run waydroid because of that?#asahi · 2025-03-09 14:05
bgtlover[mds]that's why I hate xml and such too#asahi · 2025-03-09 14:05
bgtlover[mds]chaos_princess: ahh shit, those are hard to parse indeed#asahi · 2025-03-09 14:05
chaos_princessandroid also has the 4k page issue#asahi · 2025-03-09 14:05
chaos_princessyes#asahi · 2025-03-09 14:05
bgtlover[mds]chaos_princess: huh? you want to run waydroid apps from the vm?#asahi · 2025-03-09 14:05
chaos_princessthere is like 3 messages i care about, so yes? same for x11, except there it is like 10#asahi · 2025-03-09 14:04
bgtlover[mds]chaos_princess: self-delimiting? and wait what, you're parsing the pipewire protocol by hand? now that's wickid!#asahi · 2025-03-09 14:04
j`eyah#asahi · 2025-03-09 14:04
chaos_princessyes, you need to know what the message is about to know it's size#asahi · 2025-03-09 14:03
chaos_princessalthough would be funny to run hsr via waydroid#asahi · 2025-03-09 14:03
j`eysize field#asahi · 2025-03-09 14:03
j`eywhat does self-delimiting mean, it doesn't have a size or?#asahi · 2025-03-09 14:03
chaos_princessj`ey: looked at it, and it is annoying, if i got this right, wayland's protocol is not self-delimiting, so i will have to parse the entire protocol, instead of only messages i care about like i can do with x11 and pw#asahi · 2025-03-09 14:02
bgtlover[mds]chaos_princess: yes, that's so much worse! oho, this is starting to sound like fun#asahi · 2025-03-09 14:02
j`eywayland native wen#asahi · 2025-03-09 14:01
chaos_princessbgtlover[mds]: it is "swap out file descriptors and memory mappings in other processes"#asahi · 2025-03-09 14:00
monthebiffit is wickedly cool#asahi · 2025-03-09 14:00
bgtlover[mds]chadmed: that's always the question, isn't it?#asahi · 2025-03-09 14:00
bgtlover[mds]chaos_princess: ahh, oof! is it worse than using tower and basically recreating axum for accessibility events sent over dbus? only reviewing that stuff made my head spin#asahi · 2025-03-09 13:59
chadmedcursed or genius #asahi · 2025-03-09 13:58
chaos_princessit is more that it contains probably the most cursed rust i've ever written :P#asahi · 2025-03-09 13:58
bgtlover[mds]chaos_princess: I know normal rust, I dk, if this involves kernel bindings, then I don't because I never worked with that. I maintain some rust programs, namely the odilia screenreader is what me and a couple of people are working on, so yeah, I know some basics :p#asahi · 2025-03-09 13:57
chaos_princessare you sure :P#asahi · 2025-03-09 13:56
bgtlover[mds]O, it's rust? even better, I know that#asahi · 2025-03-09 13:55
chaos_princesshttps://asahilinux.org/2024/12/muvm-x11-bridging/ - this also explains how it all manages to be fast enough#asahi · 2025-03-09 13:53
chaos_princessnot quite, it is using libkrun, which is a hypervisor-as-a-library for container/enclave scenarios#asahi · 2025-03-09 13:53
bgtlover[mds]awesome! starts reading#asahi · 2025-03-09 13:53
chaos_princesshttps://github.com/AsahiLinux/muvm/#asahi · 2025-03-09 13:52
bgtlover[mds]did you make the whole vm from scratch? I'm kinda curious to see the code of that if so, but I'll probably have my brain fold upon reading it :p#asahi · 2025-03-09 13:51
chaos_princessThe more you have to emulate the worse it is and we emulate almost nothing. #asahi · 2025-03-09 13:51
bgtlover[mds]chaos_princess: ahh, then it's because of my ancient computer over here, back when this thing was new, hypervisors were quite costing on the cpu#asahi · 2025-03-09 13:50
chaos_princessit is the rest of it that creates overhead