From owner-freebsd-current@FreeBSD.ORG Sat Jun 6 09:41:01 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D71D106566B for ; Sat, 6 Jun 2009 09:41:01 +0000 (UTC) (envelope-from freebsd@abv.bg) Received: from smtp-out.abv.bg (smtp-out.abv.bg [194.153.145.99]) by mx1.freebsd.org (Postfix) with ESMTP id 615688FC0A for ; Sat, 6 Jun 2009 09:41:00 +0000 (UTC) (envelope-from freebsd@abv.bg) Received: from mail51.abv.bg (mail51.ni.bg [192.168.151.12]) by smtp-out.abv.bg (Postfix) with ESMTP id 7199E14EBA2; Sat, 6 Jun 2009 12:40:34 +0300 (EEST) DomainKey-Signature: a=rsa-sha1; s=smtp-out; d=abv.bg; c=simple; q=dns; b=LG8hI0rl2UlcbjjsEpwoOB7iN22JP2lc2+eX0yq1cW+xnrVfiaxXimnt17prp2Nx4 OX2OCQc2ROy08UVBomnMH6qTy+07WYzYE/q1TYUAbErHtJtoYwRnLsvn+ZXRH1/+a5c +uiGd7rP/HlxtdpTY6uEIpt8vF/mKI3uTlegudc= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=abv.bg; s=smtp-out; t=1244281234; bh=3HsgXucuAVHokO2A/GQBTX8Mx+R3t7LTLkZFSDhufeg=; h=Date:From:To:Cc:Message-ID:Subject:MIME-Version:Content-Type: DKIM; b=CjH9hjNNe7weRt1Xm609t36yFjvQ9TQi4NkIEh5wP4JxeNB6wzvvOzxxSx T07z6YZY2YvpCo67XQV66YPuE1Tq+80L9MbsygiIr8NsyCi/GYv9a0g2MpmthqFC/5T rLXHqOP2oYGZ4bL+b57AxCMmisWxQ7dwX03gpgdoT+VciQ= Received: from mail51.abv.bg (mail51.abv.bg [127.0.0.1]) by mail51.abv.bg (Postfix) with ESMTP id 43C0812DF2A; Sat, 6 Jun 2009 12:40:58 +0300 (EEST) Date: Sat, 6 Jun 2009 12:40:58 +0300 (EEST) From: Mario Pavlov To: Jacques Fourie Message-ID: <567878105.142658.1244281258275.JavaMail.apache@mail51.abv.bg> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_142656_2142404530.1244281258271" X-Priority: 3 X-Mailer: AbvMail 1.0 X-Originating-IP: 78.128.21.208 Cc: freebsd-current@freebsd.org Subject: Re: Re: [Call For Testing] VirtualBox for FreeBSD! take 4 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jun 2009 09:41:01 -0000 ------=_Part_142656_2142404530.1244281258271 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Hi, thanks a lot for that fix it worked for me, please find attached the patch file, slightly modified so it can be successfully applied the good news is that when I loaded the module it didn't panic, I was even able to run VirtualBox ...I created a virtual machine for windows xp and started the installation...but the virtual machine crashes after the windows installer loads all drivers and tries to start the actual installation and I can see this at the bottom of the vbox log ========================================================================================================================== 00:00:57.770 !!Assertion Failed!! 00:00:57.770 Expression: u64Now <= pNext->u64Expire 00:00:57.770 Location : /usr/ports/emulators/virtualbox/work/virtualbox-2.2.2r19980/src/VBox/VMM/TM.cpp(1899) void tmR3TimerQueueRunVirtualSync(VM*) ========================================================================================================================== and this is what I see in /var/log/messages ========================================================================================================================== Jun 6 11:39:14 home kernel: VBoxDrvFreeBSDClone: pszName=vboxdrv0 ppDev=0xffffff807742f628 Jun 6 11:39:14 home kernel: VBoxDrvFreeBSDClone: pszName=vboxdrv0 iUnit=0 Jun 6 11:39:14 home kernel: VBoxDrvFreeBSDClone: clone_create -> 1; iUnit=0 Jun 6 11:39:14 home kernel: VBoxDrvFreeBSDClone: Created *ppDev=0xffffff003235b400 iUnit=0 si_drv1=0 si_drv2=0 Jun 6 11:39:14 home kernel: VBoxDrvFreeBSDOpen: fOpen=0x3 iUnit=0 Jun 6 11:39:14 home kernel: VBoxDrvFreeBSDIOCtlSlow: returns 0 / 0 ulCmd=20005682 Jun 6 11:39:16 home kernel: VBoxDrvFreeBSDIOCtlSlow: returns 0 / 0 ulCmd=20005686 Jun 6 11:39:16 home kernel: VBoxDrvFreeBSDIOCtlSlow: returns 0 / -37 ulCmd=20005697 Jun 6 11:39:16 home kernel: VBoxDrvFreeBSDIOCtlSlow: returns 0 / 0 ulCmd=2000568e Jun 6 11:39:16 home kernel: VBoxDrvFreeBSDIOCtlSlow: returns 0 / 0 ulCmd=2000568e Jun 6 11:39:16 home kernel: VBoxDrvFreeBSDIOCtlSlow: returns 0 / 0 ulCmd=2000568a Jun 6 11:39:16 home kernel: VBoxDrvFreeBSDIOCtlSlow: returns 0 / 0 ulCmd=2000568e Jun 6 11:39:16 home kernel: VBoxDrvFreeBSDIOCtlSlow: returns 0 / 0 ulCmd=2000568e Jun 6 11:39:16 home kernel: VBoxDrvFreeBSDIOCtlSlow: returns 0 / 0 ulCmd=2000568a Jun 6 11:39:16 home kernel: VBoxDrvFreeBSDIOCtlSlow: returns 0 / 0 ulCmd=2000568a Jun 6 11:39:16 home kernel: VBoxDrvFreeBSDIOCtlSlow: returns 0 / 0 ulCmd=2000568e Jun 6 11:39:16 home last message repeated 4 times Jun 6 11:39:16 home kernel: VBoxDrvFreeBSDIOCtlSlow: returns 0 / 0 ulCmd=20005697 Jun 6 11:39:16 home kernel: VBoxDrvFreeBSDIOCtlSlow: returns 0 / 0 ulCmd=2000568e Jun 6 11:39:17 home kernel: VBoxDrvFreeBSDIOCtlSlow: returns 0 / 0 ulCmd=20005686 Jun 6 11:39:17 home kernel: VBoxDrvFreeBSDIOCtlSlow: returns 0 / 0 ulCmd=2000568e Jun 6 11:39:17 home kernel: VBoxDrvFreeBSDIOCtlSlow: returns 0 / 0 ulCmd=20005686 Jun 6 11:39:17 home kernel: VBoxDrvFreeBSDIOCtlSlow: returns 0 / 0 ulCmd=2000568e Jun 6 11:39:17 home last message repeated 5 times Jun 6 11:39:17 home kernel: HWACCMR0InitVM: ffffff80776bf000 Jun 6 11:40:11 home kernel: pid 18802 (VirtualBox), uid 0: exited on signal 5 (core dumped) Jun 6 11:40:11 home kernel: VBoxDrvFreeBSDClose: fFile=0x3 iUnit=0 pSession=0xffffff000890e010 Jun 6 11:40:11 home kernel: HWACCMR0TermVM: ffffff80776bf000 ========================================================================================================================== Has someone successfully installed windows xp on VirtualBox ? regards, mgp P.S. it would be great if I could install windows so I could finally play StarCraft! :) >> Hi, >> I've tried http://people.freebsd.org/~miwi/vbox/virtualbox_5.tgz out... >>  - it compiles fine (except for the iso I had to download manually) >>  - it panics when I try to load the kernel module, first I tried to load it with X running and the second time I tried to load it without X running, please find attached the output. >> >> about my machine: >> $ uname -a >> FreeBSD home.mydomain.org 7.2-STABLE FreeBSD 7.2-STABLE #7: Thu May 28 01:24:11 EEST 2009     mgp@mydomain.org:/usr/obj/usr/src/sys/Ss-STABLE  amd64 >> >> and also ports updated from 28th of May >> >> regards, >> mgp >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >> > >The following patch fixes this issue for me. > >--- semevent-r0drv-freebsd.c.old 2009-06-05 12:48:55.841136475 +0200 >+++ semevent-r0drv-freebsd.c 2009-06-05 12:15:08.610705499 +0200 >@@ -181,7 +181,7 @@ > rc = tsleep(pEventInt, /* block id */ > fInterruptible ? PZERO | PCATCH : PZERO, > "iprtev", >- tvtohz(&tv)); >+ cMillies == RT_INDEFINITE_WAIT ? 0 : tvtohz(&tv)); > mtx_lock_spin(&pEventInt->Mtx); > >Regards, >Jacques > ------=_Part_142656_2142404530.1244281258271 Content-Type: application/octet-stream; name=patch-src-VBox-Runtime-r0drv-freebsd-semevent-r0drv-freebsd.c Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=patch-src-VBox-Runtime-r0drv-freebsd-semevent-r0drv-freebsd.c --- src/VBox/Runtime/r0drv/freebsd/semevent-r0drv-freebsd.c.old 2009-06-06 10:49:28.000000000 +0300 +++ src/VBox/Runtime/r0drv/freebsd/semevent-r0drv-freebsd.c 2009-06-06 10:50:18.000000000 +0300 @@ -181,7 +181,7 @@ rc = tsleep(pEventInt, /* block id */ fInterruptible ? PZERO | PCATCH : PZERO, "iprtev", - tvtohz(&tv)); + cMillies == RT_INDEFINITE_WAIT ? 0 : tvtohz(&tv)); mtx_lock_spin(&pEventInt->Mtx); switch (rc) ------=_Part_142656_2142404530.1244281258271--