From patchwork Mon Feb 21 15:35:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 12753773 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 62BC9C433F5 for ; Mon, 21 Feb 2022 15:36:55 +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=YNbg8N/diA+jZwdxATfLAA2fI3R7J2I6/rYhKlQ7bVM=; b=OSTQmy4LZ3OkDK VM3vPxoVFdcF8qoox2m/PYQFykNpEnuXpW6pVAE6VCKbPDTaSjsslykT0Zxx2Fl5Z/RM7UviSgBx8 vwQAVapw5vuXvmTEhPDxKci8lvW/dt5pYLjf1r7Ksvp9tnqf4fh/bY4BnmPcJoweBCLeIMxPHi0eQ xKXNWUsd1T/y5BhvFI4Kc5BzO7yoe0nQC2elPWgwjBXdkOFxXypVcGosrD/QHX7piQz2QoTMOr5uI ml1uXmKa2IDDL+tkzfNHPEyB3QhBNomUkJlZmEOW5i3M9ek536kfX/E9YM9DgIfY2OaOwsd4NMmHS 1xBwToB3B47pNQthMsBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMAiw-006Q0F-4U; Mon, 21 Feb 2022 15:35:38 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMAis-006Pz4-0g for linux-arm-kernel@lists.infradead.org; Mon, 21 Feb 2022 15:35:36 +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 ams.source.kernel.org (Postfix) with ESMTPS id C84E4B80E9B; Mon, 21 Feb 2022 15:35:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0FDA5C340E9; Mon, 21 Feb 2022 15:35:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645457730; bh=QO2/ryxLIgGlo+m7rgzQ3B0LtbknnIDgKAJPKHdFKU4=; h=From:To:Cc:Subject:Date:From; b=jEBBU1bviEgJZ/CCJj+GZpBOMNpULxnno6LRkAGUsAQEkQuyVXDVPwfxxcuITpnJN YMYzZkqhKRyZRkrCBQGikswgPq36HeLjoI8E/Ppd/yJN3lCnr2vzWeIeQPzoco0psK ZFOKDodfgzYC4DBvHlCtD+Dv4AtRAj9TfopBne/xekytebN2IEzmpE3oEiiekrkYMF 6/4y8O29CTfkcwHdQwd7TuJiTDxmt6l0q0cqo9Cov9OQFG6nhIAFv0EBvurGROL1Ey bLRGf64zUrPXzfodiuMF6W3ps+z1KI/g34xC+TRfhfNt2Ncc7IzEKGSLX6c/EhymZ2 zRV05Jk0R+eqw== From: Will Deacon To: kvmarm@lists.cs.columbia.edu Cc: linux-arm-kernel@lists.infradead.org, Will Deacon , Marc Zyngier , James Morse , Alexandru Elisei , Suzuki K Poulose Subject: [PATCH v2 0/3] Plumb PSCI SYSTEM_RESET2 call for guests Date: Mon, 21 Feb 2022 15:35:21 +0000 Message-Id: <20220221153524.15397-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-20220221_073534_265305_5C51BA30 X-CRM114-Status: GOOD ( 11.37 ) 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 all, Here's version two of the patches I posted at the end of last week: https://lore.kernel.org/r/20220217184001.11753-1-will@kernel.org The only change is to the comments and ABI documentation, so that we refer to the PSCI spec instead of describing the arguments to RESET2. Cheers, Will Cc: Marc Zyngier Cc: James Morse Cc: Alexandru Elisei Cc: Suzuki K Poulose --->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(-)