Re: [tip: ras/core] x86/mce: Enable additional error logging on certain Intel CPUs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [tip: ras/core] x86/mce: Enable additional error logging on certain Intel CPUs
- From: Jim Mattson <jmattson@xxxxxxxxxx>
- Date: Mon, 9 Nov 2020 14:36:29 -0800
- Cc: Qian Cai <cai@xxxxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, "linux-tip-commits@xxxxxxxxxxxxxxx" <linux-tip-commits@xxxxxxxxxxxxxxx>, Boris Petkov <bp@xxxxxxxxx>, Borislav Petkov <bp@xxxxxxx>, x86 <x86@xxxxxxxxxx>, Paolo Bonzini <pbonzini@xxxxxxxxxx>, "kvm@xxxxxxxxxxxxxxx" <kvm@xxxxxxxxxxxxxxx>
- In-reply-to: <bfc274fc27724ea39ecac1e7ac834ed8@intel.com>
- References: <20201030190807.GA13884@agluck-desk2.amr.corp.intel.com> <160431588828.397.16468104725047768957.tip-bot2@tip-bot2> <3f863634cd75824907e8ccf8164548c2ef036f20.camel@redhat.com> <bfc274fc27724ea39ecac1e7ac834ed8@intel.com>
On Mon, Nov 9, 2020 at 2:09 PM Luck, Tony <tony.luck@xxxxxxxxx> wrote:
>
> What does KVM do with model specific MSRs?
"Model specific model-specific registers?" :-)
KVM only implements a small subset of MSRs. By default, any access to
the rest raises #GP.
> Looks like you let the guest believe it was running on one of Sandy Bridge, Ivy Bridge, Haswell (Xeon).
>
> So, the core MCE code tried to enable extended error reporting.
>
> If there is a mode to have KVM let the guest think that it read/wrote MSR 0x17F,
> but actually, doesn't do it ... that would seem to be a reasonable thing to do here.
There is an 'ignore_msrs' module parameter, to sink writes and return
zero on reads for unknown MSRs, but I don't think it's commonly used.
I thought Linux had long ago gone the route of turning rdmsr/wrmsr
into rdmsr_safe/wrmsr_safe, so that the guest would ignore the #GPs on
writes and return zero to the caller for #GPs on reads.
[Index of Archives]
[Linux Stable Commits]
[Linux Stable Kernel]
[Linux Kernel]
[Linux USB Devel]
[Linux Video &Media]
[Linux Audio Users]
[Yosemite News]
[Linux SCSI]