From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-61.mta0.migadu.com (out-61.mta0.migadu.com [91.218.175.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D0A71DDF7 for ; Tue, 20 Jun 2023 16:34:53 +0000 (UTC) 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=1687278891; 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=qlTuKY0sLBQGCPF9Fmd8J2P1+Eg6HxwettBG9xmVZ90=; b=UDtoVPwmSSHdmSOoi9JlQQtoaM4tIcNxPjF6TYeu0A9z/O6lshu6W3EDn8yZTpM++ikwEr tOUTQ//zghPZpPfID2883i2BIjm0wqTnnhn1ZzBvRuBkSL6qcCdhdcvrP21qfKp90tXaZq FmykH9AxMnWMz9Cf8Huwo/dvxK0qMg0= 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 v2 18/20] aarch64: psci: Implement MIGRATE_INFO_TYPE Date: Tue, 20 Jun 2023 11:33:51 -0500 Message-ID: <20230620163353.2688567-19-oliver.upton@linux.dev> In-Reply-To: <20230620163353.2688567-1-oliver.upton@linux.dev> References: <20230620163353.2688567-1-oliver.upton@linux.dev> Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 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 ac49d7a..bfd4756 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; } -- 2.41.0.162.gfafddb0af9-goog