From mboxrd@z Thu Jan 1 00:00:00 1970 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 7EE72C4332F for ; Mon, 7 Nov 2022 18:00:52 +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:References :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: List-Owner; bh=PmHqYuh32lG+KkGJm3UeZ096DZpRNseSZs+8kJtO93o=; b=B7YRYIrc4+5iTp uA3KTT2wziLAPaEWYQ1t5f6mEgGfsLxGIPGVj4Izz9R8oJZ9REaWfRX1FHPvWLNJDUBVsICArYBNG bF191yzLidF38GrQLol2t29J//DfyDSArXlNUHT2fCwbTb2KrnI7KIgXUhmOfeH2oUkVUlIrXvEDL U6EhG9IL7QI372JecPbv6giSeE9oLsclw9KgW4B2oc4SNEg38F8kalokxg79xsXmY0rddFvaEm6Pl Gj4OBHIDXVXAV1Smy3Nft8B7n9k5FSKfkcXPgahIMk+z3sjeRB7ZWnHRf9XgHvOJJMt23eBg9RHt8 jJh0mHCzKnQfKz94nBmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1os6PO-00GzSu-7W; Mon, 07 Nov 2022 17:59:42 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1os6No-00Gyll-SR for linux-arm-kernel@lists.infradead.org; Mon, 07 Nov 2022 17:58:06 +0000 Received: by mail-wm1-x336.google.com with SMTP id t1so7365098wmi.4 for ; Mon, 07 Nov 2022 09:58:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:user-agent:message-id:date:references:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=3/UsOLSVJeRrP3hKZ9XAB4D/JQx5F5JGX1FwiQPvVuU=; b=cN2PpU8w5R2dGTCKi5Q3mrHU2O2eEm8NRLA4oJn3gXKgwYvWUGzX8ieo/RXw6RfGik dnpAhH0P9gzQTOtEFsMuej1JSGcRVQT2+jz9EQxY7IW1NmU2uGRHyGwOnWHtqiehjA82 Qe14hhcb7Ob/3syPlHGOy9eSFnY0s5lUJ01BQXgog2TBMZJUqSACQtWVmIiq2K5sfeqx 0CN5GAmfwLAp8ZzsHzVmhCM1cPGAUsRs5qh1aGWg+UIPv2TfXtFF7pe8N1Ar7p7qFMHJ 0gqYD9GtLugFGiVJRyelKODICgOo6FrDlzU/SS6CCTinBOMn1PlHse8jAoL0wga5t3tC nOZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3/UsOLSVJeRrP3hKZ9XAB4D/JQx5F5JGX1FwiQPvVuU=; b=GsAgq9rFGY6PWkreTxwp4gfV/yCTcQ8Jlpf/LFNa3TdNLdpEuN8MUh3YTqQC3Pjo+4 /2ZRO3gwM6eKr6R8lpa2IfEyp+zI+Lc4Rke1Nup4Axa6MxfRvONU6CA7yehhnDLjc5uB OJ/TBLsrYBo2loSZmM3YaTKDrPue4DFYnJ1OANqnv7DfwkqE4DzzalLor+VqrFLqOdUN kJu3OFP5pEGatMm5j5aGNXx/yUfdW28/XUWVjJwVlpcdG9h4IQyhb3xxonEtJZTwPFu/ ZcTposaVJ3Dvbn8/FUYYLOvtv7snO1M4UHie1pPgP4yzfo9Xkh0U7crgyCL5VI5yI86W 0Rww== X-Gm-Message-State: ANoB5pkYbbZLrKxctFIB7+J+PS9uXfEDZ9FtBkrz/zV8Q0UYd7j6iN+Z 7FLhmnMu7rofd+Udg0XmWVRMl5UGnUaQ7YE2 X-Google-Smtp-Source: AA0mqf45hAf2eMGXeCEaPsHNxIabuTwUDaLIbBELqZs+Mkr1Si2gd7+wy0i/EyOsvqAwI8wbbgmJXw== X-Received: by 2002:a05:600c:1695:b0:3cf:a9b7:81e7 with SMTP id k21-20020a05600c169500b003cfa9b781e7mr5268454wmn.116.1667843883081; Mon, 07 Nov 2022 09:58:03 -0800 (PST) Received: from localhost ([95.148.15.66]) by smtp.gmail.com with ESMTPSA id n17-20020a5d6611000000b002383edcde09sm7994811wru.59.2022.11.07.09.58.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Nov 2022 09:58:02 -0800 (PST) From: Punit Agrawal To: Usama Arif Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-doc@vger.kernel.org, virtualization@lists.linux-foundation.org, linux@armlinux.org.uk, yezengruan@huawei.com, catalin.marinas@arm.com, will@kernel.org, maz@kernel.org, steven.price@arm.com, mark.rutland@arm.com, bagasdotme@gmail.com, fam.zheng@bytedance.com, liangma@liangbit.com, punit.agrawal@bytedance.com Subject: Re: [v2 2/6] KVM: arm64: Add SMCCC paravirtualised lock calls References: <20221104062105.4119003-1-usama.arif@bytedance.com> <20221104062105.4119003-3-usama.arif@bytedance.com> Date: Mon, 07 Nov 2022 17:58:01 +0000 Message-ID: <87cz9y3avq.fsf@stealth> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221107_095804_958335_809F902A X-CRM114-Status: GOOD ( 18.74 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Usama Arif writes: > Add a new SMCCC compatible hypercalls for PV lock features: > ARM_SMCCC_KVM_FUNC_PV_LOCK: 0xC6000002 > > Also add the header file which defines the ABI for the paravirtualized > lock features we're about to add. > > Signed-off-by: Zengruan Ye > Signed-off-by: Usama Arif > --- > arch/arm64/include/asm/pvlock-abi.h | 17 +++++++++++++++++ > include/linux/arm-smccc.h | 8 ++++++++ > tools/include/linux/arm-smccc.h | 8 ++++++++ > 3 files changed, 33 insertions(+) > create mode 100644 arch/arm64/include/asm/pvlock-abi.h > > diff --git a/arch/arm64/include/asm/pvlock-abi.h b/arch/arm64/include/asm/pvlock-abi.h > new file mode 100644 > index 000000000000..3f4574071679 > --- /dev/null > +++ b/arch/arm64/include/asm/pvlock-abi.h > @@ -0,0 +1,17 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * Copyright(c) 2019 Huawei Technologies Co., Ltd > + * Author: Zengruan Ye > + * Usama Arif > + */ > + > +#ifndef __ASM_PVLOCK_ABI_H > +#define __ASM_PVLOCK_ABI_H > + > +struct pvlock_vcpu_state { > + __le64 preempted; > + /* Structure must be 64 byte aligned, pad to that size */ > + u8 padding[56]; > +} __packed; For structure alignment, I'd have expected to see the use of "aligned" attribute. Is there any benefit in using padding to achieve alignment? [...] _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel