From owner-freebsd-virtualization@FreeBSD.ORG Thu Dec 12 21:00:09 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 52C6CCA1; Thu, 12 Dec 2013 21:00:09 +0000 (UTC) Received: from mail-qe0-x234.google.com (mail-qe0-x234.google.com [IPv6:2607:f8b0:400d:c02::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0383F1826; Thu, 12 Dec 2013 21:00:08 +0000 (UTC) Received: by mail-qe0-f52.google.com with SMTP id ne12so841416qeb.25 for ; Thu, 12 Dec 2013 13:00:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2yYdbF9xkk7v/AEjmDcWOK4ei+7eeguhfRBHug4CTEo=; b=gC1xKX+EMWuDoK/UGR5tBsVfb4A2zyz6t3QrEh0Gydg5vhNBzpJRYnVKc8VTUpEPXQ tizAn2peiFUljBgHxFd+1XFzDXARNlPsfaiDzf9+3PITTxvYspaPjFVFhTWKsHe8JwwY YZY5j/375/jOGdfhM13kU65UXfaj0NZ8xk18JuWy120szjc8pGYIY0E9GMKZIBk1/jqq WIrwjmwkV94pM5kNtn4LB4XfCmin5wmecof9CIpsUKhZF2Y0URaojK/At4R2YSP2PZCw Z+ao6dvlPiijEf5tXYJT1s2PYl916UGSdlmLhNfg9OIgNPGmNFG3EjnygI0pFfBiN8Iz Bf/A== MIME-Version: 1.0 X-Received: by 10.224.50.195 with SMTP id a3mr15980753qag.25.1386882008158; Thu, 12 Dec 2013 13:00:08 -0800 (PST) Received: by 10.140.34.17 with HTTP; Thu, 12 Dec 2013 13:00:08 -0800 (PST) In-Reply-To: <201312121511.38608.jhb@freebsd.org> References: <201312121511.38608.jhb@freebsd.org> Date: Thu, 12 Dec 2013 13:00:08 -0800 Message-ID: Subject: Re: Panic starting a bhyve guest after resume From: Neel Natu To: John Baldwin Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-virtualization@freebsd.org" 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 21:00:09 -0000 Hi John, On Thu, Dec 12, 2013 at 12:11 PM, John Baldwin wrote: > 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. > It also does a "vmxon" on each logical cpu which may also need to be done after a resume. best Neel > -- > John Baldwin > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org"