From: Zachery Salwasser Subject: (qemu)info registers -- Not working for me. Date: Sat, 27 Feb 2010 13:34:33 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE To: kvm@vger.kernel.org Return-path: Received: from na3sys009aog105.obsmtp.com ([74.125.149.75]:51683 "EHLO na3sys009aog105.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030500Ab0B0See convert rfc822-to-8bit (ORCPT ); Sat, 27 Feb 2010 13:34:34 -0500 Received: by pwi10 with SMTP id 10so801037pwi.15 for ; Sat, 27 Feb 2010 10:34:33 -0800 (PST) Sender: kvm-owner@vger.kernel.org List-ID: I have been having trouble with reading the extended registers normally read by kvm_get_sregs() on host kernels ~2.6.32 and higher. I am currently running Linux 2.6.32-8, kvm-kmod 2.6.32.8, and qemu 0.12= =2E2. I get the following output when I try info registers on the qemu consol= e: (qemu) info registers EAX=3D6d63c93d EBX=3Dffdffc70 ECX=3Dffdffc70 EDX=3D00000000 ESI=3Dffdffc50 EDI=3D823e7b68 EBP=3D80550f50 ESP=3D80550f34 EIP=3Df8621d3e EFL=3D00000246 [---Z-P-] CPL=3D0 II=3D0 A20=3D1 SMM=3D0 = HLT=3D0 ES =3D3d65 00001000 b772bdf8 3fffe800 DPL=3D3 Reserved CS =3D4fe1 b7d59ff4 b7d5b3a0 6b300100 SS =3D0000 b772bde8 0847ab38 6f300a00 DS =3Db3d0 b7d5b3cc 00000000 7bffd500 DPL=3D2 DS=A0=A0 [E-A] =46S =3De008 b7d5b3a0 b7d59ff4 005bb900 DPL=3D1 CS32 [--A] GS =3Dffff ffffffff 00000007 7fffff00 DPL=3D3 CS64 [CRA] LDT=3D9ff4 b772bde0 00000008 7ffff500 DPL=3D3 DS=A0=A0 [E-A] TR =3D0000 00000080 b7fb63ab 00f00000 GDT=3D=A0=A0=A0=A0 00014fe1 00000100 IDT=3D=A0=A0=A0=A0 b7d5b3cc 0000b3d0 CR0=3D08000101 CR2=3D00002000 CR3=3D00000000 CR4=3D08000101 DR0=3D00000000 DR1=3D00000000 DR2=3D00000000 DR3=3D00000000 DR6=3Dffff0ff0 DR7=3D00000000 =46CW=3D027f FSW=3D0000 [ST=3D0] FTW=3D00 MXCSR=3D00000000 =46PR0=3D0000000000000000 ffff FPR1=3D00ff00ff00ff00ff ffff =46PR2=3D0000000000000000 ffff FPR3=3D00fe000d009900ee ffff =46PR4=3Dff0d9aefff6a604c ffff FPR5=3D00ff000d009a00ef ffff =46PR6=3D0000000000000000 ffff FPR7=3D0080008000800080 ffff XMM00=3D 00000020000000000000000000000001 XMM01=3D81181ab88055f980e115d000000000= 20 XMM02=3Df79092a481181ab8c03845740dd1d000 XMM03=3D81181ab8c0384574000001= 6d804e93e0 XMM04=3Dc0384574000000000000000100000000 XMM05=3De1150000804e7e36f79093= 1400000000 XMM06=3D806f02980000000000000000c0384574 XMM07=3D000000028055f620000000= 80c0384574 Note that cr3 is 0, which doesn't seem possible.=A0 The contents of the sregs is also static across invocations of info registers (whereas the "regs" chang), indicating that the values that are there are garbage. Delving deeper, when I check actual invocations of kvm_get_sregs(), it usually returns either 0 or -22, neither value indicating success.