From owner-freebsd-virtualization@FreeBSD.ORG Thu Dec 12 20:12:56 2013 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DDE337E4 for ; Thu, 12 Dec 2013 20:12:56 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B876D1395 for ; Thu, 12 Dec 2013 20:12:56 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id C43A6B922 for ; Thu, 12 Dec 2013 15:12:55 -0500 (EST) From: John Baldwin To: virtualization@freebsd.org Subject: Panic starting a bhyve guest after resume Date: Thu, 12 Dec 2013 15:11:38 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201312121511.38608.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 12 Dec 2013 15:12:55 -0500 (EST) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Dec 2013 20:12:56 -0000 If I suspend and resume my laptop and then try to start a guest after the resume, I get an odd panic. It generates a privileged instruction fault (in kernel mode) for 'vmclear'. I've checked CR4 and it claims that VMXE is set. I dont have any other ideas off the top of my head on what I should be poking at? It looks like we read a bunch of MSRs in vmx_init(), but we don't write to them, and all vmx_enable() does on each CPU is set VMXE in CR4 from what I can tell. -- John Baldwin