From owner-freebsd-current@FreeBSD.ORG Sat Dec 29 09:33:44 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F02616A419 for ; Sat, 29 Dec 2007 09:33:44 +0000 (UTC) (envelope-from sweetnavelorange@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id 1A5C013C45A for ; Sat, 29 Dec 2007 09:33:43 +0000 (UTC) (envelope-from sweetnavelorange@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so2778753fgg.35 for ; Sat, 29 Dec 2007 01:33:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=4gRwc2taeZx17uRVhVI2LevBXUkpn2DbVl/Cd4hUYsg=; b=Q4SHbi1OujSZDsnUNAM+pGoKSy4P9RKhnTeZSQbj38MbL9rFSPstVSoSvMEPNnxGC2zfqBV6FQ98WvV2fvf//gdq+OvPBF75yqjUrgR8V4bhbbuqSKb3Z46d5+4VwCPZISnMyh3VI1+RCSrayaR1CwVe1N6FtRuTZC5BofGCnoc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=kw7NaOW3J17nTCz8lR108z+B6P5ijkTG3kPFPUevwS+FyByD1CeafNNND40Pc2+RH4DYv9Zz6Lsh2VNIsFDjB5RznDbRZzsYhhjkRPKDbLyB/47TTt1zrSpqZXy+A6nI+ezvWwIpA8rSt7TXFI/0d+8hQ4CKB5QfNGGV18xDh5g= Received: by 10.86.65.11 with SMTP id n11mr9862609fga.26.1198919360448; Sat, 29 Dec 2007 01:09:20 -0800 (PST) Received: by 10.86.62.1 with HTTP; Sat, 29 Dec 2007 01:09:20 -0800 (PST) Message-ID: Date: Sat, 29 Dec 2007 22:09:20 +1300 From: "James Butler" To: current@freebsd.org, silby@silby.com MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Re: [patch] Auto-setting hz to 100 inside QEMU/VMWare 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, 29 Dec 2007 09:33:44 -0000 > When running FreeBSD inside QEMU / VMWare, one of my pet peeves is that > time is completely inaccurate. This seems to be cured by setting > kern.hz=100 (down from the default of 1000) in /boot/loader.conf, but I'm > getting sick of doing that every time I set up a virtual box. > > So, here's a patch to have the kernel auto-detect that it's running inside > one of those two environments and automatically make that adjustment. > > If you're running FreeBSD inside any other virtual environments > (Parallels? Microsoft Virtual PC?) and can detect them via data in kenv, > I'll be happy to add them to the patch as well. On innotek VirtualBox: hint.acpi.0.oem="VBOX " > > I have only tested this patch in QEMU so far, I will test inside VMWare > tomorrow. > > If anyone could review and/or test this, it would be appreciated. > > Thanks, > > Mike "Silby" Silbersack Thanks, James Butler