From patchwork Sun Apr 23 17:08:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 9695089 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E4ECE60245 for ; Sun, 23 Apr 2017 17:16:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CFFF826530 for ; Sun, 23 Apr 2017 17:16:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C34AA267EC; Sun, 23 Apr 2017 17:16:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 454A026530 for ; Sun, 23 Apr 2017 17:16:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=YhEMzI1v8f2jh3Z3eYx6+07DZA6wQu6ijgIvq9f9/Ok=; b=jNYhm3slkNiDWgcObm3NiW/mAU 67OBoQUe4Bj53s4e/eMO0nmNRP2SocxWfy1+VRjvcWw4cjTEB8dWd1mmAMstqJ0mlZEobtKjzIK5A fZpDp0NrYKbNj1P44j8TKuLee8FZhC2HgKtfGHOXU1d7fHpYbmvEP2McSj+mRbVa9zxbfz7ka6uPN h0oRSsVY6yHU0XsOw8cFGuC+PvDZlV9Q3G0C40a83METjaprGpnx2dBNDVxjkQNt5abvddgHy8a70 lqTaTs6RaPmg42dddFkyozy26fhljXmMVxXeJ5YUSDWmBPdv5JtxhY5NhFxGwKHn/FDVgrhYBGG3c aj0hw0DQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d2L7m-0005KI-I3; Sun, 23 Apr 2017 17:16:38 +0000 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d2L1u-0005sr-Bl for linux-arm-kernel@lists.infradead.org; Sun, 23 Apr 2017 17:10:36 +0000 Received: by mail-wm0-x22e.google.com with SMTP id m123so50338772wma.0 for ; Sun, 23 Apr 2017 10:10:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dWaVcaV6H3dTdyFhOXlN8NstQYW+CjUWXX5otqnFhoY=; b=a7aXIhwb0LoJeMdcNaFMXbgTQrpMFFHXLVh7JLdSxuyUKvPvyXJEJKQ3aq4EaIfW4z qZQqMpO6OPYA0itISgb1fQGlqYg4cmUyo0SPm0HYrPsmt0qI1wMRdSTi/HrGPSvfQEAd P+SuWfgfTagJ/1uKDr/HNc0F5tGUI9V3Ru1U4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dWaVcaV6H3dTdyFhOXlN8NstQYW+CjUWXX5otqnFhoY=; b=czGCH1K/RFP429fHceo+K0dtykuqUG0g/eDuynZ+nDummFKOe4qM0rUSOf/dqYxNTM oexY/XBdmn46r/1woKCop0r5e6Gl+9iMkqhUlLlEzYVlNb2rx5cyJ8UCcomQlS770+Lf z0acUtIfUR3Z5bdsUBnVICtjArCZ2X4LJKrES7q8FoYTw0sVsRbNuq1R3NHsd2fyh6+s K53a0blFqKKlLrLzpQGBld7HUymqRu1EoTymQbUR9rqbrBjdpRFJVU8pChEkdYaCxOO6 K3tbbYatUzWZ4L8JFu5DwbGFxdJkXqikt4LvhEAFhjhuEwAig/mZQYcjbeTgOSo9V9q0 gtmA== X-Gm-Message-State: AN3rC/52MZdKG8FfozztCmMt+F4IsDBQBxdZOlNH4VpgkVz6G7y5NEp6 956FDHyM+dTk1NoLmXwl2A== X-Received: by 10.80.174.99 with SMTP id c90mr133188edd.136.1492967413353; Sun, 23 Apr 2017 10:10:13 -0700 (PDT) Received: from localhost.localdomain (xd93ddc2d.cust.hiper.dk. [217.61.220.45]) by smtp.gmail.com with ESMTPSA id 58sm2803521edz.2.2017.04.23.10.10.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 23 Apr 2017 10:10:12 -0700 (PDT) From: Christoffer Dall To: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Subject: [PULL 40/79] arm64: hyp-stub: Update documentation in asm/virt.h Date: Sun, 23 Apr 2017 19:08:50 +0200 Message-Id: <20170423170929.27334-41-cdall@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170423170929.27334-1-cdall@linaro.org> References: <20170423170929.27334-1-cdall@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170423_101034_574966_CDD0FCD5 X-CRM114-Status: GOOD ( 11.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marc Zyngier , Christoffer Dall , kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Marc Zyngier Comments in asm/virt.h are slightly out of date, so let's align them with the new behaviour of the code. Signed-off-by: Marc Zyngier Signed-off-by: Christoffer Dall --- arch/arm64/include/asm/virt.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/arch/arm64/include/asm/virt.h b/arch/arm64/include/asm/virt.h index 1466d14..1569c3a 100644 --- a/arch/arm64/include/asm/virt.h +++ b/arch/arm64/include/asm/virt.h @@ -19,9 +19,14 @@ #define __ASM__VIRT_H /* - * The arm64 hcall implementation uses x0 to specify the hcall type. A value - * less than 0xfff indicates a special hcall, such as get/set vector. - * Any other value is used as a pointer to the function to call. + * The arm64 hcall implementation uses x0 to specify the hcall + * number. A value less than HVC_STUB_HCALL_NR indicates a special + * hcall, such as set vector. Any other value is handled in a + * hypervisor specific way. + * + * The hypercall is allowed to clobber any of the caller-saved + * registers (x0-x18), so it is advisable to use it through the + * indirection of a function call (as implemented in hyp-stub.S). */ /* HVC_GET_VECTORS - Return the value of the vbar_el2 register. */