On 08/06/2017 16:58, David Gibson wrote:
> So, doing that via the standard macro wrappers would be slow, because
> it does type verification.  However, looking up the class function is
> fundamentally:
> 
>       ((IOMMUMemoryRegionClass *)(((Object *)mr)->class))->translate
> 
> i.e. two pointers followed, which is just the same as
>       mr->ops->translate

Fair enough.  On the other hand it's a bigger change so I think it's
better to keep it separate.

Paolo

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to