public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* general protection fault
       [not found] ` <10EA09EFD8728347A513008B6B0DA77A0174CF0E-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2007-05-18 20:59   ` Andrey Dmitriev
  2007-05-20  7:21     ` Dor Laor
  0 siblings, 1 reply; 6+ messages in thread
From: Andrey Dmitriev @ 2007-05-18 20:59 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

 
What to do?


malysh:/var/log# uname -a
Linux malysh 2.6.18-4-xen-amd64 #1 SMP Fri May 4 02:40:51 UTC 2007 
x86_64 GNU/Linux


kvm_amd                21520  0
kvm                    68596  1 kvm_amd


kvm -no-acpi -hda /kvm/vdiskXP.qcow  -cdrom /dev/cdrom1 -boot d -m 256

malysh kernel: general protection fault: 0000 [1] SMP

May 18 16:52:23 malysh kernel: Modules linked in: isofs udf nvidia 
bridge netloop ppdev parport_pc lp parport ipv6 dm_snapshot dm_mirror 
dm_mod kvm_amd kvm loop snd_hda_intel snd_hda_codec snd_pcm_oss 
snd_mixer_oss serio_raw i2c_nforce2 psmouse snd_pcm snd_timer snd 
soundcore snd_page_alloc i2c_core pcspkr tsdev sg evdev sr_mod cdrom 
usbhid ext3 jbd mbcache usb_storage sd_mod generic ide_core tulip 
ehci_hcd ohci_hcd sata_nv libata scsi_mod
May 18 16:52:23 malysh kernel: Pid: 5639, comm: kvm Tainted: P      
2.6.18-4-xen-amd64 #1
May 18 16:52:23 malysh kernel: RIP: e030:[<ffffffff881e7455>]  
[<ffffffff881e7455>] :kvm_amd:svm_vcpu_run+0xb9/0x578
May 18 16:52:23 malysh kernel: RSP: e02b:ffff88000711fc88  EFLAGS: 
00010206
May 18 16:52:23 malysh kernel: RAX: 0000000000000000 RBX: 
ffff8800060d08c0 RCX: ffffffff881d4ff6
May 18 16:52:23 malysh kernel: RDX: 0000000000000000 RSI: 
ffff88002b3a8000 RDI: ffff8800060d08c0
May 18 16:52:23 malysh kernel: RBP: ffff8800060d08c0 R08: 
ffff880033938000 R09: 0000000000000000
May 18 16:52:23 malysh kernel: R10: 00007fff459adc10 R11: 
ffffffff881e6d35 R12: ffff88002b3a8000
May 18 16:52:23 malysh kernel: R13: ffff88002b3a8000 R14: 
0000000000000006 R15: 00000000028210f0
May 18 16:52:23 malysh kernel: FS:  00002b3b6647a960(0000) 
GS:ffffffff804c4000(0000) knlGS:0000000000000000
May 18 16:52:23 malysh kernel: CS:  e033 DS: 0000 ES: 0000
May 18 16:52:23 malysh kernel: Process kvm (pid: 5639, threadinfo 
ffff88000711e000, task ffff8800073bb870)
May 18 16:52:23 malysh kernel: Stack:  ffff8800290809c0  
ffff8800060d08c0  000000000000ae80  ffff88002b3a8000
May 18 16:52:23 malysh kernel:  0000000000000006  ffffffff881d5265  
0000000000000cef  0000000000000000
May 18 16:52:23 malysh kernel:  0000000000000000  0000000000000000
May 18 16:52:23 malysh kernel: Call Trace:
May 18 16:52:23 malysh kernel:  [<ffffffff881d5265>] 
:kvm:kvm_vcpu_ioctl+0x26f/0xbd2
May 18 16:52:23 malysh kernel:  [<ffffffff8025ce4f>] error_exit+0x0/0x6e
May 18 16:52:23 malysh kernel:  [<ffffffff802608e9>] 
_read_lock_irq+0x9/0x18
May 18 16:52:23 malysh kernel:  [<ffffffff802071cf>] 
find_get_page+0x44/0x4b
May 18 16:52:23 malysh kernel:  [<ffffffff802138b8>] 
filemap_nopage+0x188/0x314
May 18 16:52:23 malysh kernel:  [<ffffffff802090a8>] 
__handle_mm_fault+0x8f3/0xe85
May 18 16:52:23 malysh kernel:  [<ffffffff8020622a>] 
hypercall_page+0x22a/0x1000
May 18 16:52:23 malysh kernel:  [<ffffffff8026083a>] 
_spin_lock_irqsave+0x9/0x14
May 18 16:52:23 malysh kernel:  [<ffffffff8022253c>] __up_read+0x13/0x8a
May 18 16:52:23 malysh kernel:  [<ffffffff8020ba57>] 
do_page_fault+0xdce/0x112f
May 18 16:52:23 malysh kernel:  [<ffffffff8025ec8e>] 
thread_return+0x5d/0xfc
May 18 16:52:23 malysh kernel:  [<ffffffff80241bfe>] do_ioctl+0x21/0x6b
May 18 16:52:23 malysh kernel:  [<ffffffff80230fac>] 
vfs_ioctl+0x252/0x26b
May 18 16:52:23 malysh kernel:  [<ffffffff8025a896>] 
getnstimeofday+0x10/0x28
May 18 16:52:23 malysh kernel:  [<ffffffff8024bf0e>] sys_ioctl+0x59/0x78
May 18 16:52:23 malysh kernel:  [<ffffffff8025c72e>] 
system_call+0x86/0x8b
May 18 16:52:23 malysh kernel:  [<ffffffff8025c6a8>] 
system_call+0x0/0x8b
May 18 16:52:23 malysh kernel:

-----Original Message-----
From: Dong, Eddie [mailto:eddie.dong-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org] 
Sent: Friday, May 18, 2007 1:34 AM
To: kvm-devel
Subject: [kvm-devel] A minor cleanup




commit 2927aaddf9d5b83cf894e409c98eeaf8563359a5
Author: root <root@vt32-pae.(none)>
Date:   Fri May 18 13:31:58 2007 +0800

    Cleanup redundant code in MSR set
    
    Signed-off-by: Yaozu (Eddie) Dong <eddie.dong-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c index 
5386461..33f6024 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -642,8 +642,6 @@ static int vmx_set_msr(struct kvm_vcpu *vcpu, u32 
msr_index, u64 data)
 			break;
 		}
 		return kvm_set_msr_common(vcpu, msr_index, data);
-		msr->data = data;
-		break;
 	}
 
 	return 0;



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: general protection fault
  2007-05-18 20:59   ` general protection fault Andrey Dmitriev
@ 2007-05-20  7:21     ` Dor Laor
  0 siblings, 0 replies; 6+ messages in thread
From: Dor Laor @ 2007-05-20  7:21 UTC (permalink / raw)
  To: Andrey Dmitriev, kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

>What to do?
>

Re-test it without using xen's dom0 kernel.

>
>malysh:/var/log# uname -a
>Linux malysh 2.6.18-4-xen-amd64 #1 SMP Fri May 4 02:40:51 UTC 2007
>x86_64 GNU/Linux
>
>
>kvm_amd                21520  0
>kvm                    68596  1 kvm_amd

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* general protection fault
@ 2012-01-18  4:40 Dyweni - KVM
  2012-01-18  5:22 ` Dyweni - KVM
  2012-02-02 12:40 ` Avi Kivity
  0 siblings, 2 replies; 6+ messages in thread
From: Dyweni - KVM @ 2012-01-18  4:40 UTC (permalink / raw)
  To: KVM, Qemu Devel, Oprofile-List, Linux-Kernel

 Hi All,

 I'm not sure who this falls to, so I've included all all parties that I 
 thought may be relevant.

 I'm getting the following error from my guest kernel when running 
 oprofile within qemu-kvm:

 general protection fault: 0000 [#1]
 Modules linked in:

 Pid: 896, comm: oprofiled Not tainted 3.2.0-rc7-20120117-0605 #1 Bochs 
 Bochs
 EIP: 0060:[<c14069ae>] EFLAGS: 00010086 CPU: 0
 EIP is at nmi_cpu_setup.clone.6+0x2e/0xb0
 EAX: 00000000 EBX: df89894c ECX: c0010005 EDX: 00000000
 ESI: 00000001 EDI: c168e5c0 EBP: df8addf4 ESP: df8adde4
  DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
 Process oprofiled (pid: 896, ti=df8ac000 task=df82f780 
 task.ti=df8ac000)
 Stack:
  df898980 00000004 fffffff0 d4520880 df8ade08 c1406d4b c1618dfa 
 00000000
  00000000 df8ade14 c140464f dc792de0 df8ade28 c1405963 d4520880 
 dc792de0
  00000000 df8ade4c c1111bfa c111c7fe df84c000 df8ade44 dc77ef80 
 df8adeec
 Call Trace:
  [<c1406d4b>] nmi_setup+0xab/0xd0
  [<c140464f>] oprofile_setup+0x2f/0xb0
  [<c1405963>] event_buffer_open+0x63/0x90
  [<c1111bfa>] __dentry_open.clone.17+0x1aa/0x2d0
  [<c111c7fe>] ? do_lookup+0x3e/0x370
  [<c1112c82>] nameidata_to_filp+0x52/0x70
  [<c1405900>] ? event_buffer_release+0x40/0x40
  [<c111f1b6>] do_last+0x1e6/0x740
  [<c111f7ea>] path_openat+0x9a/0x320
  [<c10fd854>] ? page_add_new_anon_rmap+0x74/0x80
  [<c111fb60>] do_filp_open+0x30/0x80
  [<c112904c>] ? alloc_fd+0x2c/0xd0
  [<c1112d8b>] do_sys_open+0xeb/0x1c0
  [<c1112e89>] sys_open+0x29/0x40
  [<c14b0f8c>] sysenter_do_call+0x12/0x22
 Code: 57 56 53 83 ec 04 a1 90 e5 68 c1 8b 3d 44 a5 78 c1 8b 1d 8c e5 68 
 c1 89 45 f0 8b 07 85 c0 74 1d 31 f6 8d 76 00 8b 0b 85 c9 74 08 <0f> 32 
 89 43 04 89 53 08 83 c6 01 83 c3 0c 3b 37 72 e8 8b 77 04
 EIP: [<c14069ae>] nmi_cpu_setup.clone.6+0x2e/0xb0 SS:ESP 0068:df8adde4
 ---[ end trace e22f1adcb9f592c1 ]---




 My setup is:

 QEMU-KVM = 0.14.1-r2
 Host Linux Kernel = 3.1.6
 Guest Linux Kernel = 3.2-rc7
 OProfile = 0.9.6-r1



-- 
 Thanks,
 Dyweni

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: general protection fault
  2012-01-18  4:40 general protection fault Dyweni - KVM
@ 2012-01-18  5:22 ` Dyweni - KVM
  2012-02-02 12:15   ` [Qemu-devel] " Robert Richter
  2012-02-02 12:40 ` Avi Kivity
  1 sibling, 1 reply; 6+ messages in thread
From: Dyweni - KVM @ 2012-01-18  5:22 UTC (permalink / raw)
  To: KVM, Qemu Devel, Oprofile-List, Linux-Kernel

 Hi All,

 I'm getting a very similar error when running oprofile on the 
 host...same version of oprofile...



 general protection fault: 0000 [#1] PREEMPT SMP
 CPU 5
 Modules linked in: iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi 
 vboxnetadp vboxnetflt vboxdrv nvidia(P)

 Pid: 1498, comm: oprofiled Tainted: P            
 3.1.6-gentoo-20120114-0749 #1 MSI MS-7578/NF750-G55 (MS-7578)
 RIP: 0010:[<ffffffff81093758>]  [<ffffffff81093758>] 
 raw_notifier_chain_register+0x18/0x40
 RSP: 0018:ffff88022ed4dbb8  EFLAGS: 00010206
 RAX: 65526d6562574955 RBX: ffffffff8172b4b0 RCX: ffffffff81733ff8
 RDX: 0000000000000000 RSI: ffffffff8172b4b0 RDI: ffffffff817ae968
 RBP: ffff88022ed4dbb8 R08: ffffffff81734ef0 R09: 0000000000000000
 R10: 00003ffffffff000 R11: 0000160000000000 R12: ffffffff81734ef0
 R13: 000000000000e160 R14: ffffffff8172b520 R15: 0000000000000005
 FS:  00007f7179020700(0000) GS:ffff88033fd40000(0000) 
 knlGS:00000000f75a36c0
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 000000000062a000 CR3: 0000000327cd8000 CR4: 00000000000006e0
 DR0: 0000000000000001 DR1: 0000000000000002 DR2: 0000000000000001
 DR3: 000000000000000a DR6: 00000000ffff0ff0 DR7: 0000000000000400
 Process oprofiled (pid: 1498, threadinfo ffff88022ed4c000, task 
 ffff880331635eb0)
 Stack:
  ffff88022ed4dbe8 ffffffff814fa020 ffff88022ed4dbe8 ffffffff81093dc0
  000000000000e160 0000000000000000 ffff88022ed4dc48 ffffffff81470325
  ffff88032a5724a8 0000000000000005 ffff88033fd40000 00000008810f95d0
 Call Trace:
  [<ffffffff814fa020>] register_cpu_notifier+0x20/0x40
  [<ffffffff81093dc0>] ? register_die_notifier+0x20/0x30
  [<ffffffff81470325>] nmi_setup+0x1d5/0x200
  [<ffffffff8146e830>] ? event_buffer_release+0x50/0x50
  [<ffffffff8146d109>] oprofile_setup+0x39/0xd0
  [<ffffffff8146e890>] event_buffer_open+0x60/0xa0
  [<ffffffff81119de0>] ? file_sb_list_add+0x50/0x60
  [<ffffffff8111685e>] __dentry_open.clone.17+0x12e/0x330
  [<ffffffff81117a2e>] nameidata_to_filp+0x4e/0x60
  [<ffffffff81126ac2>] do_last+0x1b2/0x8f0
  [<ffffffff81127313>] path_openat+0xd3/0x3c0
  [<ffffffff81127714>] do_filp_open+0x44/0xa0
  [<ffffffff81133724>] ? alloc_fd+0xe4/0x130
  [<ffffffff81117b3c>] do_sys_open+0xfc/0x1d0
  [<ffffffff81117c2b>] sys_open+0x1b/0x20
  [<ffffffff8150763b>] system_call_fastpath+0x16/0x1b
 Code: 5b 41 5c 41 5d 41 5e 41 5f c9 c3 31 c0 eb ed 0f 1f 40 00 55 48 8b 
 07 48 89 e5 48 85 c0 74 1e 8b 56 10 3b 50 10 7e 09 eb 14 66 90
  50 10 7c 0d 48 8d 78 08 48 8b 40 08 48 85 c0 75 ee 48 89 46
 RIP  [<ffffffff81093758>] raw_notifier_chain_register+0x18/0x40
  RSP <ffff88022ed4dbb8>
 ---[ end trace 8dcb6b8322e14541 ]---





 ---
 Thanks,
 Dyweni

 On Tue, 17 Jan 2012 22:40:58 -0600, Dyweni - KVM wrote:

> Hi All,
>
> I'm not sure who this falls to, so I've included all all parties that 
> I
> thought may be relevant.
>
> I'm getting the following error from my guest kernel when running
> oprofile within qemu-kvm:
>
> general protection fault: 0000 [#1]
> Modules linked in:
>
> Pid: 896, comm: oprofiled Not tainted 3.2.0-rc7-20120117-0605 #1 
> Bochs
> Bochs
> EIP: 0060:[] EFLAGS: 00010086 CPU: 0
> EIP is at nmi_cpu_setup.clone.6+0x2e/0xb0
> EAX: 00000000 EBX: df89894c ECX: c0010005 EDX: 00000000
> ESI: 00000001 EDI: c168e5c0 EBP: df8addf4 ESP: df8adde4
> DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
> Process oprofiled (pid: 896, ti=df8ac000 task=df82f780
> task.ti=df8ac000)
> Stack:
> df898980 00000004 fffffff0 d4520880 df8ade08 c1406d4b c1618dfa
> 00000000
> 00000000 df8ade14 c140464f dc792de0 df8ade28 c1405963 d4520880
> dc792de0
> 00000000 df8ade4c c1111bfa c111c7fe df84c000 df8ade44 dc77ef80
> df8adeec
> Call Trace:
> [] nmi_setup+0xab/0xd0
> [] oprofile_setup+0x2f/0xb0
> [] event_buffer_open+0x63/0x90
> [] __dentry_open.clone.17+0x1aa/0x2d0
> [] ? do_lookup+0x3e/0x370
> [] nameidata_to_filp+0x52/0x70
> [] ? event_buffer_release+0x40/0x40
> [] do_last+0x1e6/0x740
> [] path_openat+0x9a/0x320
> [] ? page_add_new_anon_rmap+0x74/0x80
> [] do_filp_open+0x30/0x80
> [] ? alloc_fd+0x2c/0xd0
> [] do_sys_open+0xeb/0x1c0
> [] sys_open+0x29/0x40
> [] sysenter_do_call+0x12/0x22
> Code: 57 56 53 83 ec 04 a1 90 e5 68 c1 8b 3d 44 a5 78 c1 8b 1d 8c e5 
> 68
> c1 89 45 f0 8b 07 85 c0 74 1d 31 f6 8d 76 00 8b 0b 85 c9 74 08 32
> 89 43 04 89 53 08 83 c6 01 83 c3 0c 3b 37 72 e8 8b 77 04
> EIP: [] nmi_cpu_setup.clone.6+0x2e/0xb0 SS:ESP 0068:df8adde4
> ---[ end trace e22f1adcb9f592c1 ]---
>
> My setup is:
>
> QEMU-KVM = 0.14.1-r2
> Host Linux Kernel = 3.1.6
> Guest Linux Kernel = 3.2-rc7
> OProfile = 0.9.6-r1
>
> --
> Thanks,
> Dyweni

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] general protection fault
  2012-01-18  5:22 ` Dyweni - KVM
@ 2012-02-02 12:15   ` Robert Richter
  0 siblings, 0 replies; 6+ messages in thread
From: Robert Richter @ 2012-02-02 12:15 UTC (permalink / raw)
  To: Dyweni - KVM; +Cc: Oprofile-List, Qemu Devel, KVM, Linux-Kernel

Dyweni,

On 17.01.12 23:22:29, Dyweni - KVM wrote:
>  I'm getting a very similar error when running oprofile on the 
>  host...same version of oprofile...
> 
> 
> 
>  general protection fault: 0000 [#1] PREEMPT SMP
>  CPU 5
>  Modules linked in: iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi 
>  vboxnetadp vboxnetflt vboxdrv nvidia(P)
> 
>  Pid: 1498, comm: oprofiled Tainted: P            
>  3.1.6-gentoo-20120114-0749 #1 MSI MS-7578/NF750-G55 (MS-7578)
>  RIP: 0010:[<ffffffff81093758>]  [<ffffffff81093758>] 
>  raw_notifier_chain_register+0x18/0x40
>  RSP: 0018:ffff88022ed4dbb8  EFLAGS: 00010206
>  RAX: 65526d6562574955 RBX: ffffffff8172b4b0 RCX: ffffffff81733ff8
>  RDX: 0000000000000000 RSI: ffffffff8172b4b0 RDI: ffffffff817ae968
>  RBP: ffff88022ed4dbb8 R08: ffffffff81734ef0 R09: 0000000000000000
>  R10: 00003ffffffff000 R11: 0000160000000000 R12: ffffffff81734ef0
>  R13: 000000000000e160 R14: ffffffff8172b520 R15: 0000000000000005
>  FS:  00007f7179020700(0000) GS:ffff88033fd40000(0000) 
>  knlGS:00000000f75a36c0
>  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
>  CR2: 000000000062a000 CR3: 0000000327cd8000 CR4: 00000000000006e0
>  DR0: 0000000000000001 DR1: 0000000000000002 DR2: 0000000000000001
>  DR3: 000000000000000a DR6: 00000000ffff0ff0 DR7: 0000000000000400
>  Process oprofiled (pid: 1498, threadinfo ffff88022ed4c000, task 
>  ffff880331635eb0)
>  Stack:
>   ffff88022ed4dbe8 ffffffff814fa020 ffff88022ed4dbe8 ffffffff81093dc0
>   000000000000e160 0000000000000000 ffff88022ed4dc48 ffffffff81470325
>   ffff88032a5724a8 0000000000000005 ffff88033fd40000 00000008810f95d0
>  Call Trace:
>   [<ffffffff814fa020>] register_cpu_notifier+0x20/0x40
>   [<ffffffff81093dc0>] ? register_die_notifier+0x20/0x30
>   [<ffffffff81470325>] nmi_setup+0x1d5/0x200
>   [<ffffffff8146e830>] ? event_buffer_release+0x50/0x50
>   [<ffffffff8146d109>] oprofile_setup+0x39/0xd0
>   [<ffffffff8146e890>] event_buffer_open+0x60/0xa0
>   [<ffffffff81119de0>] ? file_sb_list_add+0x50/0x60
>   [<ffffffff8111685e>] __dentry_open.clone.17+0x12e/0x330
>   [<ffffffff81117a2e>] nameidata_to_filp+0x4e/0x60
>   [<ffffffff81126ac2>] do_last+0x1b2/0x8f0
>   [<ffffffff81127313>] path_openat+0xd3/0x3c0
>   [<ffffffff81127714>] do_filp_open+0x44/0xa0
>   [<ffffffff81133724>] ? alloc_fd+0xe4/0x130
>   [<ffffffff81117b3c>] do_sys_open+0xfc/0x1d0
>   [<ffffffff81117c2b>] sys_open+0x1b/0x20
>   [<ffffffff8150763b>] system_call_fastpath+0x16/0x1b
>  Code: 5b 41 5c 41 5d 41 5e 41 5f c9 c3 31 c0 eb ed 0f 1f 40 00 55 48 8b 
>  07 48 89 e5 48 85 c0 74 1e 8b 56 10 3b 50 10 7e 09 eb 14 66 90
>   50 10 7c 0d 48 8d 78 08 48 8b 40 08 48 85 c0 75 ee 48 89 46
>  RIP  [<ffffffff81093758>] raw_notifier_chain_register+0x18/0x40
>   RSP <ffff88022ed4dbb8>
>  ---[ end trace 8dcb6b8322e14541 ]---

I tried to create a similar setup but can't see which instruction
could trigger the gp. If you have the object files available, could
you send me the obj dump of raw_notifier_chain_register() of the host
setup with something like:

 objdump -Sdl kernel/notifier.o

Is there any special in your oprofile setup?

>  On Tue, 17 Jan 2012 22:40:58 -0600, Dyweni - KVM wrote:
> > I'm getting the following error from my guest kernel when running
> > oprofile within qemu-kvm:
> >
> > general protection fault: 0000 [#1]
> > Modules linked in:
> >
> > Pid: 896, comm: oprofiled Not tainted 3.2.0-rc7-20120117-0605 #1 
> > Bochs
> > Bochs
> > EIP: 0060:[] EFLAGS: 00010086 CPU: 0
> > EIP is at nmi_cpu_setup.clone.6+0x2e/0xb0
> > EAX: 00000000 EBX: df89894c ECX: c0010005 EDX: 00000000
> > ESI: 00000001 EDI: c168e5c0 EBP: df8addf4 ESP: df8adde4
> > DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
> > Process oprofiled (pid: 896, ti=df8ac000 task=df82f780
> > task.ti=df8ac000)
> > Stack:
> > df898980 00000004 fffffff0 d4520880 df8ade08 c1406d4b c1618dfa
> > 00000000
> > 00000000 df8ade14 c140464f dc792de0 df8ade28 c1405963 d4520880
> > dc792de0
> > 00000000 df8ade4c c1111bfa c111c7fe df84c000 df8ade44 dc77ef80
> > df8adeec
> > Call Trace:
> > [] nmi_setup+0xab/0xd0
> > [] oprofile_setup+0x2f/0xb0
> > [] event_buffer_open+0x63/0x90
> > [] __dentry_open.clone.17+0x1aa/0x2d0
> > [] ? do_lookup+0x3e/0x370
> > [] nameidata_to_filp+0x52/0x70
> > [] ? event_buffer_release+0x40/0x40
> > [] do_last+0x1e6/0x740
> > [] path_openat+0x9a/0x320
> > [] ? page_add_new_anon_rmap+0x74/0x80
> > [] do_filp_open+0x30/0x80
> > [] ? alloc_fd+0x2c/0xd0
> > [] do_sys_open+0xeb/0x1c0
> > [] sys_open+0x29/0x40
> > [] sysenter_do_call+0x12/0x22
> > Code: 57 56 53 83 ec 04 a1 90 e5 68 c1 8b 3d 44 a5 78 c1 8b 1d 8c e5 
> > 68
> > c1 89 45 f0 8b 07 85 c0 74 1d 31 f6 8d 76 00 8b 0b 85 c9 74 08 32
> > 89 43 04 89 53 08 83 c6 01 83 c3 0c 3b 37 72 e8 8b 77 04
> > EIP: [] nmi_cpu_setup.clone.6+0x2e/0xb0 SS:ESP 0068:df8adde4
> > ---[ end trace e22f1adcb9f592c1 ]---

Running oprofile in qemu-kvm guests is not supported, though an gp
should not be triggered by the oprofile driver. Do you see anything in
dmesg of the host when the guest gp triggers?

Same here, could you send me the objdump of nmi_cpu_setup() and
nmi_setup() (guest kernel)?

 objdump -Sdl arch/x86/oprofile/nmi_int.o

Thanks,

-Robert

-- 
Advanced Micro Devices, Inc.
Operating System Research Center


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: general protection fault
  2012-01-18  4:40 general protection fault Dyweni - KVM
  2012-01-18  5:22 ` Dyweni - KVM
@ 2012-02-02 12:40 ` Avi Kivity
  1 sibling, 0 replies; 6+ messages in thread
From: Avi Kivity @ 2012-02-02 12:40 UTC (permalink / raw)
  To: n2CpHSJnr4MP; +Cc: KVM, Qemu Devel, Oprofile-List, Linux-Kernel

On 01/18/2012 06:40 AM, Dyweni - KVM wrote:
> Hi All,
>
> I'm not sure who this falls to, so I've included all all parties that
> I thought may be relevant.
>
> I'm getting the following error from my guest kernel when running
> oprofile within qemu-kvm:
>

kvm does not virtualize a PMU before Linux 3.3, so oprofile is not
supported.  The facilities for identifying the PMU to the guest are very
lacking, so it's hard to make this fail gracefully.

On a Linux 3.3 host, you can provide a PMU to the guest, but only using
latest qemu and providing -cpu host or similar.  This only works on
Intel hosts for now.

-- 
error compiling committee.c: too many arguments to function

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-02-02 12:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-18  4:40 general protection fault Dyweni - KVM
2012-01-18  5:22 ` Dyweni - KVM
2012-02-02 12:15   ` [Qemu-devel] " Robert Richter
2012-02-02 12:40 ` Avi Kivity
  -- strict thread matches above, loose matches on Subject: below --
2007-05-18  5:34 A minor cleanup Dong, Eddie
     [not found] ` <10EA09EFD8728347A513008B6B0DA77A0174CF0E-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-05-18 20:59   ` general protection fault Andrey Dmitriev
2007-05-20  7:21     ` Dor Laor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox