From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DAAC0C433E9 for ; Mon, 18 Jan 2021 13:30:51 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 91BFA21D93 for ; Mon, 18 Jan 2021 13:30:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 91BFA21D93 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=DxyAlTw4MCf6i8NfW5NnDaZO9+v+E7O0xnsCHRNbMBQ=; b=Bza52KsBELm5bYSHg1egpXVid J20qnPmukeP1whP1z+yWOgZ4IjMh0e1eSEtEzsLbY6vCf3eEYz0/ml2YB/Pe4C/MZhgMyhlNj2NOE cndp3UeIMWaGdJLpfNcLvl6H2MqljncnpEe8506cnFXUtK5JEaWMAg6kt+sNuXofnXfYvticpG+Zl nPkhZGJQTEkZRZM8jHNEOTmnhoj+Ux1ToSE5+YEg1A16Lpqd45mnjWWN+uCSuPyn9xbiLuAbsreXX A76pwToqlxB5oNhAMZ8sGPZZ7ixcQnZHkQ4p4YXFXAN8G8ngfB+l6oR/dlEKR8ccrIK8EapZ+ortP ZLFs8ZElQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1UbF-0000oS-IP; Mon, 18 Jan 2021 13:29:41 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1UbC-0000n4-FL for linux-arm-kernel@lists.infradead.org; Mon, 18 Jan 2021 13:29:39 +0000 Received: by mail-wm1-x331.google.com with SMTP id r4so13764877wmh.5 for ; Mon, 18 Jan 2021 05:29:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=azSUNypoUfXkpBNPZlINL/zcgEf9pXSAwHyqYLVciok=; b=Hdiq7ktUglPw2zVeBs7zzB+XtzIcpfitaPaWUCwOh9Lp9grsNlqjNfLEhWzbdqjyLr XwhO7yBQNhaa8PVRuXmwzBb4HoBM0FMU2kRFd1BKaZ4uX5qIute8XLIkw7aleByJtYGf BXUpgbwE6/LwYO5XnDY7K5pT8zQ7ng+PiUgi2+ewvj/+yl6NJJxZ448sKc8AC8xmExWX iyq8MLnxO818KbMz6m0jlISbSB5HOIgfxzwLAjOrQi8IDKamWFVMBQUCoTXjfam8WtZw NpPZUO8H3m3DlxZyqJQvFXYlVIjWbYG5/v1nBe7gt5DE1oDYURdCVacMi3U98mL76gyk ElPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=azSUNypoUfXkpBNPZlINL/zcgEf9pXSAwHyqYLVciok=; b=ZSPLZ72NwKTSFTnHaoIveeya2sO3fWLkzrU1IYIFqxzeAVzWSFYPc1W41dlXmWQFYV 02Pvqa8dBkuW6Tz//sRX1wLUMT9UFnSOkSY1Tye4BcTShBMHM+o1WLmcmS8qb+w+UcOT taWkyP93t/xGZU21WeQJLhjwk8tLhm0OXb6i4YnmBeLj2tL3Hd/b5XMpmV2bpMWoKs9z +ON2TZzakwhDlnq4w5bqrntxO+7rKtjcxZ45BAfB/fwvIWqW65/KptILUzz5UtZOfbCJ eg1/r45sqcaLs51EcIOabVZMwq6D0NtKpulF9HU/Z2Hh4K/gVYVwlFLw0KUpllwX0Wuk 6IgQ== X-Gm-Message-State: AOAM5338ykLuidj2+l3yLJP5TRzXssRXH3z0DQD6cpefygyrhuZkpwkc aJXTpa1XRihLvqfc92wZtGs8WQ== X-Google-Smtp-Source: ABdhPJwuICFtdmLsGWmzfsOVlfdR9kik5BbE6wWl9u1IG/qQD53UckSQXbc/RrHmiYn+JKe9B1+ugg== X-Received: by 2002:a1c:40d6:: with SMTP id n205mr21244747wma.0.1610976576985; Mon, 18 Jan 2021 05:29:36 -0800 (PST) Received: from google.com ([2a01:4b00:8523:2d03:3d4d:985d:87b7:4d55]) by smtp.gmail.com with ESMTPSA id g5sm30955277wro.60.2021.01.18.05.29.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 05:29:36 -0800 (PST) Date: Mon, 18 Jan 2021 13:29:35 +0000 From: David Brazdil To: Marc Zyngier Subject: Re: [PATCH v4 17/21] KVM: arm64: Document HVC_VHE_RESTART stub hypercall Message-ID: <20210118132935.mutemf7j7wtyz7wz@google.com> References: <20210118094533.2874082-1-maz@kernel.org> <20210118094533.2874082-18-maz@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210118094533.2874082-18-maz@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210118_082938_537297_8FE615D7 X-CRM114-Status: GOOD ( 19.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Jing Zhang , kernel-team@android.com, Srinivas Ramana , Suzuki K Poulose , Catalin Marinas , Alexandru Elisei , linux-kernel@vger.kernel.org, Ard Biesheuvel , James Morse , Julien Thierry , Ajay Patil , Prasad Sodagudi , Will Deacon , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jan 18, 2021 at 09:45:29AM +0000, Marc Zyngier wrote: > For completeness, let's document the HVC_VHE_RESTART stub. > > Signed-off-by: Marc Zyngier Acked-by: David Brazdil > --- > Documentation/virt/kvm/arm/hyp-abi.rst | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/Documentation/virt/kvm/arm/hyp-abi.rst b/Documentation/virt/kvm/arm/hyp-abi.rst > index 83cadd8186fa..1ba628baf11b 100644 > --- a/Documentation/virt/kvm/arm/hyp-abi.rst > +++ b/Documentation/virt/kvm/arm/hyp-abi.rst > @@ -58,6 +58,15 @@ these functions (see arch/arm{,64}/include/asm/virt.h): > into place (arm64 only), and jump to the restart address while at HYP/EL2. > This hypercall is not expected to return to its caller. > > +* :: > + > + x0 = HVC_VHE_RESTART (arm64 only) > + > + Attempt to upgrade the kernel's exception level from EL1 to EL2 by enabling > + the VHE mode. This is conditioned by the CPU supporting VHE, the EL2 MMU > + being off, and VHE not being disabled by any other mean (comment line option, 'means' (both singular and plural), and 'command line' > + for example). > + > Any other value of r0/x0 triggers a hypervisor-specific handling, > which is not documented here. > > -- > 2.29.2 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel