From patchwork Tue Nov 24 17:35:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 57266 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp2238304lbb; Tue, 24 Nov 2015 09:38:24 -0800 (PST) X-Received: by 10.66.155.197 with SMTP id vy5mr44699261pab.109.1448386704549; Tue, 24 Nov 2015 09:38:24 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id wz5si27711514pab.68.2015.11.24.09.38.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Nov 2015 09:38:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a1HWa-0005fy-Ta; Tue, 24 Nov 2015 17:37:04 +0000 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a1HVH-0004wy-O1 for linux-arm-kernel@lists.infradead.org; Tue, 24 Nov 2015 17:35:45 +0000 Received: by wmec201 with SMTP id c201so37092965wme.1 for ; Tue, 24 Nov 2015 09:35:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=56VgS1GGA8a1SSsmPl7Dl+rmuFKFrhD56VXpvNdMr20=; b=H5ayL0DnE2Qs3Jkbk2Pmf8UYoLgYfuGL0i3EXbWRfoiKZolYvMhLGSeEeJ1ng1laXv Bzhz+1Uf2U7F2RfOEn2LnG3OQ722n1LwkCaxrTllxi+N7lH+njjXpuppKAySvrWOZMa3 e2n1YsU3tcHb3V2IJGLNfjBqG8bq/xKq0zpWGWO3U2wqUCX2LRaSNKA1MSUEaRPN1C79 GGtC16T8tqiKbdH1dnlKEeXCJRt2Wf5r37BUHp9/xLijkiPC3EfxD7OTWmigOtJXHVHa 5gObfQ1OOfqwzpxnuv9Ne+U0Hm3AB0zCnguyUWkTX1SrwQBISkkwjWlZKbPuce1dqK5d FRpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=56VgS1GGA8a1SSsmPl7Dl+rmuFKFrhD56VXpvNdMr20=; b=jXEdCqqp1CWCvtxRMsknXR0/xx8a9cQzZfeEspUUJPdT1GJPpAu61ikkWMDFfI3o00 AAqt0JtGmVlr6WJgF4z3krSzNjFPebcpv1RrRZHVGTKmMmnQbL9ooWChvM/4UY/9TRrs hGvgRFG7HhEsvchdLY6yj6xRbNv+bWUy+4Hq4XiYtQmbQ4QEE5eNslCKORnGme4DDz66 gOMWXEoGtHkQWsnQAeQ2EH2TGivywPoqgd6OQbwEyQdRVR54jVgI6uAtYjKEABOcfAeK NGJc4HkMFNi9WEzbIwmA7MHrXcpF1vyeLi0rc/gCuzrPRduLrJK/08xFweMGrmNE7e1/ ejQQ== X-Gm-Message-State: ALoCoQnFKywcywUh4ANhdnL0dhM7zq6CMJqu9gWka/UFwOgRKg2o6b7KEALVmzAdY35Kz42zglsd X-Received: by 10.194.173.102 with SMTP id bj6mr37395788wjc.180.1448386523913; Tue, 24 Nov 2015 09:35:23 -0800 (PST) Received: from localhost.localdomain ([94.18.191.146]) by smtp.gmail.com with ESMTPSA id jo6sm19283805wjb.48.2015.11.24.09.35.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Nov 2015 09:35:23 -0800 (PST) From: Christoffer Dall To: Paolo Bonzini Subject: [PULL 7/8] arm64: kvm: avoid %p in __kvm_hyp_panic Date: Tue, 24 Nov 2015 18:35:35 +0100 Message-Id: <1448386536-30118-8-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 2.1.2.330.g565301e.dirty In-Reply-To: <1448386536-30118-1-git-send-email-christoffer.dall@linaro.org> References: <1448386536-30118-1-git-send-email-christoffer.dall@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151124_093544_132515_2389CBC8 X-CRM114-Status: GOOD ( 11.70 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:230 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Christoffer Dall , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org From: Mark Rutland Currently __kvm_hyp_panic uses %p for values which are not pointers, such as the ESR value. This can confusingly lead to "(null)" being printed for the value. Use %x instead, and only use %p for host pointers. Signed-off-by: Mark Rutland Acked-by: Marc Zyngier Cc: Christoffer Dall Signed-off-by: Christoffer Dall --- arch/arm64/kvm/hyp.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.1.2.330.g565301e.dirty _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/arch/arm64/kvm/hyp.S b/arch/arm64/kvm/hyp.S index ff2e038..ce70817 100644 --- a/arch/arm64/kvm/hyp.S +++ b/arch/arm64/kvm/hyp.S @@ -914,7 +914,7 @@ __kvm_hyp_panic: ENDPROC(__kvm_hyp_panic) __hyp_panic_str: - .ascii "HYP panic:\nPS:%08x PC:%p ESR:%p\nFAR:%p HPFAR:%p PAR:%p\nVCPU:%p\n\0" + .ascii "HYP panic:\nPS:%08x PC:%016x ESR:%08x\nFAR:%016x HPFAR:%016x PAR:%016x\nVCPU:%p\n\0" .align 2