From patchwork Fri Feb 2 10:14:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 126628 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp495862ljc; Fri, 2 Feb 2018 02:17:39 -0800 (PST) X-Google-Smtp-Source: AH8x224mv1hfv7ffS09TbzdrzQqzAF1MRZ7fiU5rs5ZM9x59Pyh4UI6VSy9X4533GPe/9pAtdcBk X-Received: by 10.36.128.5 with SMTP id g5mr44485680itd.17.1517566659689; Fri, 02 Feb 2018 02:17:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517566659; cv=none; d=google.com; s=arc-20160816; b=oLibHJ4/TkVgJabO/xKr/OrsW/Wap+jug4ImAcBBJ2YRhd7/J0/ORJDeuTNnoHiMBC 3GwQ8u3D1KJIzcYWaL1uPMFWYJT/jy8IQ9Geh5sRvNqYCiKsJGZ9qvqBn/xc0x2WIs9o rO+6NoLL2U3l+5ZCL+wsxb6/GFHgPDSwFP6y2LlozdAxtptT7sPjcjHAGUx+J6bh4QY4 XmSwvnxBsQJPRi8Rx7xtdkulwUzWZgyaG3JnQ4jvRgvEp109jz6Rlik0+QOoQLi27hsp YHvPxlc8XZNmqhaNd+cXWQVRvlpxuIySjCR3CkmC8jWywhW3FR7fMSKHbZxxpsY/i/wY onnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:message-id:date:to:from :arc-authentication-results; bh=mLg0/7V325/Y+/IvX4yf+kJ1cZJruUyY2sDdt14qijc=; b=ZOyOl7O+9ubM9Z9hX/0CM2bMsAp3FjinZyOKjc/uqVI7Z3zmVRTZTpqFdsNJ6l0ngk E8gGTdyrMFkYB/6JiDoWsG3MhQgBsz3lcL22EkzdoF1g3FEJnOL172p1dbFRYXBdlEtc cwBgWqgI2mBYMj8rCR4Tl6KQfRipUdUcuZ4DrfioyfA2+MR8c3Fm52Vr9AlyFHdgs1m0 ghPU40CawaLHsr9R2pwCU6y0kqgJvi2wKAtTItU8NKexAb57VSGd5P1IAhYqS4voqRlV EcskhwOrlxS/m48XXzTVugEDIUqb9/IdPM4EVKtgmq1cmVoQnTVmRHwlhVxMxMckw+bb OmZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id v62si1331103ita.81.2018.02.02.02.17.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Feb 2018 02:17:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ehYN2-0006GV-3V; Fri, 02 Feb 2018 10:15:00 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ehYN0-0006FE-Lf for xen-devel@lists.xen.org; Fri, 02 Feb 2018 10:14:58 +0000 X-Inumbo-ID: fd42659b-0801-11e8-b9b1-635ca7ef6cff Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas1.inumbo.com (Halon) with ESMTP id fd42659b-0801-11e8-b9b1-635ca7ef6cff; Fri, 02 Feb 2018 10:15:27 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8F8CF1529; Fri, 2 Feb 2018 02:14:51 -0800 (PST) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7C1B03F487; Fri, 2 Feb 2018 02:14:50 -0800 (PST) From: Julien Grall To: xen-devel@lists.xen.org Date: Fri, 2 Feb 2018 10:14:40 +0000 Message-Id: <20180202101444.3510-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Cc: andrew.cooper3@citrix.com, Julien Grall , sstabellini@kernel.org, andre.przywara@linaro.org Subject: [Xen-devel] [PATCH v3 0/4] xen/arm: Inject an exception to the guest rather than crashing it X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Hi all, This small series replaces all call to domain_crash_synchronous by injecting an exception to the guest. This will result to a nicer trace from the guest (no need to manually walk the stack) and give a chance to the guest to give a bit more information on what it was doing. Cheers, Julien Grall (4): xen/arm: traps: Merge try_handle_mmio() and handle_mmio() xen/arm: io: Distinguish unhandled IO from aborted one xen/arm: Don't crash domain on bad MMIO emulation xen/arm: Don't crash the domain on invalid HVC immediate xen/arch/arm/io.c | 65 ++++++++++++++++++++++++++++++++--------- xen/arch/arm/traps.c | 72 +++++++++++++++------------------------------- xen/arch/arm/vgic-v2.c | 2 -- xen/arch/arm/vgic-v3-its.c | 3 -- xen/arch/arm/vgic-v3.c | 8 ------ xen/arch/arm/vpl011.c | 2 -- xen/include/asm-arm/mmio.h | 11 ++++++- 7 files changed, 84 insertions(+), 79 deletions(-)