From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: 1164f8,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.241.37 with SMTP id wf5mr13119923pbc.4.1329240647721; Tue, 14 Feb 2012 09:30:47 -0800 (PST) Path: wr5ni24784pbc.0!nntp.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!news.stack.nl!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail From: Johnny Billquist Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: PDP11 Values from MFPT Date: Tue, 14 Feb 2012 18:30:47 +0100 Organization: Update Computer Club Message-ID: References: <4f313229.43518694@nntp.aioe.org> <4f37717c.29259157@nntp.aioe.org> <4f339e98.40806741@nntp.aioe.org> <4f360d68.39000374@nntp.aioe.org> <4f396a03.27713593@nntp.aioe.org> <4f37ec05.63303162@nntp.aioe.org> <4f38003f.338958@nntp.aioe.org> <4f3b881d.14375367@nntp.aioe.org> NNTP-Posting-Host: 2620:0:105f:b:462a:60ff:fefb:aad8 Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1329240647 24972 2620:0:105f:b:462a:60ff:fefb:aad8 (14 Feb 2012 17:30:47 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Tue, 14 Feb 2012 17:30:47 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 In-Reply-To: <4f3b881d.14375367@nntp.aioe.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2012-02-14 17.20, paramucho wrote: > On Tue, 14 Feb 2012 14:14:33 +0100, Johnny Billquist > wrote: > >>> Clearly, you can't demand-page on the same stack that you take page >>> faults on. Thus, if demand paging is only supported in user and >>> supervisor mode perhaps the idea is to move "paged" system code to >>> supervisor space. Either that or not to page system code at all and >>> use address checks and page locks for every kernel access to >>> user/supervisor mode... >> >> Right. I suspect the right thing to do in the kernel is to not expect to >> do demand paging for access from kernel space. The kernel should check >> in advance (and it can) that all memory references will work. Any memory >> errors in kernel space should probably be treated as fatal. > > Clearly we need to have a separate "interrupt" stack for page faults, > and the kernel stack is the logical choice for that. Giving up on > demand paging for the majority of the system code seems to be a high > price to pay (and would take a lot of fun out of the project). > > My inclination would be to move a lot of the system code to supervisor > mode. The kernel would be reserved for non-paging code (drivers etc), > or code that made highly-disciplined accesses (the pager itself). > Supervisor mode would be used to implement the system api's etc. Hmm. I'm not sure demand-paging for the kernel would be such an important part. In me eyes, it's the demand paging for user processes that are the interesting thing. But sure, supervisor mode could be used by the kernel as well. Johnny