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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADE07C433FE for ; Tue, 16 Nov 2021 10:12:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 88C6C613AD for ; Tue, 16 Nov 2021 10:12:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233864AbhKPKPI (ORCPT ); Tue, 16 Nov 2021 05:15:08 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:21000 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233943AbhKPKOU (ORCPT ); Tue, 16 Nov 2021 05:14:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637057483; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=H4RvIoRAtvsLubuSMgFD8o5tLMCcJ+TlvzT8p++BAnk=; b=WMnjjMrtP4xr4s9BKo1fR8sljWc+FB2uHEF5oWvFDSfhpnPSvNMC1E1IQ0u0MYMad4YMeP /jiMzgsFzsf4lL9Gu5EHcLzsmMLiTjSZ4NIZFme7OUVSCRsuoSmRub/J56oz46soJYQ8ON tSbOS9zpxazCRG6aF+wcBZEdcQJDgX0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-216-O7CpqKlgMmWE0mCFdCH9tA-1; Tue, 16 Nov 2021 05:11:19 -0500 X-MC-Unique: O7CpqKlgMmWE0mCFdCH9tA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1B5B41006AA8; Tue, 16 Nov 2021 10:11:19 +0000 (UTC) Received: from virtlab701.virt.lab.eng.bos.redhat.com (unknown [10.19.152.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id CF3985D9DE; Tue, 16 Nov 2021 10:11:18 +0000 (UTC) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: [PATCH] KVM: MMU: update comment on the number of page role combinations Date: Tue, 16 Nov 2021 05:11:14 -0500 Message-Id: <20211116101114.665451-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Paolo Bonzini --- arch/x86/include/asm/kvm_host.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index e977634333d4..354fd2a918d5 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -291,9 +291,9 @@ struct kvm_kernel_irq_routing_entry; * the number of unique SPs that can theoretically be created is 2^n, where n * is the number of bits that are used to compute the role. * - * But, even though there are 18 bits in the mask below, not all combinations + * But, even though there are 20 bits in the mask below, not all combinations * of modes and flags are possible. The maximum number of possible upper-level - * shadow pages for a single gfn is in the neighborhood of 2^13. + * shadow pages for a single gfn is in the neighborhood of 2^15. * * - invalid shadow pages are not accounted. * - level is effectively limited to four combinations, not 16 as the number -- 2.27.0