From patchwork Thu Feb 1 18:47:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 126575 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1971604ljc; Thu, 1 Feb 2018 10:50:28 -0800 (PST) X-Google-Smtp-Source: AH8x225I7aXQGZco3vqVfCFOm6DpawmdAdXNgpa6K17J0rlOrpbAtaTFz84gbuG76S2JCryvg23O X-Received: by 10.36.237.130 with SMTP id r124mr12220870ith.45.1517511028179; Thu, 01 Feb 2018 10:50:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517511028; cv=none; d=google.com; s=arc-20160816; b=0EwfHSG+C3OqRfEKoI3c6ZbpoO29EMnhB6wV2sLx6ETJzJWOwxLzKPeC/rqihs4oFV HaqGintdM2dJBIt4MlVxqZ87LnCAZRlNYTMlDkWB2gzej7ZoEVSIdt+I09t5/jfSGVWJ 9ZGdGJOV+MbAd6b5Q0b6m+mwBARVxlbUOyH5hA35PEaFAOoN5Sy1f782RJfQ7VTZN1Ao kc0WDKENYoSAy+LHiBlympPvBajf2c3LkxbvN40DyjTlBQ28HHl+uJkvXtk2vtqlWNV7 LSukAuH0EO7lJEXujWW8rRCKjzwoeZXKx4CX1salku6G3Q5JlUM3DrW7nXGkvAYZSGK1 CESg== 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=vXUF7ClDec3QcTTbLT4SR5VNPyQKrHpa17mKW+1eEo4=; b=mqvDQYmvLiIKtC0Q21ltMC4qEO8LFqnNGCxx71P9Zs7JBQZfXYjpwqH0yFZcFduzpO 8haTxxhaG9YkkjO9wi79fJd8moXx/ECITHtEpHe71wipNg5FFf0bg1/zfzWv63TnOJWz PL9ug3ZKCR/c5LAPdQW/aUrO9j/2bX0YadBq3QL/VXT4HG1brZyqOV/M4bxPoynI5mEX iWG2RJmbzXfz9ms2Bs3HgtPDXamC3NbLEIS2pzi/C5xB6SDKSiLux/53weuQ+xjUZ9u+ 5j9MSiON+P7dn4nQyENg8FYLZSSJh/uG/CRuPMZL313URD7Xr/eGWFHYZ02iiiYYwN4J 0fdA== 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 j3si485868itf.0.2018.02.01.10.50.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Feb 2018 10:50:28 -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 1ehJu5-0007Vy-Ah; Thu, 01 Feb 2018 18:48:09 +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 1ehJu4-0007UX-7j for xen-devel@lists.xen.org; Thu, 01 Feb 2018 18:48:08 +0000 X-Inumbo-ID: 817ffde3-0780-11e8-b9b1-635ca7ef6cff Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas1.inumbo.com (Halon) with ESMTP id 817ffde3-0780-11e8-b9b1-635ca7ef6cff; Thu, 01 Feb 2018 18:48:34 +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 777B51435; Thu, 1 Feb 2018 10:48:00 -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 66FC03F25C; Thu, 1 Feb 2018 10:47:59 -0800 (PST) From: Julien Grall To: xen-devel@lists.xen.org Date: Thu, 1 Feb 2018 18:47:46 +0000 Message-Id: <20180201184749.29430-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 v2 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 | 32 ++++++++++++++++++-------------- xen/arch/arm/traps.c | 31 +++++++++++++++++++++++-------- 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 | 13 ++++++++++--- 7 files changed, 51 insertions(+), 40 deletions(-)