From patchwork Fri Jul 9 04:37:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 12366657 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30C9AC07E9C for ; Fri, 9 Jul 2021 04:39:40 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 02EC86141A for ; Fri, 9 Jul 2021 04:39:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 02EC86141A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:References:In-Reply-To: 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: List-Owner; bh=kJWbFLWsuDpQrvTDVyO+FlGzDhLPlWXJpUwQn7SmjrY=; b=l0ELCoiQQ3j+4D 0GPrFY72G7VotVYtSe+n4jSdZ/hiIBZZz7l7MD5iiPtJx1ymq2hlqkDZpDy/teau2L6PUsvZZ/ejf /m9aXiVKnu3NzkYKanC8w6qw2x1s1ZXR9KM6pk4ZLcmxd4nUL0+ZJv1+tpvLLL/5QDOL7JjVsrzHL fE0zwPOaCTUCkrKVrhr9FoLEpEbwBRBgWeonS2qXyLhqIyk4VhiASTXfyn/7DrK+pwZJkQytGtytS 4tBNZ1lSaDZqjhqqvyQM07vJOwgUArhOXTEPldw3PkD2JBR3enAP6kCPK5XZgYVQIKadtg+cLH+0y BeilzxaAufiKnAmf1FBg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m1iGr-000k68-O1; Fri, 09 Jul 2021 04:37:49 +0000 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m1iGe-000k3f-Iv for linux-arm-kernel@lists.infradead.org; Fri, 09 Jul 2021 04:37:37 +0000 Received: by mail-pg1-x532.google.com with SMTP id w15so8690373pgk.13 for ; Thu, 08 Jul 2021 21:37:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eBdDu50tMNuB7A6waM/ZyWIMl2LOJYIC1/NpalUridM=; b=C655qxBGfJlYMHH9QBFLbhyK4uAmvdwzkJEVRuHMZB1mKz3O4MEfvXbS4szocXmsQx XIZA71qy/kDzskTcV6GbpzRzk8XHO4KV9K7Cf1kSB9kEBsdsJHCYou1sWIlHT4aU7d8n oO+1zOGotRjyCjPehfvMbg1+d41s4nllzJJ4o= 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=eBdDu50tMNuB7A6waM/ZyWIMl2LOJYIC1/NpalUridM=; b=RIaHE94j7wMDTrTc77v6oq/wF0NisbdU/t+eGPTwx3JGfnl3EEJonbtWVloq3BuXpZ 8CcTDQBLfQHTVqS1nwZ305yJ/butRbJ4g9AZMG8368gx7GLPVQcQv0KXOsUDKupTj8K+ rcSm+uyt1LKlvAW/UKED3KBtn9DmC+MwxyWKtHdcmSHBjn0qxwssDQI23AABVNHvAm/I zVwJoHJwqilD4aB1+pT2Fe0EJHNjCYZDTQ1AbD5/XsiFf6LMmKiWMm2RHVTvd8skfG7h U1GTfgBpj+sx6r/fWvcuOl6UkdncwwWJ3ODzXSwd03J3ZCXEBOSBMKp/1Cd8Xr48dh7r BHqg== X-Gm-Message-State: AOAM531CF2vA7Fc+D9enHHEkFmKgxnjQlBeFqJxyGdLL7gNNgm8Gc/wr P9nT/fETIHmbZ/qKJT7IFSVV0g== X-Google-Smtp-Source: ABdhPJyU5pINJoX/AogKYgRXTY5MbyhKXColfNbeIbVpm0ISXAwe7bj9tLDDjqgSf+cAP3MHB+R6Wg== X-Received: by 2002:a63:4e4d:: with SMTP id o13mr35755196pgl.361.1625805455971; Thu, 08 Jul 2021 21:37:35 -0700 (PDT) Received: from senozhatsky.flets-east.jp ([2409:10:2e40:5100:a30d:fc4:7834:ee08]) by smtp.gmail.com with ESMTPSA id y4sm4420760pfa.14.2021.07.08.21.37.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jul 2021 21:37:35 -0700 (PDT) From: Sergey Senozhatsky To: Marc Zyngier , Will Deacon Cc: Suleiman Souhlal , Joel Fernandes , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Sergey Senozhatsky Subject: [PATCHv2 1/4] arm64: smccc: Add SMCCC pv-vcpu-state function call IDs Date: Fri, 9 Jul 2021 13:37:10 +0900 Message-Id: <20210709043713.887098-2-senozhatsky@chromium.org> X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog In-Reply-To: <20210709043713.887098-1-senozhatsky@chromium.org> References: <20210709043713.887098-1-senozhatsky@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210708_213736_702376_82021971 X-CRM114-Status: GOOD ( 10.08 ) 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 Add the definitions of the SMCCC functions that will be used to paravirt VCPU state configuration. 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 7d1cabe15262..dbf0d658e54a 100644 --- a/include/linux/arm-smccc.h +++ b/include/linux/arm-smccc.h @@ -177,6 +177,24 @@ ARM_SMCCC_OWNER_STANDARD, \ 0x53) +#define ARM_SMCCC_HV_PV_VCPU_STATE_FEATURES \ + ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, \ + ARM_SMCCC_SMC_64, \ + ARM_SMCCC_OWNER_STANDARD_HYP, \ + 0x60) + +#define ARM_SMCCC_HV_PV_VCPU_STATE_INIT \ + ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, \ + ARM_SMCCC_SMC_64, \ + ARM_SMCCC_OWNER_STANDARD_HYP, \ + 0x61) + +#define ARM_SMCCC_HV_PV_VCPU_STATE_RELEASE \ + ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, \ + ARM_SMCCC_SMC_64, \ + ARM_SMCCC_OWNER_STANDARD_HYP, \ + 0x62) + /* * Return codes defined in ARM DEN 0070A * ARM DEN 0070A is now merged/consolidated into ARM DEN 0028 C