svn commit: r316767 - head/sys/amd64/amd64
Dexuan Cui
decui at microsoft.com
Wed Apr 19 03:50:07 UTC 2017
> From: Konstantin Belousov
> > It looks memory allocated by bus_dmamem_alloc() and malloc()
> > is not executable now.
> >
> > What else can we use?
> > I guess we can only use contigmalloc() or kmem_malloc() to
> > get a page that can be executable and use vtophys() to get its
> > physical address?
> Yes, the kmem_malloc() is considered to be a suitable substitution for
> regular malloc(9) if the executable mapping is needed. See r317072
> for a similar fix for the same issue.
Thanks, kib!
We have fixed Hyper-V drivers with kmem_malloc().
Thanks,
-- Dexuan
More information about the svn-src-all
mailing list