From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyFfN-0005w9-AS for qemu-devel@nongnu.org; Mon, 16 Nov 2015 04:01:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyFfH-0006At-5F for qemu-devel@nongnu.org; Mon, 16 Nov 2015 04:01:37 -0500 References: <20151111171135.4328.41819.stgit@aravindap> <20151111171602.4328.34006.stgit@aravindap> <56444957.9080003@redhat.com> <20151116035046.GA19340@iris.ozlabs.ibm.com> From: Thomas Huth Message-ID: <56499B65.6050601@redhat.com> Date: Mon, 16 Nov 2015 10:01:25 +0100 MIME-Version: 1.0 In-Reply-To: <20151116035046.GA19340@iris.ozlabs.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 4/4] target-ppc: Handle NMI guest exit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Mackerras Cc: benh@au1.ibm.com, aik@ozlabs.ru, agraf@suse.de, qemu-devel@nongnu.org, qemu-ppc@nongnu.org, Aravinda Prasad , sam.bobroff@au1.ibm.com, david@gibson.dropbear.id.au On 16/11/15 04:50, Paul Mackerras wrote: > On Thu, Nov 12, 2015 at 09:09:59AM +0100, Thomas Huth wrote: >> >> Shouldn't you also check MSR_ME here first and enter checkstop when >> machine checks are disabled? >=20 > MSR_ME is a hypervisor resource and is not able to be controlled by HV > KVM guests, or in fact by the OS running on the pseries machine target > regardless of how it's accelerated or emulated. >=20 > What you say would only apply if we had a powernv machine target and > we were emulating the whole system, and in that case we wouldn't be > using any hcalls, and we wouldn't be doing FWNMI (or at least not at > this level). >=20 > So the answer is no, MSR_ME will always be set when running in a > guest, and we don't ever need to checkstop the virtual machine. Good point, I missed that sentence about the hypervisor resource in the PowerISA. So QEMU does not have to check this bit here. But out of curiosity: What happens if a guest disables the ME bit? Is this checked somewhere or simply ignored? Thomas