lkml.org 
[lkml]   [2007]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch 14/26] Xen-paravirt_ops: add common patching machinery
From
Date
On Fri, 2007-03-16 at 10:20 +0100, Ingo Molnar wrote:
> * Jeremy Fitzhardinge <jeremy@goop.org> wrote:
>
> > Implement the actual patching machinery. paravirt_patch_default()
> > contains the logic to automatically patch a callsite based on a few
> > simple rules:
> >
> > - if the paravirt_op function is paravirt_nop, then patch nops
> > - if the paravirt_op function is a jmp target, then jmp to it
> > - if the paravirt_op function is callable and doesn't clobber too much
> > for the callsite, call it directly
> >
> > paravirt_patch_default is suitable as a default implementation of
> > paravirt_ops.patch, will remove most of the expensive indirect calls
> > in favour of either a direct call or a pile of nops.
>
> Acked-by: Ingo Molnar <mingo@elte.hu>

I like this one too, but note that it needs a twist when we change to
use direct calls to wrappers for the Great paravirt_ops Unexporting.

Rusty.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-03-18 01:49    [W:0.185 / U:4.220 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site