#
✕ nick:jeffmiw
#asahi · 2021-08-23 21:25
jeffmiwalyssa: what is SSPI ?
#asahi · 2021-08-23 21:25
jeffmiwj_ey: thx, I will check this
#asahi · 2021-08-23 21:22
jeffmiwI was seeing the sio like a dma specialized for serial but this is pure speculation :)
#asahi · 2021-08-23 21:21
jeffmiwah ok
#asahi · 2021-08-23 21:19
jeffmiwit seems I still have some work before figuring this out :)
#asahi · 2021-08-23 21:19
jeffmiwmy understanding of the spi/kb patches are they are not using the interrupt and doing polling, so I was trying to better understand the interrupt mechanism
#asahi · 2021-08-23 21:17
jeffmiwj_ey: may be unrelated ..
#asahi · 2021-08-23 21:10
jeffmiwTrying to look at spi/kbd interrupt and transfer stuff, I see accesses to sio and dart-sio, I understand that dart-sio should do some address translation of some sort(iommu like), but no clue on what sio is. Any one haveing any idea on how to look at them and interpret what there are doing ?
#asahi · 2021-08-21 21:27
jeffmiwI have a config working so if you still have issue after using the right kernel cache, we can compare to figure out what is different on your side, let me know
#asahi · 2021-08-21 21:23
jeffmiwyou may want to check the ttyACM : if I restart the MBA M1 but the previous run_guest is still open, the USB interface will be allocated to ACM1 & 2
#asahi · 2021-08-21 21:21
jeffmiwif you only see the coloured apple logo and no progress bar you are vey early in the process
#asahi · 2021-08-21 21:19
jeffmiwj_ey: this is what I have benn using 115200 8N1
#asahi · 2021-08-21 21:18
jeffmiwlandscape15[m]yes
#asahi · 2021-08-21 21:18
jeffmiwbut I had things on the uart showing some macos panic. did you check the baudrate ?
#asahi · 2021-08-21 21:16
jeffmiwj_ey: I had a similar issue, it was because my kernel cache and my macos install were of different versions. I updated the wiki with details for reference to help duplicate: https://github.com/AsahiLinux/docs/wiki/SW:Hypervisor I tested it with macos 11.5.2
#asahi · 2021-08-19 09:41
jeffmiwok, so I'm not missing something or doing it wrongly then :). I'll see if I can propose something useful then.
#asahi · 2021-08-19 09:39
jeffmiwmarcan: when running macos under the hypervisor, if I want to get the symbols for the extensions, I suppose I need the corresponding dSYM file ? Is there a way to load all of them at once ? will a concatenation of them in a single file will do the job ? I suppose not as the proxyclient/macho loader expects only one SYMTAB macho cmd
#asahi · 2021-08-16 19:49
jeffmiwfwiw I just updated the https://github.com/AsahiLinux/docs/wiki/SW:Hypervisor wiki page with some details about macOS & Kernel version as it can help when trying to reproduce the experiment(booting macOS under hv). I did validate it with macOS 11.5.2.
#asahi · 2021-08-09 16:13
jeffmiwjust lost a couple of hours fixing my python install to get correct python 3.9 and latest construct module ... to chainload latest m1n1 mainly because I'm using an old ubuntu 18.04 distrib :). I thought it is a good time to ask: which distrib are you using for your dev for M1 ?
#asahi · 2021-05-07 16:48
jeffmiwpipcet[m]: I'm really interested to duplicate your booting macos under m1n1 with usb working to play with it and the hv from marcan :)
#asahi · 2021-05-07 16:46
jeffmiwI did not realize M1 does not have EL3. How was this figure out ? thanks to the Aarch feature registers ?
#asahi · 2021-05-07 16:45
jeffmiwsven: thanks for the blog and wiki for the GFX ans SPRR, really cool
#asahi · 2021-04-21 21:01
jeffmiwbut that should work if you just do chainloading without messing up with hypervisor stuff
#asahi · 2021-04-21 21:00
jeffmiwnot tried yet
#asahi · 2021-04-21 20:50
jeffmiwdid anyone play with stage2 translation thanks to HCR_EL2.VM bit set ?
#asahi · 2021-04-21 20:49
jeffmiwso I'm going to check all bits again to at least get some instructions going in EL1 with stage2 translation active
#asahi · 2021-04-21 20:48
jeffmiwI'm getting an instruction abort due to a level 0 translation at the first instruction after the ERET which means my VTCR_EL2 & VTTBR_EL2 settings are wrong
#asahi · 2021-04-21 20:47
jeffmiwI have failed so far :( but not giving up...
#asahi · 2021-04-21 20:46
jeffmiwabout the mmiotracer, I've been trying to run some code in EL1 with HCR_EL2.VM bit set to get the stage 2 translation working for the hypervisor
#asahi · 2021-04-12 21:28
jeffmiwok, I found its definition in armv8 figure D5-9, thanks j`ey
#asahi · 2021-04-12 21:20
jeffmiwhumm and how is controled the translation level 0 ? TTBR are for stage 1
#asahi · 2021-04-12 21:14
jeffmiwI'm not clear about this level 0, is it the exception level or the translation level ? I'm a bit confused here ...
#asahi · 2021-04-12 21:13
jeffmiwtrying to boot the linux kernel in EL1 while running m1n1 as EM2 hypervisor, I'm hitting an instruction abort because of a translation fault level 0 on the first instruction after the ERET from el1_call in exception_asm.s
#asahi · 2021-04-10 20:42
jeffmiwmarcan: yes working to do some VM memory map and trying it, looking at VTCR_EL2 and VTTBR_EL2 before turning on HCR_EL2.VM to 1
#asahi · 2021-04-10 20:31
jeffmiwso before I have something you will have done in a couple of hours :)
#asahi · 2021-04-10 20:31
jeffmiwjust understanding m1n1 memory.c took me hours/days :) (not full time but still :) )
#asahi · 2021-04-10 20:30
jeffmiwdon't worry I'm still catching up with all the work you have done, it took me hours to understand the armv8 virtualization stuff on top of the page tables :)
#asahi · 2021-04-10 20:29
jeffmiwmarcan: yes this is what I understood and found so powerful, i decided to try to give it a try
#asahi · 2021-04-10 20:23
jeffmiwnow I'm rethinking the appraoch with E2H set to 1 , looking at the memory map to try to do this basic mmiotrace experiment
#asahi · 2021-04-10 20:23
jeffmiwbut then I got stuck on this sticky HCR_EL2.E2H bit ...
#asahi · 2021-04-10 20:22
jeffmiwand I was on the plan to use the HCR_EL2.E2H to have type 1 like virtualization for that
#asahi · 2021-04-10 20:21
jeffmiwonce I have that, I was thinking to do the same with macos, so we can trace registers to help reverse eng without having to disassemble and risking copyright infringement
#asahi · 2021-04-10 20:20
jeffmiwI was thinking to have m1n1 keeping the usb interface (I do not have the serial interface stuff, only usb) and then boot linux and virtualize the uart to do somekind of mmio tracing
#asahi · 2021-04-10 20:19
jeffmiwmarcan: I did play a bit with chainload.py --el1, still, I'm trying to make a small step to hypervise something
#asahi · 2021-04-10 17:35
jeffmiwj`ey: thanks ... need to rethink my understanding for having m1n1 as an hypervisor ...
#asahi · 2021-04-10 17:25
jeffmiwthere must be a pre-condition to be able to change it but I did not find it. If anyone has an idead on where to dig ?
#asahi · 2021-04-10 17:25
jeffmiwthis bit stays at 1
#asahi · 2021-04-10 17:24
jeffmiwI'm trying to see how to setup m1n1 as an EL2 hypervisor, from my understanding we shall set HCR_EL2.E2H(Bit 34) to zero for that, I have been trying to change this first with a proxy shell, then in exception_initialize but for some reason it does work
#asahi · 2021-03-13 21:01
jeffmiwtrimmed down xen could be interesting
#asahi · 2021-03-13 20:53
jeffmiwI was more thinking about things like xen or kvm for instance

plus ›