user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<millenialhacker>
I'm trying to follow hypervisor Wiki. (I'm planning to run a dev MacOS/XNU kernel in Hypervisor mode to get some details about Camera driver)... It seems I need another machine, am I right?
<millenialhacker>
Two in total (one Mac for development), another Mac or Linux to push kernel stuff via proxy
<sven>
yes
<sven>
the mac will run xnu under that HV and the other machine will be used to control the HV
<millenialhacker>
Got it, that's unfortunate, I have no other machine handy, I wonder if a RpI may work as hypervisor controller
<millenialhacker>
I don't want to use work one since that belongs to Amazon, and I don't want to enter in some weird situation due to NDA/Contract stuff with my employeer
<mps>
millenialhacker: any machine could be used as hypervisor 'controller', with proper usb cables, ofc
<millenialhacker>
I would order a RPI then. Ty
<marcan>
keep in mind a RPi will not cut it for high-bandwidth HV usage, but if you're just tracing the camera it's probably OK
<mps>
OT but there are better arm64 SBCs than rpis
<marcan>
tracing is bottlenecked on the host/python most of the time, and a RPi will bottleneck way worse than a proper machine
<marcan>
but that's proportional to how much tracing you decide to enable
<marcan>
the HV will happily run with zero I/O if everything is off (as in you can literally yank the cable and the guest keeps running)
<millenialhacker>
I thought HV was doing tracing with minimal impact in performance, but it seems it's actually waiting for host to decide what to do with packets and that back and forth is the bottleneck, did I get it right?
<marcan>
there are async and sync tracing modes
<marcan>
async uses a big fat buffer and the host processes that as fast as it can (which is still bottlenecked on python even for simple r/w prints in practice, before the USB bandwidth)
<marcan>
sync actually stops the guest and is limited by USB latency
<marcan>
you can configure the mode individually for everything you trace
<marcan>
for ISP you will need to trace the ASC, which means you will need to sync trace the mailbox registers since the host will have to react to those synchronously to be able to pull payloads out of the buffers at the correct time
<millenialhacker>
Cool, I'm sure I will come back with some handy questions lately once I have everything set it up properly.
<marcan>
(there is already a generic ASC tracer but you will need to write the subclass of that to handle ISP and whatever its app-specific endpoints mean and how they work, as you figure it out)
<marcan>
millenialhacker: look at hv/trace_pmgr.py and PMPTracer (and the commented out instantiation below it) for an example of how to get started
<marcan>
you don't need the PMGR/iomon stuff, I'm just pointing that one out because it's the most barebones ASCTracer subclass we have lying around I think
pg12_ has joined #asahi-dev
pg12 has quit [Ping timeout: 480 seconds]
millenialhacker has quit [Quit: Konversation terminated!]
user982492 has joined #asahi-dev
millenialhacker has joined #asahi-dev
millenialhacker has quit []
millenialhacker has joined #asahi-dev
millenialhacker has quit []
millenialhacker has joined #asahi-dev
millenialhacker has quit []
millenialhacker has joined #asahi-dev
kelito has joined #asahi-dev
millenialhacker has quit [Remote host closed the connection]
millenialhacker has joined #asahi-dev
kelito has quit [Remote host closed the connection]
millenialhacker has quit [Ping timeout: 480 seconds]
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
millenialhacker has joined #asahi-dev
millenialhacker has quit [Ping timeout: 480 seconds]
millenialhacker has joined #asahi-dev
millenialhacker has quit [Read error: No route to host]
millenialhacker has joined #asahi-dev
pg12_ has quit []
millenialhacker has quit [Ping timeout: 480 seconds]
millenialhacker has joined #asahi-dev
pg12 has joined #asahi-dev
millenialhacker has quit [Ping timeout: 480 seconds]
millenialhacker has joined #asahi-dev
the_lanetly_052___ has joined #asahi-dev
millenialhacker has quit [Remote host closed the connection]
millenialhacker has joined #asahi-dev
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
the_lanetly_052__ has joined #asahi-dev
kov has joined #asahi-dev
the_lanetly_052___ has quit [Ping timeout: 480 seconds]
the_lanetly_052___ has joined #asahi-dev
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
millenialhacker has quit []
millenialhacker has joined #asahi-dev
millenialhacker has quit [Remote host closed the connection]
millenialhacker has joined #asahi-dev
roxfan has quit [Ping timeout: 480 seconds]
millenia_ has joined #asahi-dev
millenialhacker has quit [Ping timeout: 480 seconds]
millenia_ has quit [Remote host closed the connection]