Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3169991rwb; Mon, 7 Aug 2023 09:11:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFzJZg1kXPjZ8Du7dFMQEq32YxhuIROIuZ7vvzVKyDiGKKOUyu5Y497uR5ynLwCAh45UVZn X-Received: by 2002:a17:902:e809:b0:1b1:7362:9a18 with SMTP id u9-20020a170902e80900b001b173629a18mr9838017plg.27.1691424716671; Mon, 07 Aug 2023 09:11:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691424716; cv=none; d=google.com; s=arc-20160816; b=fk9YEjQV9AXItp/kH3EMj4oZBBxME07G/Vgch1WHc3lNtxewe6LRQKvJeYoD1bb7ml 8hQ3/n/sZqD4zYZzMP1G7/tUXATibz8MaZJTLD2YcoNrkPH/Cd58e4Nv6Mm6iHqJQ7Kk 3Pk95Xug/kS9wBVwt1T3P40idtaSEm6aXkrAGYtrtQIPigBdMhkkmtr2PM/LRK1WlL/M SMNaG48EfAYf10LGx3vSUFHtNZ4NolbzmK/bJs3z/rUUEp5IBTfUQ6FRN8HODJglKYvb VhRLFcSW3UUKpAOc88YvZt64FSFsC7V/EpLVELPZfDSzut2ocZdZAyu5APhR7OkDE1QQ EO3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=bMdPzG2XrCBcIhVHkWNK3nWK0wLFcxVC5hw4AAEh6/o=; fh=DWOTAOCPHPC1Lhtiqw7SIlt55pu0nx76zb4OjIyhLF0=; b=EIaSltH+yL2QHT/5wphjrGYhcLjBkAJXPBCRbk9u1zOeC0y75rUYpDTKAJpSp7L3TG PtC6ssbvaNeEJue2/8z4cCMkkrtFS7oV1Jv4zgGMGT0WnHd+SvJUvOhVGXmX5xwTEq6C jC3rwhZT8ccc0s10URfaIXlStPxXMUg66QFkjcYBr/ygtYvAqr74T+KwQlrGT9DA3U1C I4TScXsc6cbigyBHYDjFL9g72rqpfKEOR0umL8E8TzJxwKhhIJP0jGmAxZjS6HN9Rrg7 LnoZOYti405Gpqh7+6f1CIYZzi/ovfepxqQlqvvijez7XSrKpBz4wvpW8Rm5wbInLiAY XH9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=r+pL34KO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u4-20020a170902e80400b001bb8704e6f3si6179232plg.278.2023.08.07.09.11.43; Mon, 07 Aug 2023 09:11:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=r+pL34KO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232579AbjHGOaN (ORCPT + 99 others); Mon, 7 Aug 2023 10:30:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232879AbjHGOaI (ORCPT ); Mon, 7 Aug 2023 10:30:08 -0400 Received: from mail-pl1-x649.google.com (mail-pl1-x649.google.com [IPv6:2607:f8b0:4864:20::649]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43E5C10CF for ; Mon, 7 Aug 2023 07:30:05 -0700 (PDT) Received: by mail-pl1-x649.google.com with SMTP id d9443c01a7336-1bbbc4ae328so35603385ad.1 for ; Mon, 07 Aug 2023 07:30:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1691418605; x=1692023405; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=bMdPzG2XrCBcIhVHkWNK3nWK0wLFcxVC5hw4AAEh6/o=; b=r+pL34KOKCyCvT1G6ujMdYSsC+crCp5k626T+yQFecWvtFUQ1hf0pqfn3YDsJ/9MCe XgoOpSipaVd1TJGBElPgSMYRBZwWMyleJsuAHgioDjuxBzdsQRfw+pWAw14w/98Ebwne 8rFuc+wzPBMLyeiPXpvIKUNXsn/1a+QC8grStbv8jVZZNhHnvvvDrNZBWRcOYFiK3nxt GrDnM8OsLDSVxp3PN9+4FFiuPV+zJf0jR6XmgQzFSAl/M0Nn1aKHZDBHBy32tB+394A3 VA0ooqPDPOzMGDu1c3/MCB4ECYeeYsf/ZARv6vtUTb0v12spGSddiSTHJ+svdK6g/I7h uHzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691418605; x=1692023405; 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=bMdPzG2XrCBcIhVHkWNK3nWK0wLFcxVC5hw4AAEh6/o=; b=Fg8RdTP3enz3M+xEbyQnvZg1efNo/Pyqth9RtnOriCh3CX7VyDVMVIIGIxoRy//4mW dqMMPif4O6udEMnjnA+c3x/mZ6Sc5EUmCiqjs7b/Tp07OVGFc2rQLmqsq0UI/9VuEpJl I/4BiEEpBiIhrad0Y4q8O6q3TKPhAS9BVEhDpsOr17Bec/TAhB/rmZjC5J05kOnDoPR5 Fpsc5PZiG3FPtmH8Pr8CWVfCZESZAGbC9eXu7C1YJb011nnXPIHMKu49KxeVgTJyADai 9VX6HYYhWnMSY3uNOz+BkpjhNNdJ8eoOG9Hs7GRTL31FHiKqegE2bOJW6t8U6GBgFY7x pigw== X-Gm-Message-State: AOJu0YzPTLndkIBOYlcWcMqZBfXwsVZxW9qkq+onoOvqPDAyBElIUC3l nlmokHdFaJ5LJEwMqXxTo9XGm28JTmk= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:903:244f:b0:1b8:c666:207a with SMTP id l15-20020a170903244f00b001b8c666207amr38755pls.9.1691418604729; Mon, 07 Aug 2023 07:30:04 -0700 (PDT) Date: Mon, 7 Aug 2023 07:30:03 -0700 In-Reply-To: <030a485fb852c4604371adc3aeb5511ac6501b88.camel@intel.com> Mime-Version: 1.0 References: <20230806113623.f7am5levfsllpko7@box.shutemov.name> <030a485fb852c4604371adc3aeb5511ac6501b88.camel@intel.com> Message-ID: Subject: Re: [PATCH v3 10/12] x86/virt/tdx: Wire up basic SEAMCALL functions From: Sean Christopherson To: Kai Huang Cc: "kirill.shutemov@linux.intel.com" , Dave Hansen , "x86@kernel.org" , "bp@alien8.de" , "peterz@infradead.org" , "hpa@zytor.com" , "mingo@redhat.com" , "tglx@linutronix.de" , "linux-kernel@vger.kernel.org" , "pbonzini@redhat.com" , Isaku Yamahata , "sathyanarayanan.kuppuswamy@linux.intel.com" , "n.borisov.lkml@gmail.com" Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 07, 2023, Kai Huang wrote: > > > > > > > +config INTEL_TDX_HOST > > > + bool "Intel Trust Domain Extensions (TDX) host support" > > > + depends on CPU_SUP_INTEL > > > + depends on X86_64 > > > + depends on KVM_INTEL > > > > Hm. I expected KVM_INTEL to depend on CPU_SUP_INTEL, but apparently no. > > Any reasons why? > > Hmm.. Not sure :-) Centuar and Zhaoxin CPUs also support VMX. commit 8f63aaf5c493c6502a058585cdfa3c71cdf8c44a Author: Sean Christopherson Date: Fri Dec 20 20:45:13 2019 -0800 KVM: VMX: Allow KVM_INTEL when building for Centaur and/or Zhaoxin CPUs Change the dependency for KVM_INTEL, i.e. KVM w/ VMX, from Intel CPUs to any CPU that supports the IA32_FEAT_CTL MSR and thus VMX functionality. This effectively allows building KVM_INTEL for Centaur and Zhaoxin CPUs.