From: Huang Ying Subject: Re: [PATCH] Add function for clearing the requested VCPUs' mce registers. Date: Thu, 25 Nov 2010 09:27:46 +0800 Message-ID: <1290648466.2903.179.camel@yhuang-dev> References: <4CEDB86C.2050402@np.css.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Avi Kivity , Marcelo Tosatti , Andi Kleen , Hidetoshi Seto , KVM list To: Jin Dongming Return-path: Received: from mga02.intel.com ([134.134.136.20]:39209 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753884Ab0KYB15 (ORCPT ); Wed, 24 Nov 2010 20:27:57 -0500 In-Reply-To: <4CEDB86C.2050402@np.css.fujitsu.com> Sender: kvm-owner@vger.kernel.org List-ID: Hi, Dongming, On Thu, 2010-11-25 at 09:14 +0800, Jin Dongming wrote: > In some case of mce test, the injected data can be remained > in the registers and ca affect to the result of following test cases. > So add codes for clearing mce registers of given VCPU. > > mce registers of give VCPU could be cleared from kernel by calling > the function in this patch. What need to be paid attention is that > the status and mcg_status of mce must be set with 0. If not, mce > registers will not be cleared. Why do you need this? To use "mce=3" in guest Linux MCE testing? If it is, why not use full reboot? MCE registers are not cleared in real machine too. And it is not so pain to reboot the guest. Best Regards, Huang Ying