From patchwork Wed Aug 2 23:42:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver Upton X-Patchwork-Id: 13338957 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4FFD4C00528 for ; Wed, 2 Aug 2023 23:44:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233157AbjHBXof (ORCPT ); Wed, 2 Aug 2023 19:44:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233243AbjHBXo1 (ORCPT ); Wed, 2 Aug 2023 19:44:27 -0400 Received: from out-85.mta1.migadu.com (out-85.mta1.migadu.com [IPv6:2001:41d0:203:375::55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B883E35B5 for ; Wed, 2 Aug 2023 16:43:53 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1691019822; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rbC1VLEbfs8NLG+69kh7bsslTbnLgAwVxM41Gwv/hSQ=; b=Cj8HSopN7fdcBVTt+gCuxPc4AQD/sZs/oTbCHn9uzAW1WOtexfrruBZu+ukvCAjJen92MF SdWcKj78lXzelQqp06VG+GaZNFycEdxeZJ7RVv+a4FFdsve7wsNKJh9Je9C/vUBpWfQJwi ZqZDBROJRPfFf2nxnyfIWvGJip3zqVQ= From: Oliver Upton To: kvmarm@lists.linux.dev Cc: kvm@vger.kernel.org, Marc Zyngier , James Morse , Suzuki K Poulose , Zenghui Yu , Will Deacon , Julien Thierry , Salil Mehta , Oliver Upton Subject: [PATCH kvmtool v3 15/17] aarch64: psci: Implement MIGRATE_INFO_TYPE Date: Wed, 2 Aug 2023 23:42:53 +0000 Message-ID: <20230802234255.466782-16-oliver.upton@linux.dev> In-Reply-To: <20230802234255.466782-1-oliver.upton@linux.dev> References: <20230802234255.466782-1-oliver.upton@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Let the guest know that our PSCI implementation is entirely oblivious to the existence of a Trusted OS, and thus shouldn't care about it. Signed-off-by: Oliver Upton --- arm/aarch64/psci.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arm/aarch64/psci.c b/arm/aarch64/psci.c index ac49d7aa8f22..bfd4756ea056 100644 --- a/arm/aarch64/psci.c +++ b/arm/aarch64/psci.c @@ -32,6 +32,7 @@ static void psci_features(struct kvm_cpu *vcpu, struct arm_smccc_res *res) case PSCI_0_2_FN64_CPU_ON: case PSCI_0_2_FN_AFFINITY_INFO: case PSCI_0_2_FN64_AFFINITY_INFO: + case PSCI_0_2_FN_MIGRATE_INFO_TYPE: case ARM_SMCCC_VERSION_FUNC_ID: res->a0 = PSCI_RET_SUCCESS; break; @@ -190,6 +191,10 @@ void handle_psci(struct kvm_cpu *vcpu, struct arm_smccc_res *res) case PSCI_0_2_FN64_AFFINITY_INFO: affinity_info(vcpu, res); break; + case PSCI_0_2_FN_MIGRATE_INFO_TYPE: + /* Trusted OS not present */ + res->a0 = PSCI_0_2_TOS_MP; + break; default: res->a0 = PSCI_RET_NOT_SUPPORTED; }