From: "Jan Beulich" Subject: Re: mce_wrmsr() and (at least) HVM guests Date: Tue, 22 Dec 2009 13:02:35 +0000 Message-ID: <4B30D17B02000078000272CF@vpn.id2.novell.com> References: <4B1509BD0200007800022D3B@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4B1509BD0200007800022D3B@vpn.id2.novell.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Liping Ke , Yunhong Jiang Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> "Jan Beulich" 01.12.09 12:19 >>> >With mce_wrmsr() not permitting to write other than all zeroes or all = ones >to MCG_CTL and MCn_CTL, it is not possible for guests to implement >workarounds (see the one in mce_cpu_quirks() which has been present in >Linux versions for a very long time). While one could expect PV guests to >be aware of that (and avoid the workaround), HVM guests clearly can't >be expected to. Thus the question is whether the handling should be >made a little more permissive. > >Initially I had thought of just making Xen check whether the bit(s) in >question are also off in the physical MSR, but that would imply that >Xen always has implemented at least all of the workarounds any guest >may know of. I'm not sure I have a good other idea, short of allowing >all writes to succeed. Ping? Jan