<div dir="ltr"><div>Thank you for your replay,<br><br></div>What I wanted to say is that I found that the number of requests sent by the VM to the vgpu is different from the number of requests received by KVMGT. I used Ftrace to do the count. I think the i915 driver of the VM sometimes combine multiple requests in just one request sent to KVMGT. <br><br>Am I wrong ? <br><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">Le mer. 25 oct. 2017 à 22:47, Tian, Kevin <<a href="mailto:kevin.tian@intel.com">kevin.tian@intel.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_5440476066734605210WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">it’s decided by KVMGT. the real recipe is EPT, which is a CPU hw virtualization feature to decide which access in VM is trapped or not.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><a name="m_5440476066734605210______replyseparator"></a><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> intel-gvt-dev [mailto:<a href="mailto:intel-gvt-dev-bounces@lists.freedesktop.org" target="_blank">intel-gvt-dev-bounces@lists.freedesktop.org</a>]
<b>On Behalf Of </b>Adel Belkhiri<br>
<b>Sent:</b> Wednesday, October 25, 2017 11:06 PM<br>
<b>To:</b> <a href="mailto:intel-gvt-dev@lists.freedesktop.org" target="_blank">intel-gvt-dev@lists.freedesktop.org</a><br>
<b>Subject:</b> How gpu requests are trapped by kvmgt ?<u></u><u></u></span></p>
</div>
</div></div></div></div><div lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_5440476066734605210WordSection1"><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi everybody,<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I have a question about the implementation of KVMGT. According to the documentation, the virtual machine, may send some requests to the gpu directly (Pass-through) and forward some other requests to the KVMGT
module. <br>
<br>
I read the code of KVMGT but i didn't understand how requests are being sent directly to the gpu ? and who decide which request to be directly sent to the gpu or to be trapped by kvmgt ? Is it the graphics card driver of the VM (i915) or KVMGT ?<u></u><u></u></p>
</div>
<p class="MsoNormal">Thanks a lot for your help.<u></u><u></u></p>
</div>
<p class="MsoNormal">Yours.<u></u><u></u></p>
</div>
</div></div></div></blockquote></div>