Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp159275lqb; Tue, 16 Apr 2024 11:34:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVI/SEdlyVEF+DTPJStI1bZrZrm2LLfFEP08CXhqFGSd5QPvp0dYxeCWb/+dunRBp9bhaQZzqfKLPik47Fu2924+pitxJHl3arvDJiaw== X-Google-Smtp-Source: AGHT+IG6fa0V2qJnB0Xu12OUzsLTf80xB95hxhta5EiVcWF7sZUJBQEWUfZLrdRUhO2fNZNUBJXL X-Received: by 2002:a05:6e02:1b09:b0:36b:26df:ccdb with SMTP id i9-20020a056e021b0900b0036b26dfccdbmr4856737ilv.28.1713292447887; Tue, 16 Apr 2024 11:34:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713292447; cv=pass; d=google.com; s=arc-20160816; b=XcWOjGf216MjZdODfpCgvkm603+qKnPNPoMEWfPtJOCRtHHElxVNVlXUUWaeWIP6Or T2ZQ5J4sPNB/KpmIxl556dUPrGORcguOpO35Y7FTZEHnVhp31addg6IKO0Mphd+GiDyC qKO9K0SNQ9GkZmGLxUE+iRb2W4LVCUIuitr99SGemD+SW+wl8lfXSdHRpkF/q6WbtNyg AF48IyIBd73rQrGpYtGNJOcED6VPuB9Ss1wdTNZtLaEUX0zNJuJlcw3fwTS5LqWSQIkU gqNndVp70bkyI9KT5ZHQwbNA76AXAkcePliiA2eARCkKn02aaMIKOXOHQkLhUNe/cEZv hQKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature :dkim-filter; bh=X/dUYE6ul4KnmAoEDI/NpMbtivgGj7MgZeeqmosFbKc=; fh=niEl4dgaTDB6oaPAtiDpfU081ZmBsjhlK+RbruWoyd4=; b=b7z2mVjCN+Bd80f3mUJvNlGxq/9200q72z9GOipMb9nIhrf/3bUTR+R5ADm3ZoziRR PyIqkDyUHSVUjJNoWpmNyeiUSsa9dMpL3TlZx5hkJsnmDcnSl5IflwoEDGJ/8VjU4Kgr 3UNMxUSunI8A6iQpz6daOj+N5pexjqrqrzi2CIE/aRoN/bEIbuRLNhX3ZVyEYNrc4TtM n12EeDrQ3s4g5CDvZK9zksNP/ccIJFDBTk2jyzWtvboWs0vaGx7dRXK3NqulSuhgIC8M fV8iuG9Oon5rYBYqHymaceOwBDbOvfCkrtHtDINWzU0a+zrLBBi4qei6FycdeSUja6EG howA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@zytor.com header.s=2024041401 header.b=ZCvNwOHt; arc=pass (i=1 spf=pass spfdomain=zytor.com dkim=pass dkdomain=zytor.com dmarc=pass fromdomain=zytor.com); spf=pass (google.com: domain of linux-kernel+bounces-147392-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147392-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i71-20020a639d4a000000b005f059e58ea8si10425957pgd.466.2024.04.16.11.34.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 11:34:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147392-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2024041401 header.b=ZCvNwOHt; arc=pass (i=1 spf=pass spfdomain=zytor.com dkim=pass dkdomain=zytor.com dmarc=pass fromdomain=zytor.com); spf=pass (google.com: domain of linux-kernel+bounces-147392-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147392-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 73A6628271A for ; Tue, 16 Apr 2024 18:34:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 95963134407; Tue, 16 Apr 2024 18:34:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="ZCvNwOHt" Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 71D9BE555 for ; Tue, 16 Apr 2024 18:34:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.136 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713292441; cv=none; b=MsFYzz2mjg0ZtVzKA5fj6O3MTzNC/2ZQKPKD0LzJamKZ9tRMy6v7DQGd5r7WgtuB6S277pbTowSxQJfG4xTRVQnQIkf1EQM6HLbtJco0sUIYwPY/REzcteqB6JOxdtx4dXYt8mZ/9TfMq5e+IZbo3DPD8/lhJr0sbt3wJhjwOn0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713292441; c=relaxed/simple; bh=z+Qy7MqedSftcJcNd6pnd4i7pyqOLOVd04WWCsMoxBc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=KCS2MI4ACQLFddEubtzcnxRtr9AfDW/rvAiAis9YVw5xIdKN7P6ietUpMZUjPx/ev6eYTwqdQ6eBNIjYMVdu/tGp3b8YnKJXeC1cJs1x0a/AwehyHY7+divPj4ptM7yyjTFf+q6uqbckB8BsJN2npzY7+UA4R31Ms/vXWR8yFRY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com; spf=pass smtp.mailfrom=zytor.com; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b=ZCvNwOHt; arc=none smtp.client-ip=198.137.202.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Received: from [IPV6:2601:646:8002:4640:7285:c2ff:fefb:fd4] ([IPv6:2601:646:8002:4640:7285:c2ff:fefb:fd4]) (authenticated bits=0) by mail.zytor.com (8.17.2/8.17.1) with ESMTPSA id 43GIXZt73350356 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Tue, 16 Apr 2024 11:33:36 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 43GIXZt73350356 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2024041401; t=1713292416; bh=X/dUYE6ul4KnmAoEDI/NpMbtivgGj7MgZeeqmosFbKc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ZCvNwOHt+PCJRRvu8w0SBdyNyoK0KPdrFZmsB0YJBT3VrbEhyx1XywPjzyp4J0a9t EauoPllGxlZFosPlFH3/qjXg8knxDBxvkoulEQ186zRPDAyCqykvSXJXiosQ7U8yMr q3B3jLPICWHt4IH7ba2oHaVK0XLTxwe8FqGwBJRdrqzpJgDAZ6ENssgTeDUv6eEEYt kcx9VDnRfMeZaYUE6OrSCm96qpHjuoWx/XHxQRPmmzDpqk5s+VYtFiAMMGGU0HD1U7 0Ac47WAavH/oTuknOO5YiXQT3ikZKJh3sjUXJ/AY5cS+FSkBhQvG9TvOLw3w3UX+zL hkQWKsr+16QAA== Message-ID: <5a8557e3-4289-4d6b-90d6-5bb23a636f66@zytor.com> Date: Tue, 16 Apr 2024 11:33:30 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/1] x86/fred: Fix INT80 emulation for FRED Content-Language: en-US To: Borislav Petkov Cc: "Xin Li (Intel)" , linux-kernel@vger.kernel.org, luto@kernel.org, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org References: <20240416175804.3328999-1-xin@zytor.com> <20240416182803.GIZh7DMyPNHphpa9JA@fat_crate.local> From: "H. Peter Anvin" In-Reply-To: <20240416182803.GIZh7DMyPNHphpa9JA@fat_crate.local> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/16/24 11:28, Borislav Petkov wrote: > On Tue, Apr 16, 2024 at 11:23:24AM -0700, H. Peter Anvin wrote: >> (I think there is actually less than half the code left. This could be >> further cleaned up by inlining the common code, > > Yeah, was just thinking about that too. I'd say, though, let's let the > FRED code settle, we start using it and then we can always unify common > stuff later if it turns out that it won't diverge anymore. Good plan. >> but if I were still maintainer I would not want that for x86/urgent. >> This patch has the very nice property for x86/urgent purposes that it >> doesn't touch non-FRED code at all.) > > Right. :) > I'd let Xin work in all those comments and then I'll pick it up. Thanks! -hpa