From patchwork Thu Feb 13 16:14:23 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Price X-Patchwork-Id: 13973639 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC7AF287DF9; Thu, 13 Feb 2025 16:18:02 +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=1739463484; cv=none; b=J3NUUEwY2qHevgxM+IY9rZVmoIepIthSRDA2NwKCw8Q8VsPREfDHwWZ95UiaimZG5yu6cx0x5Jv+V5fjdXGsqm4Oxj7ck3fXd0LlMxVJaApilm+V3g7+MQkkloC2jO4V9uyTtqIWoxv1WLyirt86MNXVvuneehvJC0AwzV+R3C8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739463484; c=relaxed/simple; bh=QCO25JBmGktng8tOdNTs4vuEND4ZbVsv1uKPMCg707E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QnziHYAPDa0p9BPo11jhB64HAVuQ9Ue6AMBvw2nfhnkmyPu5J8vugL8tva1NW67KzVlsPjUNRc0Qgl4b4ejBj910qdHq8KyS6TzpG5C6YTpwaOru7BGr7MaBvZGaHCn/5IW/ngBUY2cEP4B7qJi34C6wQhQ5sZ/3gg1dcPAlKOg= 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 1AAEF26BA; Thu, 13 Feb 2025 08:18:23 -0800 (PST) Received: from e122027.cambridge.arm.com (e122027.cambridge.arm.com [10.1.32.44]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 612293F6A8; Thu, 13 Feb 2025 08:17:58 -0800 (PST) From: Steven Price To: kvm@vger.kernel.org, kvmarm@lists.linux.dev Cc: Steven Price , Catalin Marinas , Marc Zyngier , Will Deacon , James Morse , Oliver Upton , Suzuki K Poulose , 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" Subject: [PATCH v7 43/45] KVM: arm64: Expose KVM_ARM_VCPU_REC to user space Date: Thu, 13 Feb 2025 16:14:23 +0000 Message-ID: <20250213161426.102987-44-steven.price@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250213161426.102987-1-steven.price@arm.com> References: <20250213161426.102987-1-steven.price@arm.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Increment KVM_VCPU_MAX_FEATURES to expose the new capability to user space. *NOTE*: This also exposes KVM_ARM_VCPU_HAS_EL2 (as it is one less than KVM_ARM_VCPU_REC) - so this currently depends on nested virt being 'finished' before merging. See below for discussion: https://lore.kernel.org/r/a7011738-a084-46fa-947f-395d90b37f8b%40arm.com Signed-off-by: Steven Price --- arch/arm64/include/asm/kvm_host.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index df9497998ed5..4aedfbfa1d6e 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h @@ -40,7 +40,7 @@ #define KVM_MAX_VCPUS VGIC_V3_MAX_CPUS -#define KVM_VCPU_MAX_FEATURES 7 +#define KVM_VCPU_MAX_FEATURES 9 #define KVM_VCPU_VALID_FEATURES (BIT(KVM_VCPU_MAX_FEATURES) - 1) #define KVM_REQ_SLEEP \