From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFDA526C3BD; Tue, 1 Jul 2025 10:16:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751365001; cv=none; b=ePAQmyoyBImxlgPfBn8sfjp0RBVmn1ciMXh9Q8I+ipfE+YNJPKdvkmRJIUynZsFT63lo0lhdY7aSVfvOgCmxuFpZ0CHR8JrQVYhpnCAVTUXlF54n3bqsTts0AhyNXVnhr4AXX4g1nTNMpvRnYvjEAd5YlXehX1LJLQ0WaYVub6A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751365001; c=relaxed/simple; bh=wJ97PMZks1E68SWWxGLuV3ozwQ2QPNeGcHgxfiOSy6c=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=mgf9EQlqwAnFtKf7NEpfMEM62Yh6nEdHBRD6irF+V51MFwgdK3OSRQJKxIlyJZ6WtumBOcO6qjjVRULMO1I0lvswv4slzxISC2cScYDjYnNSiEGJ7gFtmf/3/HPI0j+plp7PhAicck+QTwtPkIZpQTE82gOEqEI1vgZ2BDiZMfQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C27FC1595; Tue, 1 Jul 2025 03:16:21 -0700 (PDT) Received: from [10.57.84.92] (unknown [10.57.84.92]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 183133F58B; Tue, 1 Jul 2025 03:16:32 -0700 (PDT) Message-ID: <8f59f1a5-64e7-4444-a8b6-d399e2822829@arm.com> Date: Tue, 1 Jul 2025 11:16:32 +0100 Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 12/43] KVM: arm64: vgic: Provide helper for number of list registers Content-Language: en-GB To: Steven Price , kvm@vger.kernel.org, kvmarm@lists.linux.dev Cc: Catalin Marinas , Marc Zyngier , Will Deacon , James Morse , Oliver Upton , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Joey Gouly , Alexandru Elisei , Christoffer Dall , Fuad Tabba , linux-coco@lists.linux.dev, Ganapatrao Kulkarni , Gavin Shan , Shanker Donthineni , Alper Gun , "Aneesh Kumar K . V" , Emi Kisanuki References: <20250611104844.245235-1-steven.price@arm.com> <20250611104844.245235-13-steven.price@arm.com> From: Suzuki K Poulose In-Reply-To: <20250611104844.245235-13-steven.price@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/06/2025 11:48, Steven Price wrote: > Currently the number of list registers available is stored in a global > (kvm_vgic_global_state.nr_lr). With Arm CCA the RMM is permitted to > reserve list registers for its own use and so the number of available > list registers can be fewer for a realm VM. Provide a wrapper function > to fetch the global in preparation for restricting nr_lr when dealing > with a realm VM. > > Reviewed-by: Gavin Shan > Signed-off-by: Steven Price Reviewed-by: Suzuki K Poulose