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=-15.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 C8C33C433ED for ; Wed, 7 Apr 2021 20:37:34 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 61AE66108B for ; Wed, 7 Apr 2021 20:37:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 61AE66108B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc: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=Rlp1OGksa2NbxAUMrPNoYNR8x+z46K6EpR3AI9l67u8=; b=YwsWtZ//DeZBqqkj/Z6ekS1QA triFwAmK28f3I2Oq6TQIKVLMxNrREPNOpDmjPTJ7rjnXDGcyYCBnxc2Vs6Yl9zSySujkaQQvILect XCpAkdEGFgM9JGPTkX2lE1w1s4/++5YYKzLRRaKXfOIu+LZXGsGG4PgGquprDEMnkOjSXlV97rQWK SdWYHeLTbYO8ZhAwvgzRHQLodnltAJ/uXfCSNPJ+9XkSaTA7GyusC0GXHiIJaw1kv8QBDzoXbEje2 m9TPcFZpeQWBJ2AMCNSiCj2Tz3BBBaTdgqQ95bRuq+MknDX5tZtDRXLROXmb84YMt0q0ffu762khY iyB+uFBgQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUEtw-005yOX-Je; Wed, 07 Apr 2021 20:35:48 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUEts-005yO9-8q for linux-arm-kernel@lists.infradead.org; Wed, 07 Apr 2021 20:35:46 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 215946108B; Wed, 7 Apr 2021 20:35:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617827742; bh=tufwk+iZbuu8xnv907IFAuJ67skYTJw4fVp32xhXg7A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Kkon/6pHu8xbwHAUFS8oKQPQX5VgqUXF2PrEV0YADo53w//7Dq/U7ApfXHwSze070 PiNp1Ed2u6fCCR6UQfyUIqcogVNTgzUN9Qo82zPMa68MnmWCUr9xxL6h2mKqLRD2yQ RIAZdqyQPy7LuPxF/+KsAhHTqL/dLkZe4Xy9THo3pH/AABOQ3jA2VcKGAekTaOX/FC LTI3coKGQE8D63UPuvb0ccUkFOdYVhdVyslhKqb2j5L7oP2QQ8M7mGLOEcAF3v4YmD KZ80iMKIma3BxmwE/whVpy8D2NwtD1G6jEI+Pin/l/vSE7/ruszmfspzz6kWISsJHo 2RVMuuk106VAw== Date: Wed, 7 Apr 2021 21:35:37 +0100 From: Will Deacon To: Marc Zyngier Cc: linux-arm-kernel@lists.infradead.org, kernel-team@android.com, ascull@google.com, tabba@google.com, dbrazdil@google.com, James Morse , Suzuki K Poulose , Alexandru Elisei Subject: Re: [PATCH] KVM: arm64: Clarify vcpu reset behaviour Message-ID: <20210407203537.GA16011@willie-the-truck> References: <20210406125841.1077079-1-maz@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210406125841.1077079-1-maz@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210407_213544_564485_AA252883 X-CRM114-Status: GOOD ( 16.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Apr 06, 2021 at 01:58:41PM +0100, Marc Zyngier wrote: > Although the KVM_ARM_VCPU_INIT documentation mention that the > registers are reset to their "initial values", it doesn't > describe what these values are. > = > Describe this state explicitly. > = > Signed-off-by: Marc Zyngier > --- > Documentation/virt/kvm/api.rst | 10 ++++++++++ > 1 file changed, 10 insertions(+) > = > diff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/kvm/api.= rst > index 38e327d4b479..e2237e4e10ba 100644 > --- a/Documentation/virt/kvm/api.rst > +++ b/Documentation/virt/kvm/api.rst > @@ -3115,6 +3115,16 @@ optional features it should have. =A0This will cau= se a reset of the cpu > registers to their initial values. =A0If this is not called, KVM_RUN will > return ENOEXEC for that vcpu. > = > +The initial values are defined as: > + - Processor state: > + * AArch64: EL1h, D, A, I and F bits set > + * Aarch32: SVC, D, A, I and F bits set nit, but capitalisation should be "AArch32" Is "SVC" sufficient, or do we also need to describe Arm vs Thumb? Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel