Subject: Re: emulation-specific page fault handling
To: Emmanuel Dreyfus <>
From: Bill Studenmund <>
List: tech-kern
Date: 09/10/2002 22:20:01
On Sat, 7 Sep 2002, Emmanuel Dreyfus wrote:

> > Yes, this is what I would like to avoid. I'd like e_fault to behave
> > exactly as e.g. e_proc_{exec|fork|exit} or e_sysctl, i.e. it to be optional
> > part of emul interface. emuls which don't use it should not be required
> > to set it.
> No problem here, e_fault is unused for most emulations, so it can be
> NULL. Let's say e_fault would be set to NULL for every struct emul
> except native (would be uvm_fault) and IRIX (would be irix_vm_fault).

I'm missing something here. Why not just leave e_fault NULL if you want
uvm_fault, and non-NULL if you want something else (obviously pointing to
that other handler)? Don't ALL emulations need the services of
uvm_fault(), not just native?

Take care,