<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br><br><div>
<em><strong></strong></em> Hi all,<BR><br><BR><br><BR>I try to do hypercalls but I always have a kernel panic that I don't understand.<br>I have Scentific Linux 6 installed on kvm and my computer has ubuntu.<br>I try to modify the SL6 kernel to do hypercalls.<br>I have a function in that kernel which check all syscalls in the VM.<br><br>When I put the hypercall at the beginning of this function, it perfectly works,<br>but when I try to put it in the middle of the function I have a kernel panic with this<br>error:<br><br>"divide error: 0000 [#1] SMP <br>...<br> [<ffffffff813f8cdd>] panic+0x78/0x137<br> [<ffffffff813fcb94>] oops_end+0xe4/0x100<br> [<ffffffff8101021b>] die+0x5b/0x90<br> [<ffffffff813fc444>] do_trap+0xc4/0x160<br> [<ffffffff8100df2f>] do_divide_error+0x8f/0xb0<br> [<ffffffff811f974c>] ? my_function+0xdc/0xe70 "<br></div><br>Could you have any suggestions ?<br><br><pre>With regards,<br>Emilie<br></pre><br>                                            </body>
</html>