On AMD CPUs, If the LFENCE serialization MSR bit is already set, then
authorbrynet <brynet@openbsd.org>
Wed, 1 Aug 2018 20:33:53 +0000 (20:33 +0000)
committerbrynet <brynet@openbsd.org>
Wed, 1 Aug 2018 20:33:53 +0000 (20:33 +0000)
commit0aed8ed9bbd3b447d0cf5654b8a331c0affce43d
tree300e6c8efe7a31e883c13335913acf88a4d2a31f
parentfda17215ec9c0adb23d4fc9c243464325b9e9d52
On AMD CPUs, If the LFENCE serialization MSR bit is already set, then
we don't need to uncondtionally set it.

Worksaround a suspected bug in newer Linux KVM, which may trigger a
#GP fault on writes to this MSR.

ok mlarkin@
sys/arch/amd64/amd64/identcpu.c
sys/arch/i386/i386/machdep.c