[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Re: [Xen-changelog] Linux scrubs memory before returnign it to Xen, or transferring it to

> > +        else
> > +        {
> > +            void *p = kmap(&mem_map[*currp]);
> > +            scrub_pages(p, 1);
> > +            kunmap(&mem_map[*currp]);
> > +        }
> > +#endif
> Since scrub_pages() becomes a NOOP when the config option
> is not set, why the additional #ifdef in the source code ?

Avoids an unnecessary kmap/kunmap, which in Xen would both trap to
ring 0. I don't know if it would make much of a performance
difference, but I decided to ifdef the whole thing just in case.

I hope you like the abuse of __dev_alloc_skb() :-)

 -- Keir

This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.