Subject: Re: per page verified exec
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Brett Lymn <blymn@baesystems.com.au>
List: tech-kern
Date: 09/12/2006 16:01:22
On Mon, Sep 11, 2006 at 10:01:01PM +0900, YAMAMOTO Takashi wrote:
> 
> uvn_get(PGO_LOCKED) is usually called with spin locks held.
> thus you can't sleep.  otoh, a function you are calling seems sleepable.
> so i think it's broken.
> 

Yes, hence the panic.  I tried allocating a bit of wired memory and
using that as a work area (just as a temp fix), which made things get
a bit further but I ran into another panic which I am not entirely
sure is related to my changes or not, I will try an unmodified build
and see what happens.

To fix the problem with PGO_LOCKED I am thinking that what I need
to do is pre-allocate a few bits of memory to use in the lookups,
probably FHANDLE_MIN_SIZE * (ncpu + 3) plus a couple of
FHANDLE_MAX_SIZE, so there is enough memory to handle lookups on all
the cpu's plus some interrupts without going too overboard with wired
memory.

-- 
Brett Lymn