> Ah, this was gdb (QEMU has its own monitor and it sums the CS base if > you use $pc, but not if you write an absolute address). Thanks, that's useful to know! I didn't realize QEMU supported this. > However, the trace then shows a crash (triple fault) at 0x63, not 0x58. > > Please run "info registers" from QEMU instead, so that it's possible to > see the hidden part of the segment registers. Here is the register dump from QEMU: (qemu) info registers EAX=00000018 EBX=00000000 ECX=00002000 EDX=00000092 ESI=00005a00 EDI=00003ff4 EBP=000001d0 ESP=00000800 EIP=00000058 EFL=00010046 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES =0018 ffffffff ffffffff 00f0ff00 DPL=3 CS64 [CRA] CS =9020 00090200 ffffffff 00809b00 DPL=0 CS16 [-RA] SS =9000 00090000 ffffffff 00809300 DPL=0 DS16 [-WA] DS =0018 ffffffff ffffffff 00f0ff00 DPL=3 CS64 [CRA] FS =9000 00090000 ffffffff 00809300 DPL=0 DS16 [-WA] GS =9000 00090000 ffffffff 00809300 DPL=0 DS16 [-WA] LDT=0000 00000000 0000ffff 00008200 DPL=0 LDT TR =0000 00000000 0000ffff 00008b00 DPL=0 TSS32-busy GDT= 00090282 00000800 IDT= 00000000 00000000 CR0=00000011 CR2=00000000 CR3=00000000 CR4=00000000 DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 DR6=00000000ffff0ff0 DR7=0000000000000400 EFER=0000000000000000 FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000 XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000 XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000 XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000 Thanks, Nate -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html