From: "Jan Beulich" Subject: Re: [PATCH 3/4] x86/mce: Translate passed-in GPA to host machine address Date: Tue, 15 Sep 2015 07:47:49 -0600 Message-ID: <55F83DA502000078000A2F2F@prv-mh.provo.novell.com> References: <1442305780-12790-1-git-send-email-haozhong.zhang@intel.com> <1442305780-12790-4-git-send-email-haozhong.zhang@intel.com> <55F8383202000078000A2EE1@prv-mh.provo.novell.com> <20150915134242.GA2747@hzzhang-OptiPlex-9020.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150915134242.GA2747@hzzhang-OptiPlex-9020.sh.intel.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Haozhong Zhang Cc: Wei Liu , Ian Campbell , Stefano Stabellini , Liu Jinsong , Christoph Egger , Ian Jackson , xen-devel@lists.xen.org, Andrew Cooper , Keir Fraser List-Id: xen-devel@lists.xenproject.org >>> On 15.09.15 at 15:42, wrote: > On Tue, Sep 15, 2015 at 07:24:34AM -0600, Jan Beulich wrote: >> >>> On 15.09.15 at 10:29, wrote: >> > + mfn = mfn_x(get_gfn(d, gpfn, &t)); >> > + >> > + if (mfn == INVALID_MFN) { >> > + put_domain(d); >> > + return x86_mcerr("do_mca inject: illegal MSR value", >> > + -EINVAL); >> >> This message should be better distinguishable from the one further >> down (or else it's pretty pointless) - perhaps you mean GPFN instead >> of MSR? >> > > Yes, I'll change it to "do_mca_inject: illegal GPFN". I'd suggest "wrong" or "bad" instead of "illegal". Jan