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 CBD04C197A0 for ; Thu, 16 Nov 2023 14:22:09 +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:References:In-Reply-To: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bhCg+PaMpnT/p5iB3kRKaPDC1Rbykl02CmmBvGbUEAs=; b=3aUSsKgvh1sbgv wdCpC8xjuAUwJlHUAOGcTsz/1pUcIeAQxcegxfD046paMgqUKvv8KnguWgoL7G9VKlKDJlc221UFK M0vT49Ga+k092LVcdCYJQuEjsBGqefpvlZAhGimOcJ2Cocm2RfnbzD9xLEXT0yiPB1U52yJV9gGZN C+egrxvf6FMmSkS8g+nx5iOYVZ2ZizkcfBtNDgLDgjKNur1+UMxtPHWwi/TVzI8jKO+Kz1yORUaT/ HWJH0dQgMahCAVnrSBagxg8EFiE+hj9KmeYc7lSkykviC+m/Tyk5DUyuD4rFLGRKCCTp2JYulescj cNLk5Cfp4mhx9M996Vkg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r3dFZ-003g4N-15; Thu, 16 Nov 2023 14:21:45 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r3dFW-003g3G-00 for linux-arm-kernel@lists.infradead.org; Thu, 16 Nov 2023 14:21:43 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id 7EA03B81D7E; Thu, 16 Nov 2023 14:21:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8EE7C433C8; Thu, 16 Nov 2023 14:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700144499; bh=raEdXIbHP8Aquq+VfgfjVsJSTdoLci7y4OvBBKOdmaA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mr2kQJ2MLWeTQ1uTcmCXC1yB8aQe05cgGP6fEoqxxnjcSvIhfBF1sJmJOC52QFD86 05UFHrQfSYU2JUOa/SAqxenYNbUxewYp2pghKmIVMOele0OylQLxQiQZu+lGqGSwce twM+lg65fSW87kE5l1oSGBiRAYQpNVYMEl6OgeY0QOEtIsocQpTwjVK6b2PnIP4ABe 8OdVgQwObZUQSpvxfjQuCFIFxPsLTWmUV8XZFEzGeOnSj+tL9r4nZQVNVg/Jk4CfaC SxcayeSWYlewxPE3eAEHOIk1l1ZesUuodm+pnIXsV2I+ga+AMly5vzY0EhodaQ50nv L9L8s6WcDMYlw== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1r3dFR-00Dh3r-IV; Thu, 16 Nov 2023 14:21:37 +0000 Date: Thu, 16 Nov 2023 14:21:37 +0000 Message-ID: <8634x522z2.wl-maz@kernel.org> From: Marc Zyngier To: Cornelia Huck Cc: Jianyong Wu , james.morse@arm.com, will@kernel.org, rmk@armlinux.org.uk, salil.mehta@huawei.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, justin.he@arm.com Subject: Re: [PATCH] arm64/kvm: Introduce feature extension for SMCCC filter In-Reply-To: <877cmhq1zp.fsf@redhat.com> References: <20231116114152.912344-1-jianyong.wu@arm.com> <877cmhq1zp.fsf@redhat.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: cohuck@redhat.com, jianyong.wu@arm.com, james.morse@arm.com, will@kernel.org, rmk@armlinux.org.uk, salil.mehta@huawei.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, justin.he@arm.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231116_062142_170039_4F195F73 X-CRM114-Status: GOOD ( 18.04 ) 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 On Thu, 16 Nov 2023 13:08:58 +0000, Cornelia Huck wrote: > > On Thu, Nov 16 2023, Jianyong Wu wrote: > > > 821d935c87b introduces support for userspace SMCCC filtering, but lack > > of a way to tell userspace if we have this feature. Add a corresponding > > feature extension can resolve this issue. > > > > For example, the incoming feature Vcpu Hotplug needs the SMCCC filter. > > As there is no way to check this feature, VMM will run into error when > > it calls this feature on an old kernel. It's bad for backward compatible. > > Can't you simply query via KVM_HAS_DEVICE_ATTR whether the SMCCC > filtering controls exist? Quite. Commit e0fc6b21616dd introduced it for that exact purpose, specifically to prevent adding more of these capabilities when there is a corresponding attribute that can be readily queried. M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel