VMware {code} Community
psk1801
Contributor
Contributor
Jump to solution

API for condition wait

Hi,

can any one suggest me which api I used for waiting for an condition wait instead of vmk_worldWait() , because system is crashed while using this api in Interrupt handler.

Error :

2016-04-13T11:24:15.519Z cpu2:33075)@BlueScreen: NOT_IMPLEMENTED bora/vmkernel/sched/cpusched.c:9556

2016-04-13T11:24:15.529Z cpu2:33075)Code start: 0x418018800000 VMK uptime: 0:00:03:34.556

2016-04-13T11:24:15.538Z cpu2:33075)0x4390c999af90:[0x418018876eea]PanicvPanicInt@vmkernel#nover+0x37e stack: 0x4390c999b028

2016-04-13T11:24:15.550Z cpu2:33075)0x4390c999b020:[0x418018877205]Panic_NoSaveNoReturn@vmkernel#nover+0x4d stack: 0x4390c999b080

2016-04-13T11:24:15.562Z cpu2:33075)0x4390c999b080:[0x418018855aec]Int6_UD2Assert@vmkernel#nover+0x12c stack: 0x418018b9c8a9

2016-04-13T11:24:15.573Z cpu2:33075)0x4390c999b120:[0x4180188c6044]gate_entry_@vmkernel#nover+0x0 stack: 0x0

2016-04-13T11:24:15.584Z cpu2:33075)0x4390c999b1e0:[0x418018a1173e]CpuSchedWait@vmkernel#nover+0x26e stack: 0x0

2016-04-13T11:24:15.594Z cpu2:33075)0x4390c999b260:[0x418018a11a2b]CpuSchedTimedWaitInt@vmkernel#nover+0x9f stack: 0x4390c999b3a0

2016-04-13T11:24:15.607Z cpu2:33075)0x4390c999b2c0:[0x418018a11ac1]CpuSched_TimedWait@vmkernel#nover+0x19 stack: 0x4305f5667360

2016-04-13T11:24:15.619Z cpu2:33075)0x4390c999b2e0:[0x41801889afdf]vmkWorldWait@vmkernel#nover+0xa3 stack: 0x50

2016-04-13T11:24:15.629Z cpu2:33075)0x4390c999b320:[0x41801889b078]vmk_WorldWait@vmkernel#nover+0x84 stack: 0xc3

Reply
0 Kudos
1 Solution

Accepted Solutions
chrklee
Enthusiast
Enthusiast
Jump to solution

You cannot wait inside a BH or interrupt handler. Can you describe what problem you are trying to solve?

Thanks,

Christoph

View solution in original post

Reply
0 Kudos
2 Replies
chrklee
Enthusiast
Enthusiast
Jump to solution

You cannot wait inside a BH or interrupt handler. Can you describe what problem you are trying to solve?

Thanks,

Christoph

Reply
0 Kudos
psk1801
Contributor
Contributor
Jump to solution

Hi chrklee.

I found the solution for the same.

the problem is while handling the interrupt , we are waiting to complete a task . But according  to document we can't wait while handling the interrupt. So we used vmk_HelperCreate api to avoid this problem.


I have another doubt , I implemented task management command for storage adapter , but I don't  know how to test. can you please help me for the same.


Thanks in advanced.


Pushpendra

Reply
0 Kudos