Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2202641lqt; Mon, 22 Apr 2024 04:46:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUsqNEcmu00rgXUrWup45qgYNkdO7h6aYR1bMIWYJa9Ix/AX9RCRrtNPr7CDh7KO2421ZeVhJQlEBG2NzMCBsqVjYIU9Qm1yfmTUOGxig== X-Google-Smtp-Source: AGHT+IHnTnOpKtuWHMFOwMwj0U2xnex64VGoykElnNtFOiB/aa7xRB1ek2AmyRDxzg2M7BMn0Sj6 X-Received: by 2002:a05:6870:cb91:b0:22a:9ea4:c18 with SMTP id ov17-20020a056870cb9100b0022a9ea40c18mr13925243oab.15.1713786410581; Mon, 22 Apr 2024 04:46:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713786410; cv=pass; d=google.com; s=arc-20160816; b=x8gl7oj54aLg0k8FX6zTVg7i+mOWAG5D66OCzEDaOgWekWRPwUImqebUh2MuQnvUIB t1UOLD1D2b+2o3+TKEEAVLE4evUiWb8TQn5RvPhBkTaY2iM2HcBu6I2x1JHRn9JYTCzh IHOd6fkQ+6N+mo9xeWBGpzT+Q0vMjgHPFCPKRS8V8Shbaeq/2bAKkAWxjKuznpMjRHIz h0xzhDqmax9/z/zW614FPFDcocloqVZVzxQi7iD4LnvE3wa67eFveqNfoxlA6vEnFJBy IkkFcvh046JW1IzJBgmFq36yvnolM2cnajik8NUZjSKGaFlpFWw9FF7UP4N/WjHFEIdT qyNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CUuYXdAiaPYVmeG2vA4PjEL40z9PNarTtBDltMV7knk=; fh=+4cKMqAwSG6Dp0q1qsOS/uC6Yi5umUJRaJQN7uCvt30=; b=LXODVFoLp+GReMuYfo5C1XcjgL0WQUZPLVngOUhX4/T5+gDwVXsHB+ZLCdsT3G/bFG gsgkrDynGvam+FvzirHtHr5L2FSCy7oqtXlAz1p4r1xltcB48O0FD+CrakAjxAWtybzW OUJg50WjjGsY9IuFZROVQ1aS3f75cbgp4SzQvajZzf70Yerg8wHBV6Rp5JyvV5wiSSQn qe8K2S4yoJ9oqETXHqnSq96f2lGvbZrYogmuQpYi+k+UdbEozV8WZZuxRiyG6k/WGqT7 2tcrPoQB32CtuECZWrjidEysp0OnvOBkMBbRkkInczZGITeLupOzEjRSDeIdaj5MIVxC +bGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=W8QOSHnm; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-153306-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153306-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g20-20020ac85d54000000b00436969aaa1esi10599244qtx.171.2024.04.22.04.46.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 04:46:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153306-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=W8QOSHnm; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-153306-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153306-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4E9E91C208C4 for ; Mon, 22 Apr 2024 11:46:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 21F83146A85; Mon, 22 Apr 2024 11:46:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="W8QOSHnm" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (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 B2D1114430B; Mon, 22 Apr 2024 11:46:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713786396; cv=none; b=H8Vlip2dJOc7mKdTlKvARgr4nVdDFTRCAwjSB3mefTYH15QWvkvDF5z4v9IOVD5WfEH0rhfVo+XV9Vm2rkfBAGGXbEtS8Igdxk6B5mrO35uGWtxwTWlKmomGgfn96CtIJBBloSwnGLaItsswE9O35Oz1/nPUK5TI8LehBIw3DcE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713786396; c=relaxed/simple; bh=1hlSkEjrrBoum+9LYxCMsFDrIJupO+YIajpf9DAWRrM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DriLc1CtqrnaafC/JYbMGOoRc/J1rcvxIPHbcH6Okia+EAN29jPlvl9LdIjwj98162FWu6edy3/QneHSoi1JYaDckEFnkB5PMoTkKaYDo0D4yi5lqcX31kRbgw6yRAsd1sVSq13TfkzF38OfLU9yP+vT9ldJQmf8vIpc5w6Hadk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=W8QOSHnm; arc=none smtp.client-ip=192.198.163.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713786395; x=1745322395; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=1hlSkEjrrBoum+9LYxCMsFDrIJupO+YIajpf9DAWRrM=; b=W8QOSHnm7CZnw3V/Atbr30kwui2LGeAqWiiJqCSIwxM4Gkh4XSYRby36 aZzoYhk3JbZNCrY7ns2WsFxkxbBo9HgHLH0LV0+wqYDQgq9lV0uautsLm nYdA3D8BaxW3hi0F6rFDE96iz3zh4L2OvpF0hJHVAqxjYDHYBEUzAZgHv 1Yffec9GKuUN+uTOB1G9h0AfJ5/xPJuCxF88SRTJmvxEVvx8AK7lc7uhU WO9h3MG9VInKNtr9iFeKpn34URQNe643rP4kbfOmRVl75LWbcL0hDAG9z Sju8mHPjDerbPlIq2D31avLD0M2dbfmsYo8WC/LJEu6iRg/qAyeIHLG+b w==; X-CSE-ConnectionGUID: ompUvJHySYWofBQ+chcLng== X-CSE-MsgGUID: tjT1tbUpSL+iXm0rU0eNZg== X-IronPort-AV: E=McAfee;i="6600,9927,11051"; a="12257918" X-IronPort-AV: E=Sophos;i="6.07,220,1708416000"; d="scan'208";a="12257918" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2024 04:46:34 -0700 X-CSE-ConnectionGUID: W7489JvvSNCWB5ZeIp15BQ== X-CSE-MsgGUID: He9L6VxLRQ6eGUJ9oEzXBQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,220,1708416000"; d="scan'208";a="24062817" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa007.fm.intel.com with ESMTP; 22 Apr 2024 04:46:30 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id 80182FD; Mon, 22 Apr 2024 14:46:29 +0300 (EEST) Date: Mon, 22 Apr 2024 14:46:29 +0300 From: "kirill.shutemov@linux.intel.com" To: "Edgecombe, Rick P" Cc: "seanjc@google.com" , "Zhang, Tina" , "Hansen, Dave" , "Yuan, Hang" , "Huang, Kai" , "x86@kernel.org" , "Chen, Bo2" , "sagis@google.com" , "linux-kernel@vger.kernel.org" , "isaku.yamahata@gmail.com" , "Aktas, Erdem" , "kvm@vger.kernel.org" , "pbonzini@redhat.com" , "Yamahata, Isaku" Subject: Re: [PATCH v19 007/130] x86/virt/tdx: Export SEAMCALL functions Message-ID: References: <54ae3bbb-34dc-4b10-a14e-2af9e9240ef1@intel.com> <39e9c5606b525f1b2e915be08cc95ac3aecc658b.camel@intel.com> <7otbchwoxaaqxoxjfqmifma27dmxxo4wlczyee5pv2ussguwyw@uqr2jbmawg6b> <3290ad9f91cf94c269752ccfd8fe2f2bfe6313d1.camel@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3290ad9f91cf94c269752ccfd8fe2f2bfe6313d1.camel@intel.com> On Fri, Apr 19, 2024 at 08:04:26PM +0000, Edgecombe, Rick P wrote: > On Fri, 2024-04-19 at 17:46 +0300, kirill.shutemov@linux.intel.com wrote: > > > > > Side topic #3, the ud2 to induce panic should be out-of-line. > > > > Yeah. I switched to the inline one while debugging one section mismatch > > issue and forgot to switch back. > > Sorry, why do we need to panic? It panics in cases that should never occur if the TDX module is functioning properly. For example, TDVMCALL itself should never fail, although the leaf function could. -- Kiryl Shutsemau / Kirill A. Shutemov