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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DCED1C433F5 for ; Tue, 8 Mar 2022 20:18:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350196AbiCHUTM (ORCPT ); Tue, 8 Mar 2022 15:19:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237572AbiCHUTL (ORCPT ); Tue, 8 Mar 2022 15:19:11 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2760B2B1A7 for ; Tue, 8 Mar 2022 12:18:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646770694; x=1678306694; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=Fr9KtYwaIEu5lScz/3OrBD/b+7KWL6yNTirM5K2SHMM=; b=TnGkBDFGkf3YDPbdarZuhieRKjF9MZpye91Ail0dm2euM+7+gjFgSjWK NICGVdexr/Ji4p2+ytDlSAj2orxToIKNbHf0aqSiu7/KniPTcjUs8Z9cG 9WIDh03aCZnYiP9H5h5iOnYhadnMxTQ/BENm6nCj13dXW6wt23UjeJxR5 L6k00lcoYVIXCGtoATQ82obgwotfssk5EaX0ImoD6ntlzUJuqC6EwepXL CG5Jb/Lz4jkXHRXMG34TGjPbEZvKkPsDhJO2aKqU7UPB8zG/NzkdW5Tdl ZAUf96QghU/ROQuxfOA/ioL4GcdG2IbduSTInb3l/2H8q5JDlUXg0HGa+ Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10280"; a="254993116" X-IronPort-AV: E=Sophos;i="5.90,165,1643702400"; d="scan'208";a="254993116" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2022 12:18:13 -0800 X-IronPort-AV: E=Sophos;i="5.90,165,1643702400"; d="scan'208";a="547391684" Received: from ntebyanx-mobl7.amr.corp.intel.com (HELO [10.212.224.65]) ([10.212.224.65]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2022 12:18:12 -0800 Message-ID: <8ecd5a73-7c0b-e534-3c46-7f405794a1d1@intel.com> Date: Tue, 8 Mar 2022 12:18:08 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCHv5 06/30] x86/traps: Refactor exc_general_protection() Content-Language: en-US To: "Kirill A. Shutemov" , tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, luto@kernel.org, peterz@infradead.org Cc: sathyanarayanan.kuppuswamy@linux.intel.com, aarcange@redhat.com, ak@linux.intel.com, dan.j.williams@intel.com, david@redhat.com, hpa@zytor.com, jgross@suse.com, jmattson@google.com, joro@8bytes.org, jpoimboe@redhat.com, knsathya@kernel.org, pbonzini@redhat.com, sdeep@vmware.com, seanjc@google.com, tony.luck@intel.com, vkuznets@redhat.com, wanpengli@tencent.com, thomas.lendacky@amd.com, brijesh.singh@amd.com, x86@kernel.org, linux-kernel@vger.kernel.org References: <20220302142806.51844-1-kirill.shutemov@linux.intel.com> <20220302142806.51844-7-kirill.shutemov@linux.intel.com> From: Dave Hansen In-Reply-To: <20220302142806.51844-7-kirill.shutemov@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/2/22 06:27, Kirill A. Shutemov wrote: > TDX brings a new exception -- Virtualization Exception (#VE). Handling > of #VE structurally very similar to handling #GP. > > Extract two helpers from exc_general_protection() that can be reused for > handling #VE. > > No functional changes. > > Signed-off-by: Kirill A. Shutemov Reviewed-by: Dave Hansen