Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Dec 2013 13:00:08 -0800
From:      Neel Natu <neelnatu@gmail.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        "freebsd-virtualization@freebsd.org" <virtualization@freebsd.org>
Subject:   Re: Panic starting a bhyve guest after resume
Message-ID:  <CAFgRE9Ej9O7jMBcE0oqshd_-59aPskhN81FoCsDbaEjdcxhJAA@mail.gmail.com>
In-Reply-To: <201312121511.38608.jhb@freebsd.org>
References:  <201312121511.38608.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi John,

On Thu, Dec 12, 2013 at 12:11 PM, John Baldwin <jhb@freebsd.org> 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFgRE9Ej9O7jMBcE0oqshd_-59aPskhN81FoCsDbaEjdcxhJAA>