kernkonzept / manifest

The main L4Re manifest to checkout the L4Re operating system.
GNU General Public License v2.0
19 stars 5 forks source link

Vmm::Cpu_dev::alloc_main_vcpu() exception #24

Closed chiaqi closed 1 year ago

chiaqi commented 1 year ago

hi : According to the https://github.com/kernkonzept/manifest/wiki/LinuxVM description, porting to the A76, "Hello World" demo can run normally, but VM Linux cannot run; the error log: "MOE: Hello world MOE: found 426108 KByte free memory MOE: found RAM from 60280000 to 7a880000 MOE: allocated 422 KByte for the page array @0x602e2000 MOE: virtual user address space [0-7fffffffff] MOE: rom name space cap -> [C:103000] MOE: rwfs name space cap -> [C:105000] BOOTFS: [6141d000-6141d179] [C:107000] vm-basic.cfg BOOTFS: [6141e000-6143c180] [C:109000] l4re BOOTFS: [6143d000-614b89e0] [C:10b000] ned BOOTFS: [614b9000-615921c8] [C:10d000] uvmm BOOTFS: [61593000-6159362c] [C:10f000] virt.dtb BOOTFS: [61594000-618c45b6] [C:111000] linux BOOTFS: [618c5000-61943ed0] [C:113000] ramdisk-arm64.rd MOE: cmdline: moe rom/vm-basic.cfg MOE: Starting: rom/ned rom/vm-basic.cfg MOE: loading 'rom/ned' Ned says: Hi World! Ned: loading file: 'rom/vm-basic.cfg' VMM[]: Created VCPU 0 @ 17000 EXCEPTION: (00) undef insn pfa=0100a388, error=02000000 pstate=000003c9 R[ 0]: 000000007b7b3b60 0000000000000000 0000000000000000 0000000000000000 R[ 4]: 0000000000000000 0000000000000003 0000000002400009 0000000000000000 R[ 8]: 0000000000000000 0000000000000000 0000000000000000 0000000002400009 R[12]: 000000007b7b2000 000000007b7b8000 000000007b7b8400 0000000000000000 R[16]: 0000000000000000 0000000000000000 0000000034d0d824 000000007b7aa000 R[20]: 0000000000000001 0000000000000000 0000000000000000 00000000c0010800 R[24]: 0000000000300000 0000000000000000 0000000000000000 0000000000000000 R[28]: 0000000000000000 0000000000000000 0000000000000000 SP: 0000000000000000 PC: 0000000060292a08"

It looks like it is finished “Vmm::Cpu_dev::alloc_main_vcpu();” , an exception occur Does anyone encounter the same problem?

chiaqi commented 1 year ago

The problem has been found! 0000000060292a08 : msr x15 dacr32_el2 fiasco/src/lib/disasm/capstone/arch/AArch64/AArch64BaseInfo.c line 215 from the arm document, "value has no effect on execution in AArch64 state."