Subject: vmware on -current
To: None <fvdl@wasabisystems.com>
From: Atsushi Onoe <onoe@sm.sony.co.jp>
List: current-users
Date: 05/28/2001 21:04:37
>    An 1.5 branch kernel is strongly recommended. I have seen some
>    problems with -current kernels, like VMware panicing during win2000
>    installs, and during heavier disk access under Linux.

Though I'm not sure if it is the case, I can run win98 on vmware
on -current kernel with following patch.
(Vmware paniced on win98 boot without it)

Regards,

Atsushi

--- netbsd/host.c.ORG	Tue Apr  3 21:23:08 2001
+++ netbsd/host.c	Mon May 28 20:37:26 2001
@@ -628,6 +628,7 @@
 	if (vm->crossvaddr != NULL)
 		Warning("KernelAddr already allocated\n");
 
+	PHOLD(curproc);
 	uvm_vslock(curproc, addr, PAGE_SIZE,
 	    VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE);
 
@@ -636,6 +637,7 @@
 	pmap_extract(vm_map_pmap(&curproc->p_vmspace->vm_map), uaddr, &paddr);
 	pmap_kenter_pa(kvaddr, paddr,
 	    VM_PROT_READ | VM_PROT_WRITE | VM_PROT_EXECUTE);
+	PRELE(curproc);
 	vm->crossvaddr = (void *)kvaddr;
 	vm->crossuaddr = addr;
 #ifdef DEBUG