On 2017-03-17 13:06, Claudio Scordino wrote: > Dear all, > > we are facing an unexpected exception when running the apic timer to > drive a GPIO as a software PWM. > > The platform is x86. The software runs in a bare-metal cell. The PWM > frequency is 5 KHz. > > When the duty cycle is very high or very low (i.e., two subsequent > interrupts get closer) we face the following unexpected exception: > > FATAL: Unhandled VM-Exit, reason 2 > qualification 0 > vectoring info: 0 interrupt info: 0 > RIP: 0x00000000000f15d6 RSP: 0x00000000000dff08 FLAGS: 10002
"objdump -dS inmate-linked.o" can tell you which instruction at RIP causes this fault. It's a triple fault, likely started off by a general protection or page fault. Jan > RAX: 0x000000044b82f9d8 RBX: 0x00000000000f060f RCX: 0x0000000000000838 > RDX: 0x0000000000000004 RSI: 0x0000000000000a36 RDI: 0xffffffffffffe134 > CS: 10 BASE: 0x0000000000000000 AR-BYTES: a09b EFER.LMA 1 > CR0: 0x0000000080010031 CR3: 0x00000000000f3000 CR4: 0x0000000000002020 > EFER: 0x0000000000000500 > Parking CPU 3 (Cell: "pwm-demo") > Closing cell "pwm-demo" > Page pool usage after cell destruction: mem 4316/16327, remap 16459/131072 > CPU 3 received SIPI, vector 98 > > > Attached the code of the inmate. > > Any suggestion about the reason of this behavior ? > > Many thanks and best regards, > > Claudio > > -- > Claudio Scordino, Ph.D. > Project Manager - Funded research projects > > Evidence Srl > Via Carducci 56 > 56010 S.Giuliano Terme - Pisa - Italy > Phone: +39 050 99 11 224 > Mobile: + 39 393 811 7491 > Fax: +39 050 99 10 812 > http://www.evidence.eu.com <http://www.evidence.eu.com/> > > -- > You received this message because you are subscribed to the Google > Groups "Jailhouse" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout. -- Siemens AG, Corporate Technology, CT RDA ITP SES-DE Corporate Competence Center Embedded Linux -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
