From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Wed, 23 Jul 2008 11:43:55 +0200 From: "Sander van Dijk" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> In-Reply-To: <5d375e920807200555v5b21196pe2a25bd740c830f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <10b109140807181307k387ace28kfdac9cb2e7dc970@mail.gmail.com> <5d375e920807200555v5b21196pe2a25bd740c830f@mail.gmail.com> Subject: Re: [9fans] patch for installation in vmware Topicbox-Message-UUID: ef612daa-ead3-11e9-9d60-3106f5b1d025 On 7/20/08, Uriel wrote: > I thought I had submitted a patch for this a while ago (which as > accepted), but maybe I missed the installer. In any case, using > patch(1) will have a better chance of getting in. I believe the best solution would be to change /sys/lib/dist/pc/sub/vmware from #!/bin/rc if(aux/isvmware -s){ echo -n off >'#P/i8253timerset' for(i in '#S'/sd??) if(test -f $i/ctl) echo dma on >$i/ctl } to if(aux/isvmware -s){ echo -n off >'#P/i8253timerset' echo hwaccel off >'#v/vgactl' } That is, add the line that disables hardware acceleration, and remove the lines that set dma on (this is handled by /sys/lib/dist/pc/sub/termrc already). I do have one question though: when setting dma on, /sys/lib/dist/pc/sub/termrc iterates over /dev/sd*/ctl, while /sys/lib/dist/pc/sub/vmware iterates over '#S'/sd??; is there a specific reason vmware needs to use '#S' rather than /dev? (Or to formulate the question a bit different: I'd expect that '#S' is bound to /dev at that point regardless of whether we're using vmware or not; is this correct?) Greetings, Sander.