From: "Jan Beulich" Subject: RE: mce_wrmsr() and (at least) HVM guests Date: Mon, 04 Jan 2010 09:08:08 +0000 Message-ID: <4B41BE0802000078000280D9@vpn.id2.novell.com> References: <4B1509BD0200007800022D3B@vpn.id2.novell.com> <4B30D17B02000078000272CF@vpn.id2.novell.com> <4B41B03F020000780002809D@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: 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: Yunhong Jiang Cc: "xen-devel@lists.xensource.com" , Liping Ke List-Id: xen-devel@lists.xenproject.org >>> "Jiang, Yunhong" 04.01.10 09:31 >>> >>>And also another potential issue raised out. For example, guest has >>>clear one bit in MCn_CTL while physically it is enabled. If a error >>>corresponding to this bit really happen, at least we should not inject >>>a vMCE to guest. We will either kill the guest, or let the guest >>>continues, depends on the error type . >> >>Yes, this would make sense, albeit it seems overkill to me - there >>shouldn't really be disagreement in how specific models get handled. >>Instead, perhaps an unprivileged guest should be permitted to write >>zero bits wherever the underlying real register has them clear (as >>read back from hardware, not as written by Xen or dom0). > >What do you mean of "write zero bits wherever the underlying real >register has them clear"? Writing e.g. all 1s into any of these registers doesn't mean you'd read back all 1s. Hence, writing zero into read-only (always zero) bits should be permitted as well as writing zero into bits that dom0 cleared explicitly. Jan