Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1098331pxj; Sat, 15 May 2021 03:56:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4gYVrF4I/PtdluSePZfuG6kMCcwsmTRay/yrVII/RcUW1dc4nXBtEy7BXondAFzCjZZ4B X-Received: by 2002:a05:6e02:d:: with SMTP id h13mr5833978ilr.112.1621076189322; Sat, 15 May 2021 03:56:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621076189; cv=none; d=google.com; s=arc-20160816; b=Zw+dw8jC+h2qgQFsLlTmKYjtyI5rFKJSua9rVrWAYc6Z0QN/Fk4Etjbw2uDGLO02D6 IkMMv48vuhpjcpTfLZfpcesPxaxCL1CliqbHvaxSZwKdaKDxT4gzg4TYLRiMb8gU6oA0 F2Oh9SWNSVrjtmh50NZVuVLGlONbPYWA1i/5oNba9F2K2Us5fyTxQIallR3UdXdrn7N3 44Qa3gezCSYn1WUkWGiYORNOIXkxWgX4+41v8+x7mHrc3WhOiMe+yeHeMdktHibuk0Ul 8jxpnbbQanmBxGKfb9dmW3TPXrZdNEQmNnWoMAV9nsJ1wC2f9HXfA23c3q+yvQPAvvJD w0mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=z3AS5L5pzwBoieeQzKKqb8yQJabY0npf6kK7H3kB4v0=; b=EsDXJw4V5lZeMElVF5k3TQXoO1xYiXhyIXw0XOaG8TQru/z9CFIdZL3e1JdCykMLGD RR657js8QEqruuSkSRjZgJwstPt4eQrNYOrpX1Awj4p+khipVYIpWFYETNf4manboHMs V+k90fLP45D5yY2RDTYfIztZVajO5Rlx7e9IqFdeCmDBIv623dV/xXC1rStIRMl1I2z7 tJIpw7ApNBrxRE8fv8BNj7ugtR4WNuFT0166o1c+39KnOQ+5s+KNZHhuZduukx+Ct4hB ZGATd2O9xlM1/7XbRrl8jesd6VvDm2ZQv3mRX1kFBEVzOwdjFK5D9lpvgumHLpX5zelM 9qmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WuDBXv9q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b24si10253427jar.82.2021.05.15.03.56.16; Sat, 15 May 2021 03:56:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WuDBXv9q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234135AbhENWyN (ORCPT + 99 others); Fri, 14 May 2021 18:54:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:33456 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230371AbhENWyN (ORCPT ); Fri, 14 May 2021 18:54:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2D9C86140A; Fri, 14 May 2021 22:53:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621032781; bh=YrRUzwUUrm9b+bJX+DwHQoDonOGLf0mKSa8j8FGg7hc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=WuDBXv9qQA7ik47vsUWDo6OVFk52ZEbzTnCsKT7RgbhwlzjHMzSCAH4k46r0wu4RQ kaTtf8GAdkETlwZvE867WlH/3Xr9xMYefyqy0aURQe9Y39gTKG3tWPNJxfsge5Phw4 l3fiTIYjgJAUDb0JE8kB7b4/y/yzRy+x5jqIemItjuAlsnDF+fw2xvcr3CiDzZ9z3l CgIyU4fD+8Q2zJmelOy4ba2vygF5TyepWsGEqGw0vDeFASFLtYm+G+NOu7wPutixCt i9I6BoKSBkIsX0WLftFozcjLNyMb68bu1TYrPgVIbTUJdbhkzqUhUsvKiIIroZRzUo m67o0GEHV6YqQ== Subject: Re: [PATCH 1/6] x86/traps: add X86_NR_HW_TRAPS to To: "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , Borislav Petkov Cc: Steve Wahl , Mike Travis , Dimitri Sivanich , Russ Anderson , Linux Kernel Mailing List References: <20210511005531.1065536-1-hpa@zytor.com> <20210511005531.1065536-2-hpa@zytor.com> From: Andy Lutomirski Message-ID: Date: Fri, 14 May 2021 15:53:00 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210511005531.1065536-2-hpa@zytor.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/10/21 5:55 PM, H. Peter Anvin wrote: > From: "H. Peter Anvin (Intel)" > > The x86 architecture supports up to 32 trap vectors. Add that constant > to . > > Signed-off-by: H. Peter Anvin (Intel) > --- > arch/x86/include/asm/trapnr.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/x86/include/asm/trapnr.h b/arch/x86/include/asm/trapnr.h > index f5d2325aa0b7..f0baf92da20b 100644 > --- a/arch/x86/include/asm/trapnr.h > +++ b/arch/x86/include/asm/trapnr.h > @@ -27,6 +27,7 @@ > #define X86_TRAP_VE 20 /* Virtualization Exception */ > #define X86_TRAP_CP 21 /* Control Protection Exception */ > #define X86_TRAP_VC 29 /* VMM Communication Exception */ > +#define X86_NR_HW_TRAPS 32 /* Max hardware trap number */ > #define X86_TRAP_IRET 32 /* IRET Exception */ > > #endif > Acked-by: Andy Lutomirski