DragonFly commits List (threaded) for 2007-01
DragonFly BSD
DragonFly commits List (threaded) for 2007-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/sys/machine/vkernel/i386 cpu_regs.c exception.c trap.c src/sys/machine/vkernel/platform console.c init.c pmap.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 8 Jan 2007 08:33:14 -0800 (PST)

:I thought about this.  For all sorts of operation (e.g. console input or =
:a virtual NIC), we need either some kind of asynchronous operation mode o=
:r poll/select/kqueue monitoring.  Maybe some combination?  Send a signal =
:when a (previously stored) kevent list was activated?
:
:cheers
:  simon

    What I would like to do is have a core select/kqueue loop instead of
    the sigpause() I have there now.  The only hicup is that it currently
    takes a real signal (e.g. SIGARLM for the clock) to break out
    of any emulated user process context and return to the virtual kernel
    context.

    I can already see that there are better ways to do the emulated user
    process context.  Right now I'm doing frame swapping.  But I'm not
    going to worry about it until I actually get the thing running 
    in a stable fashion.  I'm not even swapping the FP registers yet!
    Just the TLS, segment, integer registers, and VM space.

    On the bright side, I have not once crashed the real kernel while
    testing a virtual kernel!

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>



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