Code: Select all
qemu-system-x86_64 -bios res/OVMF.fd -cdrom img/microNET.fat -serial stdio -net none -m 512M -accel kvm -cpu Penryn
This is worrisome. KVM is supposed to be more realistic than basic QEMU, and KVM disallows some memory mistakes, iirc.
Anyways, I push on.
Using noshutdown/noreboot, I can read the registers dump from the kernel panic screen:
Code: Select all
FATAL ERROR: CPU EXCEPTION d -/- ERROR CODE
DS: 10
RDI: 2b | RSI: 1c12b071 | RBP: f | RSP: 10dec8
RBX: 114080 | RDX: 1c12b013 | RCX: 1c12b021 | RAX: 32
RIP: 10287a | CS: 8
RFLAGS: 10006
I look for that particular instruction:
Code: Select all
102873: 48 01 ce add rsi,rcx
102876: 66 0f ef c0 pxor xmm0,xmm0
10287a: 66 0f 7f 01 movdqa XMMWORD PTR [rcx],xmm0 ; <------- here
10287e: 48 83 c1 10 add rcx,0x10
102882: 48 39 f1 cmp rcx,rsi
102885: 75 f3 jne 10287a <_ZN8terminal5shiftEv+0xe8>
It looks like a memcopy, but I'm unsure.
Anyway, I don't know if this is a general bug or a KVM issue, so please let me know what you think.