Re: [PATCH] x86/kernel/cpu/amd.c: don't apply the lahf_lm workaround in a hypervisor
From: Mikulas Patocka
Date: Wed Jul 12 2017 - 22:27:50 EST
On Wed, 12 Jul 2017, Borislav Petkov wrote:
> On Wed, Jul 12, 2017 at 03:19:56AM -0400, Mikulas Patocka wrote:
> > When I start a virtual machine, kvm complains about accesses to an unknown
> > MSR ("vcpu0 unhandled rdmsr: 0xc001100d"). This is caused by the code in
> > init_amd_k8 that tries to work around a BIOS bug that incorrectly sets
> > lahf_lm.
>
> No need - there are a lot of qemu configurations which cause the
> unhandled MSR warning so no need to pollute the kernel unnecessarily.
> The warning is harmless at that.
It is not strictly needed, but it is annoying. I work in the console and
it is annoying to see these "unhandled rdmsr" messages printed over the
screen every time I reboot a virtual machine.
Or do you thnik that the code that prints this warning should be removed
from the kernel instead?
Mikulas
> --
> Regards/Gruss,
> Boris.
>
> ECO tip #101: Trim your mails when you reply.
> --