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: 9694991 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 68E5B60245 for ; Sun, 23 Apr 2017 17:12:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5234126530 for ; Sun, 23 Apr 2017 17:12:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 46EB2265B9; Sun, 23 Apr 2017 17:12:05 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7F8426530 for ; Sun, 23 Apr 2017 17:12:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1163281AbdDWRMD (ORCPT ); Sun, 23 Apr 2017 13:12:03 -0400 Received: from mail-wm0-f51.google.com ([74.125.82.51]:38660 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162715AbdDWRKU (ORCPT ); Sun, 23 Apr 2017 13:10:20 -0400 Received: by mail-wm0-f51.google.com with SMTP id r190so50451804wme.1 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=JRnN4FAEePBYMt3skXEZlSWjPe9ONLpCvZgDQ8xTstN5XdgpM5faPW6+jJfMpZsnuk bkZAwFMIY5PubgcO+TqjM70CxV8qmDjcxFADsHYRP/nRvpPe74T8x87xVaxzCvQUjA2Z gtKQUzuff3GCcCB3Njqb9oNYEmrwW/o6S6WsEaoVdsEnwOlYYRO/MTsMPJ2PblX9qYGi CqwGhCaB9l30K6lKwHPFE/kdF5QFrfJgy4WWdJHe1jymZSnI/PiEvCAWmLv1Z5ZVRpzC p9/o6PlaC7WELk6U6lOpnFdzmY6ER5PDQy8ZcVfSJPAv+TDRPD75OvEyhbo8+jIcCDH2 5Qjg== X-Gm-Message-State: AN3rC/5YAZR+2jYNw9ggNWfWHoqxLLCI8rj3waLLoiToYbdljQK9AEnM O62UdPDHSCOEYI8P 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?= Cc: Marc Zyngier , kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Christoffer Dall 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> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.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. */