public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Luck, Tony" <tony.luck@intel.com>
To: Jim Mattson <jmattson@google.com>
Cc: Qian Cai <cai@redhat.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-tip-commits@vger.kernel.org" 
	<linux-tip-commits@vger.kernel.org>, Boris Petkov <bp@alien8.de>,
	"Borislav Petkov" <bp@suse.de>, x86 <x86@kernel.org>,
	Paolo Bonzini <pbonzini@redhat.com>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: RE: [tip: ras/core] x86/mce: Enable additional error logging on certain Intel CPUs
Date: Mon, 9 Nov 2020 22:57:35 +0000	[thread overview]
Message-ID: <a22b5468e1c94906b72c4d8bc83c0f64@intel.com> (raw)
In-Reply-To: <CALMp9eTFaiYkTnVe8xKzg40E4nZ3rAOii0O06bTy0+oLNjyKhA@mail.gmail.com>

> 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.

Linux just switched that around for the machine check banks ... if they #GP
fault, then something is seriously wrong.

Maybe that isn't a general change of direction though. Perhaps I
should either use rdmsrl_safe() in this code. Or (better?) add

	if (boot_cpu_has(X86_FEATURE_HYPERVISOR))
		return;

to the start of intel_imc_init().

-Tony

  reply	other threads:[~2020-11-09 22:57 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20201030190807.GA13884@agluck-desk2.amr.corp.intel.com>
     [not found] ` <160431588828.397.16468104725047768957.tip-bot2@tip-bot2>
2020-11-09 21:55   ` [tip: ras/core] x86/mce: Enable additional error logging on certain Intel CPUs Qian Cai
2020-11-09 22:09     ` Luck, Tony
2020-11-09 22:36       ` Jim Mattson
2020-11-09 22:57         ` Luck, Tony [this message]
2020-11-09 23:24           ` [PATCH] x86/mce: Check for hypervisor before enabling additional error logging Luck, Tony
2020-11-10  6:31             ` Borislav Petkov
2020-11-10  8:50               ` Paolo Bonzini
2020-11-10  9:56                 ` Borislav Petkov
2020-11-10 10:40                   ` Paolo Bonzini
2020-11-10 15:50                     ` Borislav Petkov
2020-11-10 16:08                       ` Paolo Bonzini
2020-11-10 17:52                         ` Luck, Tony
2020-11-10 20:37                           ` Paolo Bonzini
2020-11-11  0:39                             ` [PATCH v2] x86/mce: Use "safe" MSR functions when " Luck, Tony
2020-11-09 23:26           ` [tip: ras/core] x86/mce: Enable additional error logging on certain Intel CPUs Jim Mattson
2020-11-09 23:36             ` Luck, Tony
2020-11-10  9:10               ` Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a22b5468e1c94906b72c4d8bc83c0f64@intel.com \
    --to=tony.luck@intel.com \
    --cc=bp@alien8.de \
    --cc=bp@suse.de \
    --cc=cai@redhat.com \
    --cc=jmattson@google.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox