From patchwork Thu Feb 17 18:39:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 12750554 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1F65FC433F5 for ; Thu, 17 Feb 2022 18:41:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=G+/QDz5pLOc+j2hZjM5JlNuqA8JXVqMkerYEnXF7Ftg=; b=Pwq/TpTNNHHcDW YdG0v+EGbNXJd4tFQouaJnUdkf1OtlA1/nIbo3G1Kgk9RWrDScbuqrbpbvv9lMSHKZh7RdrhbpVS7 6vtdLMBoQz6oAlvmZ+A5uukkD6/gTWFLv0rP52UJdOeqQb/p2e4E+VQu/TuIvAS6HXcq8upTwC9m/ GhHPmZVlexYomJMYYuRhGbus+it/ZpQNuRU4EghDG4qMISBWxuTRPiiB7efTjEa2PqYvsAkbfA48E fqS3xfcv1VzYqb76GeLvOkVLvmAjCb7QUXlaLOrntATn2V8F0t6f/GBdIdTcruisC1OtFPuIlPzt7 WwqKD/TQ4TGn74Cv7+FA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nKlhP-00BlB6-0D; Thu, 17 Feb 2022 18:40:15 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nKlhL-00BlAC-QN for linux-arm-kernel@lists.infradead.org; Thu, 17 Feb 2022 18:40:13 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 974E761B8F; Thu, 17 Feb 2022 18:40:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DFE5C340EC; Thu, 17 Feb 2022 18:40:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645123209; bh=Dbjh2u64Nwrj1+UqHZeo6jHQzL9HuPf3gHIjesle38A=; h=From:To:Cc:Subject:Date:From; b=om424GyXiuXkTHcWTvWwS/vwSqes2iPpJ+Mc8fksnKsu3PIHl74qzxdfmtZE+fNuZ C0mmX4YNZRjugDMoJOLDF2Aei8iXg5TdSi7CTJxpO9HjpHTIrirtX7AEFJTJTvF30z UBq7pM/RZfoX5/1qT0Z4jQTIZsKPl40PO7ngsOOcWMjpwoGERGs8c5ABNG6vrsFrQo ugSRdd3OPZ/B0feEYK24KCavVn2vCAADI8TKbKEkS74VCJNwsUjOWmN04EqGkD0mxG Zk6oIx6KTq57w5/z/zCj20z9ikmZ6UCkgZdlQQhogXZbG+i17RWOo4b1X4ig2FkxhR +fAuwzJO9PH+Q== From: Will Deacon To: kvmarm@lists.cs.columbia.edu Cc: linux-arm-kernel@lists.infradead.org, Will Deacon Subject: [PATCH 0/3] Plumb PSCI SYSTEM_RESET2 call for guests Date: Thu, 17 Feb 2022 18:39:58 +0000 Message-Id: <20220217184001.11753-1-will@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220217_104011_938589_93596F7B X-CRM114-Status: UNSURE ( 9.81 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi folks, This small series exposes the PSCI SYSTEM_RESET2 call to guests, which allows the propagation of a "reset_type" and a "cookie" back to the VMM. Although Linux guests only ever pass 0 for the type ("SYSTEM_WARM_RESET"), the vendor-defined range can be used by a bootloader to provide additional information about the reset, such as an error code. Cheers, Will --->8 Will Deacon (3): KVM: arm64: Bump guest PSCI version to 1.1 KVM: arm64: Expose PSCI SYSTEM_RESET2 call to the guest KVM: arm64: Indicate SYSTEM_RESET2 in kvm_run::system_event flags field Documentation/virt/kvm/api.rst | 5 +++ arch/arm64/include/uapi/asm/kvm.h | 7 ++++ arch/arm64/kvm/psci.c | 58 +++++++++++++++++++++++++------ include/kvm/arm_psci.h | 3 +- include/uapi/linux/psci.h | 4 +++ 5 files changed, 66 insertions(+), 11 deletions(-)