From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPUyt-0004Ej-Ko for qemu-devel@nongnu.org; Thu, 04 Sep 2014 07:13:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPUyl-0005PX-Ut for qemu-devel@nongnu.org; Thu, 04 Sep 2014 07:13:35 -0400 Received: from e7.ny.us.ibm.com ([32.97.182.137]:41581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPUyl-0005PP-Pg for qemu-devel@nongnu.org; Thu, 04 Sep 2014 07:13:27 -0400 Received: from /spool/local by e7.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 4 Sep 2014 07:13:27 -0400 From: Aravinda Prasad Date: Thu, 04 Sep 2014 16:43:20 +0530 Message-ID: <20140904111153.20476.58429.stgit@aravindap> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH v2 0/4] target-ppc: Add FWNMI support in qemu for powerKVM guests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aik@au1.ibm.com, qemu-ppc@nongnu.org, qemu-devel@nongnu.org Cc: benh@au1.ibm.com, paulus@samba.org This series of patches add support for fwnmi in powerKVM guests. Currently upon machine check exception, if the address in error belongs to guest then KVM invokes guest's NMI interrupt vector 0x200. This patch series adds functionality where the guest's 0x200 interrupt vector is patched such that QEMU gets control. QEMU then builds error log and reports the error to OS registered machine check handlers through RTAS space. Apart from this, the patch series also takes care of synchronization when multiple processors encounter machine check at or about the same time. The patch set was tested by simulating a machine check error in the guest. Changes in v2: - Re-based to github.com/agraf/qemu.git branch: ppc-next - Merged patches 4 and 5. - Incorporated other review comments --- Aravinda Prasad (4): target-ppc: Extend rtas-blob target-ppc: Register and handle HCALL to receive updated RTAS region target-ppc: Build error log target-ppc: Handle ibm,nmi-register RTAS call hw/ppc/spapr.c | 4 + hw/ppc/spapr_hcall.c | 178 ++++++++++++++++++++++++++++++++++++++++++++++++ hw/ppc/spapr_rtas.c | 116 +++++++++++++++++++++++++++++++ include/hw/ppc/spapr.h | 13 +++- 4 files changed, 309 insertions(+), 2 deletions(-) -- Aravinda Prasad