From patchwork Tue Jan 30 16:14:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 126277 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp3499685ljd; Tue, 30 Jan 2018 08:17:08 -0800 (PST) X-Google-Smtp-Source: AH8x2264jJzocI5EWYSeeT+SaroF+7KH9C92tBj9Qu86XJoauOTHXkb1tiCiCbtCo79TnMCIRMOS X-Received: by 10.36.117.195 with SMTP id y186mr31373739itc.111.1517329028609; Tue, 30 Jan 2018 08:17:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517329028; cv=none; d=google.com; s=arc-20160816; b=t+5Xr+gXUyRPTJWXU/kbcNwVh3IOeK/FPKVz1/64CrJY0GS0V+dEyHG/Xy99p0jpX0 D+v6Ffy85x43cQq5C6Q262ITD70tdYoFaoggdmF3JKxDaywVH5So/AB1l4696yItRi3l S+muxVJYDEaDQlyo90zAaDFM+Uo0GdEZcT7gLtw3XKsNDrLnK8tzGHbf7Uk0fp0CnfBP HJ1kM26Uysayak3pXVRUCS9DIhERILroPwV6r72/2Unu1tW9KY/cNOibwVNRvlwhPlEp 9/Syvsr05MSJ0Osl5vrnqxBVqasjLnNeYJdxZCAFGhwr3HLdIGfxYCZd3aAtBg/CGwL+ yn4g== 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=b9CmPkYpjP3IFswEbCgdx5Wnw9iMUv75avAjbfDhjrY=; b=Mmm16jp8kYUM+xvi57PqK8fZG8iM0g2QHbUZW85x02NWGkXETe/uznGN/e9O8LIT8y Dk3D/NmUD50vLpEEOhv6J0y+3FDM20+gx/8AtUm6ZmeVu/ZF75mLCf0xq+03wHyB5dIJ 5SFGA2VxWmg4CIaxTxXnrdKAslSKuU/wcAXf8TPaNOX6E54pbe27/xbE1ZmH0B9oj56k nu3cCsKyAblbzIa2e9n7r1ztBDgSDmZNQum+AyNaAuZsMAMDrBjI7tp2D/c2TOKw6rRW meMK8cINELrPRWnol1CfVibfeAH0qUXgwzn/oKloSBAqKf47BrZn/yWCTkSuEFsL6PKf jxXg== 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 n64si2560386itg.19.2018.01.30.08.17.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jan 2018 08:17:08 -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 1egYYZ-0008Om-Gf; Tue, 30 Jan 2018 16:14:47 +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 1egYYY-0008OI-AU for xen-devel@lists.xen.org; Tue, 30 Jan 2018 16:14:46 +0000 X-Inumbo-ID: bc28509c-05d8-11e8-b9b1-635ca7ef6cff Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas1.inumbo.com (Halon) with ESMTP id bc28509c-05d8-11e8-b9b1-635ca7ef6cff; Tue, 30 Jan 2018 16:15:06 +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 4E31C1529; Tue, 30 Jan 2018 08:14:39 -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 3E07D3F25C; Tue, 30 Jan 2018 08:14:38 -0800 (PST) From: Julien Grall To: xen-devel@lists.xen.org Date: Tue, 30 Jan 2018 16:14:30 +0000 Message-Id: <20180130161433.6910-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 0/3] 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 (3): 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 | 24 +++++++++++++---------- xen/arch/arm/traps.c | 47 ++++++++++++++++++++++++++++++---------------- 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 | 9 ++++++++- 7 files changed, 53 insertions(+), 42 deletions(-)