From owner-svn-src-all@FreeBSD.ORG Thu Apr 14 10:27:11 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D4F5106564A; Thu, 14 Apr 2011 10:27:11 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0B1A68FC18; Thu, 14 Apr 2011 10:27:10 +0000 (UTC) Received: by qwc9 with SMTP id 9so950336qwc.13 for ; Thu, 14 Apr 2011 03:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:from :date:x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=Aa+EhYooXFIyKphRHjZlBf4c8T3LlPIG3ZIQsfB5h/w=; b=SNqeB5mVV+j8F53LlgzXNz4Q+B9axi4mb7u+nOxJU+SfStiU34S9fO6M3rCMnbvcSc p8mwqseBiJKEtVND8yWVjSKx8XlYGquqHLaXTLDErZ4k5adoK4duuoWvoNTySOh+PWE/ SjzKkEHsMydIK6/tpWouYNhvmh+n41+2IlARc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=P7ueNRP0AoLjUBD7Kf8A92na0ln9ycGTHcbaLwdbktk0SodyFplcaXS4NVmTsNmH5l uaqeQdWAltYmtXTCcAj8KrQ+pxsVoi6OBruh8ahBy4Y31Ri9VA1U/ITzK53OCLDHe7fw jGqIvdTIfIyPK+uN808EkxB0OPsp8KQOVg2Kw= Received: by 10.229.128.211 with SMTP id l19mr385983qcs.31.1302776830215; Thu, 14 Apr 2011 03:27:10 -0700 (PDT) MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.229.213.79 with HTTP; Thu, 14 Apr 2011 03:26:30 -0700 (PDT) In-Reply-To: <201104131827.39373.jkim@FreeBSD.org> References: <201104122349.p3CNn7kK039179@svn.freebsd.org> <4DA6189A.5040200@FreeBSD.org> <4DA61A70.8040609@FreeBSD.org> <201104131827.39373.jkim@FreeBSD.org> From: Ivan Voras Date: Thu, 14 Apr 2011 12:26:30 +0200 X-Google-Sender-Auth: lVphHZPWPoCWMWKuryaGUXNsDKM Message-ID: To: Jung-uk Kim Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r220584 - in head/sys: amd64/amd64 i386/i386 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2011 10:27:11 -0000 On 14 April 2011 00:27, Jung-uk Kim wrote: > > That means your VM has broken CPUID support. =C2=A0To get there, it has t= o > meet two conditions, i.e., TSC is invariant and it has APERF/MPERF > MSRs. =C2=A0A simple workaround is setting "machdep.disable_tsc=3D1" > tuanable from loader but your VM is the real culprit here. You are probably right but fixing VMs is not going to happen (or not soon enough) so workarounds must be implemented. I don't know if it is called early enough for this purpose, but detect_virtual() in kern/subr_param.c initializes the vm_guest variable which could be useful for such workarounds (also see how vm_guest is used in init_param1() in the same file to scale down HZ).