[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] x86: guard synthetic feature and bug enumerators
- To: Jan Beulich <jbeulich@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Jason Andryuk <jason.andryuk@xxxxxxx>
- Date: Thu, 8 Jan 2026 12:18:32 -0500
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XNHy6dwqWztWz+1vfSEuUKorK4pasF/z7XeKyakB4ic=; b=MfKwP+VhOYx/t3b6ZXD8EutbVVW9tHbYj9f7oolvi80YCTYew4gHAQHiFyNNc+3jcN8Qyn397pWEJw7SVz7sS6SxIGi357JRnfAY017pBi0EJsp0hwP/731sWlR+bnrwHDQIxVuKalQqfiROC2i3dM3Xx1mkt+GWoOtEE5c5iwEHfDJjIj5Qzlxxv3IAbMTWsxGDKQcplnTMW0/1xOCE19KQbZ5P7Wr7ZLlGluIg0/8bzToiLlpTPSItfVwl41jShGjLFqKONJLQWxuF/92zMGntqdTOno3VPZEjySNh/EgNlYjuEJcZ/nGmglrqEeSA4cv2jpnhy1zXvzUp/w9Quw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=sBeRhnb/5LHlINSyvlai1Vsfy4T2GVDoXaz2EKn5z+4fViweQ7iyGMJqnt+kCYWfUvYV7lCnuAbZztIppEYikPqc7c/NMJRTNxs43zr4V3jkgzUuSqup4N+rfezAfLEIvPrit9ZBagwn5k9gzNWOOdfky7VLf9Jj1ueVMTt0sm+MWUipDaHVlmsHD1YB/0XaZh3ErY5PM9Qdc9yMNgZZPJPnT+6TEr736StEEWTwQRhJ+FnizT3DtuqYT+JeINBkuaD27izta6a18fqHN4109TJSjNgSUbGUBeNtQdlDBkh7rtJcJ/bGBdbmaFydHX9JbfzXgnyVm8DV7qzJok2m4Q==
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Thu, 08 Jan 2026 17:18:50 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 2026-01-07 09:11, Jan Beulich wrote:
While adding new enumerators one may overlook the (rare) need to bump
X86_NR_{SYNTH,BUG}. Guard against that happening by adding respective
checking. The use of BUILD_BUG_ON_ZERO(), however, entails a number of
other changes, as the expansion may not appear in the assembly produced.
Furthermore inputs to file-scope asm() are only supported in gcc15 (or
newer).
No difference in generated code (debug info, however, grows quite a bit).
An implication from the changes is that users of the alternatives patching
macros may not use unnamed asm() input operands anymore, as the "injected"
new operands would break numbering expectations.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Reviewed-by: Jason Andryuk <jason.andryuk@xxxxxxx>
|