From patchwork Tue Jul 21 04:17:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 11674927 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C1C4713A4 for ; Tue, 21 Jul 2020 04:19:42 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 9AE6020792 for ; Tue, 21 Jul 2020 04:19:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="iGa9D87z"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RPE+tWYj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9AE6020792 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=O66HD9EkryBgrNtUlZ6gSTN5J28ksm+rn1frQT7F/Kw=; b=iGa9D87zSt/Btmet360SPp2/x YUMqb59xZhfTBq37Os6WZLDNojZsoKw/Z/I5OeTYf0U14Qcip7iHpAoMLATtNsIH0RGUqUGYGqy73 egliE9xHWkqp1ky8kSA+ko/okABBKd7Be4YquFhfAITiBb0ZLMf2qbfWhUPJcno6PJTXOV+k0B1It GsbZjPKISQOZEj360qOpIotbAD3xD3Jd4g2Chv30xYNw4KQ2uxSJtbDnuUHn+puoNZsg19rZJQEmX L94a1AllNhV5iY+WaxBYNRpiq9Z1QiTdSVK6hcqTYlyak9gCssW+abt4tO4HcPh7qXA9ZF+RmTQag f0NT6fWQA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxjjD-0005hf-Vx; Tue, 21 Jul 2020 04:18:08 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxjjB-0005hA-4z for linux-arm-kernel@lists.infradead.org; Tue, 21 Jul 2020 04:18:06 +0000 Received: by mail-pg1-x544.google.com with SMTP id l63so11331166pge.12 for ; Mon, 20 Jul 2020 21:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=373R9ouGaabWkF9LOu0D0r/ZsTxSFcUlmLnh8I9bY0s=; b=RPE+tWYjEq8lfF5Lw3l/T2VT2gCqX3SDMnLPmA7+qFMTTKSKBzKX5ZJj+2qCHprw0X zhFj6A9WFsSrz9NAqY5J4gbiqPbJPY8qJRzhfwUq9lyt1Su+mlIO4+W8O1jXJzMvWNZQ 5uOA2k2a6QWmhZN5ysIsuMEd/nrlVlZBsmd/QDGma0t53aVuYeX9E2zytGNvy22clEmz swji83M0Z6BNIBEqYqvPmRvztC/wG/tcV8MVy6ra8iMBzCG8sUQBznsfD1Mynnvru0b0 TNO3NgvemhHKueBqbtH3AHZ82se4DMGdqjcTcO8iyQkGvM6awUyOp6uosnGYAdWDzPfp hQvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=373R9ouGaabWkF9LOu0D0r/ZsTxSFcUlmLnh8I9bY0s=; b=B+K3umyP9IdMKbI7kV0Fqv6iTCsF5WvRAWgh2TiEdvDKU6uJ428JELSOAwGrvJC8Nt KBamWoBn1DXsW088+aobD+MnCO6ks+lk+FhjVWOOnvdjfLjBk/Buc5gUBHyYUFt6G2as ZGVtGBQKPh9EKJoF/LGWPPmoxTaL9sdX8WLw8kIdBumJcjnMMYxdbe5kMLjkW427c2pt T3YnQOLtoLB9V088T/vKLAq4wSsoMkx6BmqhMA6Dsv8zJyhpXMjzLWfMfh7v32D9CBL+ aIXoenZGphhG5RtXgfWZJ66s88z5Skf9RT/frz6TaD9yWT0PD/IhVaXX4j+PpXlXh+9i X+JQ== X-Gm-Message-State: AOAM532CC2UpRYgfAF5TE15hMNMOSDurer8fd6K2S/SnxbeLScggDUAC eMZnNhfYFBlwHnqWNzhxanQ= X-Google-Smtp-Source: ABdhPJwVPnVtk5dh2Lh4fkPP3MVN8SquGMQEFuF8nfcQma0abf59oSZFhiCWcRp1e3eJXlBbB8zm0g== X-Received: by 2002:a63:417:: with SMTP id 23mr20032006pge.44.1595305083162; Mon, 20 Jul 2020 21:18:03 -0700 (PDT) Received: from localhost.localdomain ([2409:10:2e40:5100:6e29:95ff:fe2d:8f34]) by smtp.gmail.com with ESMTPSA id e28sm18467270pfm.177.2020.07.20.21.17.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2020 21:18:02 -0700 (PDT) From: Sergey Senozhatsky To: Will Deacon , Marc Zyngier , James Morse , Julien Thierry , Suzuki K Poulose Subject: [RFC][PATCH 1/4] arm64:kvm: define pv_state SMCCC HV calls Date: Tue, 21 Jul 2020 13:17:39 +0900 Message-Id: <20200721041742.197354-2-sergey.senozhatsky@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200721041742.197354-1-sergey.senozhatsky@gmail.com> References: <20200721041742.197354-1-sergey.senozhatsky@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200721_001806_127082_662AC5EB X-CRM114-Status: GOOD ( 10.89 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:544 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [sergey.senozhatsky[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: joelaf@google.com, linux-kernel@vger.kernel.org, Sergey Senozhatsky , suleiman@google.com, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org These will be used later on to configure and enable vCPU PV-state support, which is needed for vcpu_is_preempted(). Signed-off-by: Sergey Senozhatsky --- include/linux/arm-smccc.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/linux/arm-smccc.h b/include/linux/arm-smccc.h index 15c706fb0a37..cba054662692 100644 --- a/include/linux/arm-smccc.h +++ b/include/linux/arm-smccc.h @@ -99,6 +99,24 @@ ARM_SMCCC_OWNER_STANDARD_HYP, \ 0x21) +#define ARM_SMCCC_HV_PV_STATE_FEATURES \ + ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, \ + ARM_SMCCC_SMC_64, \ + ARM_SMCCC_OWNER_STANDARD_HYP, \ + 0x22) + +#define ARM_SMCCC_HV_PV_STATE_INIT \ + ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, \ + ARM_SMCCC_SMC_64, \ + ARM_SMCCC_OWNER_STANDARD_HYP, \ + 0x23) + +#define ARM_SMCCC_HV_PV_STATE_RELEASE \ + ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, \ + ARM_SMCCC_SMC_64, \ + ARM_SMCCC_OWNER_STANDARD_HYP, \ + 0x24) + /* * Return codes defined in ARM DEN 0070A * ARM DEN 0070A is now merged/consolidated into ARM DEN 0028 C