Hi Pierrick,

May 20, 2025 at 10:01 PM, Pierrick Bouvier wrote:
> Regarding the issue with the same tb being mapped at different virtual 
> addresses, I'm ok with the current solution of comparing only page bits.
> 
> That said, a better solution could be to compare physical addresses when a 
> discon is detected (on plugin side), and confirm it's really a discontinuity 
> or just a different mapping. With this approach, it's not even needed to have 
> a dedicated option, and there would be no false positive in the plugin. It's 
> just a suggestion though.

I actually tried to do this before resorting to the current appraoch.
However, there is only API for querying an instruction's or TB's
hardware address and none that would let me translate the virtual
addresses we receive in the discon callback, which we need to compare
against.

I considered also passing the hardware address to the callback (do the
translation in the `plugin_vcpu_cb__discon` hook), but that turned out
to be not straight forward and not something we'd want to do in the
hook, either.

Regards,
Julian

Reply via email to