> 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
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to