<div dir="ltr">Dear Panda Developers and Users,<div><br></div><div>I am trying to trace back the source of DMA operations in the context of the &#39;current&#39; process. I am thinking to reuse the call back function &quot;panda_callbacks_before_dma()&quot;, whose signature is as follows:</div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">void panda_callbacks_before_dma(CPUState *cpu,<b> hwaddr addr1</b>, const uint8_t *buf, hwaddr l, int is_write);</font><br></div><div><br></div><div>To be more precise, I am trying to translate the &#39;addr1&#39;, which is the source address of DMA in terms of guest physical address, back to a virtual address, which is used by the guest virtual CPU. Any advises or pointers about how can I achieve that?</div><div><br></div><div>Thanks for your time and help in advance.</div><div><br></div><div>Best,</div><div>Bo</div></div>