Plan 9 from Bell Labs’s /usr/web/sources/patch/applied/vmware-hwaccel-off/vmware.new

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc
# vmware - if we're running in a vmware virtual machine, tweak set up
if(aux/isvmware -s){
	echo hwaccel off >'#v/vgactl'

	if(test -f '#P/pge'){
		echo -n on >'#P/pge'	# default, but set anyway.
		echo -n off >'#P/i8253timerset'
	}
	if(test -f '#P/archctl'){
		echo pge on	>'#P/archctl'
		echo coherence nop >'#P/archctl'
		echo i8253set off  >'#P/archctl'
	}
<<<<<<< /386/bin/aux/vmware

	dmaon
||||||| vmware.orig
	for(i in '#S'/sd??)
		if(test -f $i/ctl)
			echo dma on >$i/ctl
=======
	for(i in '#S'/sd??)
		if(test -f $i/ctl)
			echo dma on >$i/ctl
	echo -n hwaccel off >/dev/vgactl
>>>>>>> vmware
	aux/vmwarefs

	if(! test -f /dev/snarf)
		aux/stub /dev/snarf
	bind /mnt/vmware/snarf /dev/snarf
	aux/vmmousepoll &
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].