Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jul 2015 00:02:17 -0700
From:      Neel Natu <neelnatu@gmail.com>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>
Subject:   Re: bhyve: centos 7.1 with multiple virtual processors
Message-ID:  <CAFgRE9GKPcqZHtgDVdY_Ph%2BDGCvWsNjB_Bj2JBGzT1duk5hSuQ@mail.gmail.com>
In-Reply-To: <55A514D1.7040805@FreeBSD.org>
References:  <5587EE05.2020001@FreeBSD.org> <CAFgRE9Hpxm7pC_ETdQJKNk7FwbGvYjd60D0bnoOC=t46aJvusQ@mail.gmail.com> <558900A7.40609@FreeBSD.org> <CAFgRE9E5uTDUomaibL6jmxNwGJnz2RXiGxLDNoKkQ=%2BRBsh69A@mail.gmail.com> <55891335.5090403@FreeBSD.org> <55A514D1.7040805@FreeBSD.org>

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

On Tue, Jul 14, 2015 at 6:55 AM, Andriy Gapon <avg@freebsd.org> wrote:
> On 23/06/2015 11:05, Andriy Gapon wrote:
>> On 23/06/2015 10:26, Neel Natu wrote:
> [snip]
>>> Does this ever happen with a single vcpu guest?
>>
>> Never seen the problem with a single CPU so far.
>> Also, never had that problem with FreeBSD guests.
>>
>>> The other mystery is the NMIs the host is receiving. I (re)verified to
>>> make sure that bhyve/vmm.ko do not assert NMIs so it has to be
>>> something else on the host that's doing it ...
>>
>> But the correlation with the multi-CPU non-FreeBSD guests seems to be significant.
>
> Today I've got another NMI with a Linux guest, but a few things were different:
> - the host was fresh after a reboot
> - the guest was single CPU
> - the NMI happened during boot up of the very first VM
>
> kernel: NMI ISA 2c, EISA ff
> kernel: NMI ... going to debugger
>
> Not what causes those NMIs but when they happen they always happen during a
> bhyve guest boot...
>

Could you update the host with the following patch?
https://people.freebsd.org/~neel/patches/ktr_stray_nmi.patch

It enables KTR_GEN logging by default and turns it off when a VM-exit
due to NMI is detected. If there is a pattern to the NMIs then it can
be correlated with the guest activity around that time.

best
Neel

> --
> Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFgRE9GKPcqZHtgDVdY_Ph%2BDGCvWsNjB_Bj2JBGzT1duk5hSuQ>