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 X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 30CD7C433DF for ; Wed, 20 May 2020 17:54:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 11DD8207D3 for ; Wed, 20 May 2020 17:54:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589997289; bh=LwxTBNwVwq8v+Z3EBK8Zb+aYAe0AVV8dq4zcV/fvDC8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=DB/7kYZkVYaT4M0I/gkDki28NhUpN0K08PEPZkf7Q9Z9Xaomu9A8xcUXb1c+Q258m XvlayomVcTuUBiB8L40xJ64AoMRhobL72wfB6oOP1eaXburJjJQ7W8EPRLsaGSb/hx xQOij5fnhyQjNFXqB3xSgnprstcZm1Nog4VQHcxM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726862AbgETRys (ORCPT ); Wed, 20 May 2020 13:54:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:60862 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726576AbgETRyq (ORCPT ); Wed, 20 May 2020 13:54:46 -0400 Received: from localhost.localdomain (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AD330207D3; Wed, 20 May 2020 17:54:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589997286; bh=LwxTBNwVwq8v+Z3EBK8Zb+aYAe0AVV8dq4zcV/fvDC8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OFq5+gFik+r6kGeqmyDWMKqEgZalTs7c4tPsNNhQaX/MPA8BMIV672M3qkbbA9ZDQ 27uhRAS9YPmjakvM6KuqrfY2I4LD9GHc/miBeCKwQtsFFp7gOUwchYkOUzmuSE6foo tpr7SsjsgdfdXkm0DB9u1TBpd5zg/WWX5pPxmrwI= From: Will Deacon To: Anshuman Khandual , linux-arm-kernel@lists.infradead.org Cc: catalin.marinas@arm.com, Will Deacon , linux-kernel@vger.kernel.org, kvmarm@lists.cs.columbia.edu, Marc Zyngier Subject: Re: [PATCH V3] arm64/cpufeature: Validate hypervisor capabilities during CPU hotplug Date: Wed, 20 May 2020 18:54:37 +0100 Message-Id: <158998676494.231372.15074477766045633803.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <1589248647-22925-1-git-send-email-anshuman.khandual@arm.com> References: <1589248647-22925-1-git-send-email-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 12 May 2020 07:27:27 +0530, Anshuman Khandual wrote: > This validates hypervisor capabilities like VMID width, IPA range for any > hot plug CPU against system finalized values. KVM's view of the IPA space > is used while allowing a given CPU to come up. While here, it factors out > get_vmid_bits() for general use. > > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Marc Zyngier > Cc: Mark Rutland > Cc: James Morse > Cc: Suzuki K Poulose > Cc: linux-arm-kernel@lists.infradead.org > Cc: kvmarm@lists.cs.columbia.edu > Cc: linux-kernel@vger.kernel.org Applied to arm64 (for-next/cpufeature), thanks! [1/1] arm64/cpufeature: Validate hypervisor capabilities during CPU hotplug https://git.kernel.org/arm64/c/c73433fc630c But please note that I made some changes to verify_hyp_capabilities() so that it's (a) static and (b) uses IS_ENABLED to avoid the dummy function definition. I also extended the IS_ENABLED_check so that it doesn't conflict with the KVM kconfig changes from Fuad. Please shout if you think I'm still missing something. Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev