kvms
kvms copied to clipboard
Host VM kernel panic when host shutdown when guest still running
This was seen in Jenkins CI setup.
Test flow:
Launch Host VM using make KERNEL_DIR=/hyp/oss/linux GRAPHICS=1 run
Launch Guest VM from Host VM using sudo ./run-qemu6-linux.sh
Wait for Guest VM to start, collect some logs and then shutdown now
After delay do shutdown now
also in Host VM.
If Guest VM did not have time to shutdown before Host VM shutdown was initiated (or progressed far enough ?), kernel panics:
[0m[0;31m[000001387119] host_data_abort exception was at host virtual address 0xffff800010494a38 (0x40694a38)
[0m[0;31m[000001387120] print_regs x00(0x0000fffefc316c00):x01(0xffff80001512bd48):x02(0x0000000000000008):x03(0x0001000020060001)
[0m[0;31m[000001387121] print_regs x04(0xffff000001b3e410):x05(0x0000fffefc316c08):x06(0x0000fffefc316c00):x07(0xffff80001512bd40)
[0m[0;31m[000001387122] print_regs x08(0x0000000000000008):x09(0x0000000000000003):x10(0x0000000000000008):x11(0x0000000000000000)
[0m[0;31m[000001387123] print_regs x12(0x0000000000000000):x13(0x0000000000000000):x14(0x0000000000000000):x15(0xffff80001512bd40)
[0m[0;31m[000001387123] print_regs x16(0x0000000000000000):x17(0x0000000000000000):x18(0x0000000000000000):x19(0xffff000001b3e410)
[0m[0;31m[000001387124] print_regs x20(0x0000000000044516):x21(0xffff00002f434000):x22(0x0000000000001000):x23(0xffff80001512bd40)
[0m[0;31m[000001387125] print_regs x24(0x0000000000044516):x25(0x000000000000ffff):x26(0x0000000000000008):x27(0xffff0000063ced80)
[0m[0;31m[000001387126] print_regs x28(0xffff00002f434000):x29(0xffff80001512bc10):x30(0xffff80001003cab8)
[0m[0;31m[000001387126] host_data_abort kernel violation: requesting host kernel crash dump
[0m[ 1375.750955] kernel BUG at arch/arm64/kernel/traps.c:407!
[ 1375.750986] kernel BUG at arch/arm64/kernel/traps.c:407!
[ 1375.751504] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
[ 1375.753496] Modules linked in:
[ 1375.755436] CPU: 3 PID: 141 Comm: systemd-journal Not tainted 5.10.100-00001-g6a45f9a883e3 #1
[ 1375.756058] Hardware name: linux,dummy-virt (DT)
[ 1375.756866] pstate: 00400005 (nzcv daif +PAN -UAO -TCO BTYPE=--)
[ 1375.759386] pc : do_undefinstr+0x2ec/0x310
[ 1375.759702] lr : do_undefinstr+0x1e0/0x310
[ 1375.759991] sp : ffff80001320b800
[ 1375.760183] x29: ffff80001320b800 x28: ffff000002776040
[ 1375.761106] x27: 0000000000000000 x26: 0000ffffe8959cb8
[ 1375.763099] x25: ffff000002776040 x24: ffff80001320bb30
[ 1375.763537] x23: 0000000040400005 x22: ffff800010494a38
[ 1375.763984] x21: ffff80001320b9e0 x20: ffff000002776040
[ 1375.764355] x19: ffff80001320b890 x18: 0000000000000000
[ 1375.764735] x17: 0000000000000000 x16: 0000000000000000
[ 1375.765415] x15: ffff800010494a38
[ 1375.765452] ------------[ cut here ]------------
see full log at host.log
Full CI execution: http://dashingtestautomation.asuscomm.com:8080/job/kvms_multibranch//job/master/27/