Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1801767pxj; Wed, 19 May 2021 14:23:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7waS5HGPG+jI8kkN/I9hKqHKJb/sd2zZYpMOqHVol/yWGqT3A+YiVAMdpWWpgRWZ31jRb X-Received: by 2002:a5e:aa10:: with SMTP id s16mr1796476ioe.147.1621459430307; Wed, 19 May 2021 14:23:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621459430; cv=none; d=google.com; s=arc-20160816; b=EdCAZaXeCZKK6WP3Q5lSsF13AqFXfnsILK5Un1WPidnKWZLIsdICAeq4DNSGZbkU5K K9nk+Ormmo0PUPcb0lpt/AwBeuTLJz4bT94AXClE8+OjIiCan22AjBS3bnzu9mzDk2ui XnL1fX4xSnemS9Wb6/YgUv3hPcq8EK3ibslLUnkTswlDtqAf+Ybo1u/Vmb9C2jHzs8yP nd5AL3dLcRi56gNN4B2kL68xWO6L2lys0/cv4iEVgcl+RUprTYGGrVE9uO83N1Km03MX +1cnplHkgxlD6OtfXZIlao+0ezp3Pz7C+EHppwvpd/y+9PaxiAW8V2ysy+fWPK97JOZP j54g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=EpnHJpkYzXbGrQZtbfzHZ3wDQrwAHF+A20nxmkjmOc0=; b=RKFIVPCmfI8nF+lSIMofrpBD69wHS3KLPm55FH/QiK9NX00/mclo+ttY4QCWmJuzpo qb7DQKZRqLDnTXTkHBDhA3f0V6kwEndDKDqIa4zQPcWZoFmfJ4QaK57PagW37Jie5kvG 5i6Z7TCTbZd6oqmyL9YsY8lYBUQzP1f06xqbECo8BDPqFJHCV/iY3x3iDrmPEQqKRlXe yvgeq0Va+J3A6AvcQnCdzpLEol3V1wzor1vIT6MJLRKBDZTI7xjHLbHf7nuc8qjtLG+p 123ouO9RXxBB3qXAK2A87MY13HFp/nxOPu+Mypu05auWxdYsNH1bh9Gy23qPB2sBhYzY 5/2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2021042801 header.b=haaWuRUc; 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=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m25si387906ioo.79.2021.05.19.14.23.37; Wed, 19 May 2021 14:23:50 -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=@zytor.com header.s=2021042801 header.b=haaWuRUc; 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=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229962AbhESVXx (ORCPT + 99 others); Wed, 19 May 2021 17:23:53 -0400 Received: from terminus.zytor.com ([198.137.202.136]:34073 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbhESVXm (ORCPT ); Wed, 19 May 2021 17:23:42 -0400 Received: from tazenda.hos.anvin.org ([IPv6:2601:646:8602:8be0:7285:c2ff:fefb:fd4]) (authenticated bits=0) by mail.zytor.com (8.16.1/8.15.2) with ESMTPSA id 14JLM1EZ4187848 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 19 May 2021 14:22:10 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 14JLM1EZ4187848 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2021042801; t=1621459330; bh=EpnHJpkYzXbGrQZtbfzHZ3wDQrwAHF+A20nxmkjmOc0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=haaWuRUceAj3FP99GP+ExkG9iTm8UiG53GRSJ/VQr7/M3x9wqbO+TDNqsPwChAnhC pMvKQY7vdlit8UMv39+EGBFVIOTmumZIF/p5VSUw6IfMJRmQQAPFlggH8/JM0Hdi5V 1q59oxTDEjPfo4SZ57hQLZ6yH5E/Myr2XuGbs3ntBLFI+YRjmBiVyfjvE6A3GBlBej Rfd4xKsbZ6zDU5qfQeKxhnqp72AksNRg/MFGQDO5OqvuWh8S5zVihXcysIP7AqH78S bmzZmPXrXLxe/F5k9TeQ5RPomh6ia3WXLY+lVDyp0kG0fy1pJ8VNxEukFmuI8R049X 0KmW8mAW2rMUA== From: "H. Peter Anvin" To: Thomas Gleixner , Ingo Molnar , Andy Lutomirski , Borislav Petkov , "H. Peter Anvin" Cc: Linux Kernel Mailing List Subject: [PATCH v3 1/8] x86/traps: add X86_NR_HW_TRAPS to Date: Wed, 19 May 2021 14:21:47 -0700 Message-Id: <20210519212154.511983-2-hpa@zytor.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210519212154.511983-1-hpa@zytor.com> References: <20210519212154.511983-1-hpa@zytor.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "H. Peter Anvin (Intel)" The x86 architecture supports up to 32 trap vectors. Add that constant to . Acked-by: Andy Lutomirski 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 -- 2.31.1