On Thu, Jun 08, 2017 at 05:30:57PM +0200, Paolo Bonzini wrote: 1;4602;0c> > > 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.
Ok, project for another day. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature