Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2984644lqz; Wed, 3 Apr 2024 14:36:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYHmoeI280JuZ3k1+KbeUQWcsOj69sxRs4tQf06Qa4QYqqZwGM3wy0gOVVChOxBm1ATejgySB7oCfdTsVSmfn78WxZcGL4Nc0ATy9Puw== X-Google-Smtp-Source: AGHT+IF5GDszuQdoZUyYaSb0QZjF0n/Bn3UEAyHeGZJRm/bXeK3r7IirVHhnvrvoalzdGb/SP5hv X-Received: by 2002:a05:6808:2f0f:b0:3c3:7ba2:1579 with SMTP id gu15-20020a0568082f0f00b003c37ba21579mr1122509oib.24.1712180213925; Wed, 03 Apr 2024 14:36:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712180213; cv=pass; d=google.com; s=arc-20160816; b=doaSNNrQ1E1YhxlHl8BqkknxSlPIz9DJvGM8WlUiDL1nkBL9rcjY6F9z4HuoZDoG77 zcS/DK8AAjv2G7nRNSkQ7nQ937cyZGgTPptD7PtZPSW+4zSS6FEjWJ09iePvD7Ii/p+C SJTqpXCAsw3L7yKsdw+iFQLKoWbHCGemN2nx7d0eCd37EAvgREyoNS3t1R84U6DfFQF9 6VR25Q6DLlESis5b/WTFC6eV/0tODwZ9DzT9FhBgwRMJzlQY/IFdQ9477+vygFO35w8N ZDe6hfAzTF0ZaiNEGa2cohZJ6/6BOkIMlumGrF+0Y8ZgwoABSs5OW7yvXPB8hcXk/n5+ FiQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=dPltzAFf6VDIT1wIj8ilrUQtdD5DBvoWePx4BEmHj9U=; fh=vTkxU/jz/0oihdFel9HMco7T3rTWNSsWRswca+IT9Z8=; b=tAFtFJKYWuJpkZwBxVQFPrikk+pDE45fVczoodrFpNGN1VBNbvl5NdFAmDMuX26CKO hehvJXzKMnZH6GFHsI6xkOgOLQUO+tPmippOljDYCSIj762BfyDR7sv/uULiLygGtiFf w02QvFYarLCgSTLLI5RNOJRBAVvHu/gYt7sOoEQflVWfrqInVp4rbok81gU/v/0DpLlA QwcDqpZ9B5peAm9hN6qltiFMykWSVjfZaSDUjXXCi+s0SZa7hkcxgwQmY/arFlQtDo/u /xidYRDbHH1SFrcr+BmTVsmoa05563JGLCAw+S40Hhf/HMz/v66P1QvYsKE8vMK3Lghp oo8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=B+3qWW03; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-130640-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130640-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f2-20020ae9ea02000000b0078a5ed3ccc7si1105696qkg.518.2024.04.03.14.36.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 14:36:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130640-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=B+3qWW03; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-130640-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130640-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 A1B2F1C25D40 for ; Wed, 3 Apr 2024 21:36:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0EAAD15687C; Wed, 3 Apr 2024 21:36:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="B+3qWW03" Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D91D3154431 for ; Wed, 3 Apr 2024 21:36:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712180205; cv=none; b=U3KhwPwTz1jRgv7WRS/Z+397g9y+Q8QYm41wIe/28Ft42xba0Ydvp9dOI5u9GrDIFcz37dsj0Nv5ZgZeQ8meRrBPSjGGZg4bRbD7otr2Kxovo3bzGKuSvGBTQTLZY1rXxciw7zIBEmHyztdBbJV06GSMMqfj/gddMbWQHC2VKbk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712180205; c=relaxed/simple; bh=eW0vjqV7z+PAR1g4tFJb4YbSM8OnjwNtis/IuUJSfjg=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=J7xoGG0UFwT5o5tvWjo/HhxhL+NeWGEOlhV5IzIqoWia0SwLPttnyobbuIvbbvHvN/4jmutiIw3NwsDsNCc5WYdMk3tZUsBnC9+m+06n0aO85oJXRVN9LBJos71n6WBZLQm1lP1RDhmo50g99k9kofgaYSyADfFgMUE0Wjr+cOQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=B+3qWW03; arc=none smtp.client-ip=209.85.215.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-pg1-f202.google.com with SMTP id 41be03b00d2f7-5cdfd47de98so290409a12.1 for ; Wed, 03 Apr 2024 14:36:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712180203; x=1712785003; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=dPltzAFf6VDIT1wIj8ilrUQtdD5DBvoWePx4BEmHj9U=; b=B+3qWW03vdA1vHywBGdk2grTe0T0ZqqUK4hCDVu4wQoqiiAN6/s2mZvAIEnEyD2A1B fZVDSq7vqk6c8o9sA8AeSKqSwm1CZN0NNKC6V+8wYvlKW8O/jQgVTNroS8vn1NDh19jK LIr+kV3lUNN5g56xRQTY+iLvAJGBF+2NCBWjKUNinBEB7xhgjEXpNCK27Z2VvhvQ4Ppv gRTKPfDAxWfWPwfEJ8w2dYzzDL08gtN36TIfTMhlCBTJXRChGOHCG8U0u6DdrbbNM6oy h1aJvj2EwXipas71HNwbWcO46Zz4iWhL35xPTy1NJpP+QaPhL8Gf1YGkzY0Vt1D3uhbX TGOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712180203; x=1712785003; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dPltzAFf6VDIT1wIj8ilrUQtdD5DBvoWePx4BEmHj9U=; b=TySE/Z/eKHQ8kvXyu8Jby+g2zdCLe0oqS6f4Cbmhx7NkItb6Y2pHHLW8++hk0nkWPc +13JAd2hDYysb8j7E2tODadfu+2PUq3uP+w3VSWtO3FYd5u61mtAZIw3dBfH5UpqfNnD JO7GxgKOnhG3WrKa6dCmxzJP6yasDM6fJYIvw4vB/XtkzjozaEdLzyEiIAkqmgYSJmw9 IM3Ym++Y4zoNEqv75WeeAlrJRCmoT/awbE+WtFWMn4vIqBTXz5328+0o109CpDtActuC QSiGe3SD1lGz1QKKtzPjRi1yabQr2PYyzZhNR3CXfEJgRtceS0jbuFUv/AlJQQINYOja LxHQ== X-Forwarded-Encrypted: i=1; AJvYcCUiEJf85wwhMXbDrmPKmJOwNis9YdtKbFBWn4t2UQxSAIq8Aoi8hse5fgBNreJYeKBo+TNImJrALf1f8uIfwDA6aLaYJ5gexQPN+AcY X-Gm-Message-State: AOJu0Yw2xxcMNApaovYOE0lMFdQ5Fc8I4aSEUZJ+rwtldds9N8C5k37b PXEfZTbF6XPpQq50S0FabaYdgKQZvlI46VJwGCiFXp3Ubn4xH7RaIpxWGMt0Y7vhBDC9nVY0QDb cdA== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a65:434d:0:b0:5d8:bb9d:4fd0 with SMTP id k13-20020a65434d000000b005d8bb9d4fd0mr2015pgq.4.1712180203127; Wed, 03 Apr 2024 14:36:43 -0700 (PDT) Date: Wed, 3 Apr 2024 14:36:41 -0700 In-Reply-To: <70d7a20a-72dc-4ded-a35f-684de44eb6e6@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <8f64043a6c393c017347bf8954d92b84b58603ec.1708933498.git.isaku.yamahata@intel.com> <54ae3bbb-34dc-4b10-a14e-2af9e9240ef1@intel.com> <8d79db2af4e0629ad5dea6d8276fc5cda86a890a.camel@intel.com> <70d7a20a-72dc-4ded-a35f-684de44eb6e6@intel.com> Message-ID: Subject: Re: [PATCH v19 007/130] x86/virt/tdx: Export SEAMCALL functions From: Sean Christopherson To: Dave Hansen Cc: Kai Huang , Tina Zhang , Rick P Edgecombe , Hang Yuan , "x86@kernel.org" , Bo2 Chen , "sagis@google.com" , "linux-kernel@vger.kernel.org" , "isaku.yamahata@gmail.com" , Erdem Aktas , "kvm@vger.kernel.org" , "pbonzini@redhat.com" , Isaku Yamahata Content-Type: text/plain; charset="us-ascii" On Wed, Mar 20, 2024, Dave Hansen wrote: > On 3/20/24 05:09, Huang, Kai wrote: > > I can try to do if you guys believe this should be done, and should be done > > earlier than later, but I am not sure _ANY_ optimization around SEAMCALL will > > have meaningful performance improvement. > > I don't think Sean had performance concerns. > > I think he was having a justifiably violent reaction to how much more > complicated the generated code is to do a SEAMCALL versus a good ol' KVM > hypercall. Yep. The code essentially violates the principle of least surprise. I genuinely thought I was dumping the wrong function(s) when I first looked at the output.