Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp664947pxb; Wed, 6 Oct 2021 12:44:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwV5Ssx/o3hgorbUYLT4U6rSLDzs8KWMyOsOF0knj2Jy1Uu2Q2Z0FaZlcF1oHEg6gmWayeZ X-Received: by 2002:a17:902:ee11:b0:13e:bdb6:66fb with SMTP id z17-20020a170902ee1100b0013ebdb666fbmr12684160plb.81.1633549446171; Wed, 06 Oct 2021 12:44:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633549446; cv=none; d=google.com; s=arc-20160816; b=iBkQ1rhOovUBv1H8KN1jUY3RwxGRkoSiqVVCNHLk37lIKukQv4h0v9qSqaO5jTr/zY x61jzbTjH6Zm4njeJwsxAqOiU9L6PrRUgr2v/E1WKipqKzyyWFIJQSczNF3zg8pLZkAf LfZeTdxccR7WQnHuvh8i63IaeNb+noxu862qX0QARYA5PPPuq0UKMMDSV/TByabWPCIi tWceW4LSMij0u74ItSO4+wQMXNSbXXj1NudjWqcWDZbeIgbpp/IfqkvdPBL0z6ap+2Cc 6qhbpr8h98bMQQRXUS50K9qOBg2YplFmhyAsxzhx7DeRC6n8QumIVUIFpJxfyaMZIkky 3t3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qUSaS4Yoocg/qP9Y4HdHnN5lbNf1ZdpM4lJZqF0Z5dI=; b=a0VZ/7Y3OcgFmj1QVtHaSM1/A+ryWjH91Yk9A6c/c00IYertHa192kKnFRSWjinJ8R ZLem5kqv/lIrxFQKqab5NfrFk4NcTWXg05PQm9ypwUhGtX06Jk01zEFEYPS+l8Xa2toz APHwIhSUP2gk731FQ3W5+HjO5VDtl5+h201iJn3DJurCNWz7lXdDlswX+4dF1DIOnpex T4H4WaNFZef/5V4ERmihzyyLWtetRBKakr5Y28FEb8oWa9PIlQ9QHQ4PNSNTdqUEffjS ZDYEV24bfF1a4Xwp/AHEwItPPrsdLOXcHgBYn/wp8UvzJ6XG8yzVQGOAX1N2jWUFn3ue 1EqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=SFzhjwro; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si6833847pjl.188.2021.10.06.12.43.50; Wed, 06 Oct 2021 12:44:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=SFzhjwro; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239574AbhJFTnq (ORCPT + 99 others); Wed, 6 Oct 2021 15:43:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239622AbhJFTni (ORCPT ); Wed, 6 Oct 2021 15:43:38 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6480AC061746 for ; Wed, 6 Oct 2021 12:40:40 -0700 (PDT) Received: from zn.tnic (p200300ec2f0d36003dde9a53b36f1ff2.dip0.t-ipconnect.de [IPv6:2003:ec:2f0d:3600:3dde:9a53:b36f:1ff2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id E0DBC1EC04D6; Wed, 6 Oct 2021 21:40:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1633549239; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=qUSaS4Yoocg/qP9Y4HdHnN5lbNf1ZdpM4lJZqF0Z5dI=; b=SFzhjwroCwBEmFvYdWj427y9KzWp2C2yrkJntd+8cOYOH2EMzWi32ZyqtbfIekaTd+1ppu JLC4ahzm3JlgaiHzIycqxJcDvTs7kBc21pNTZtesnVNv7Ke0NcfH6oPhSRyAdzPlVVRPAO ZbazWui5BBUJO8ry59x3sdnUhScocpE= Date: Wed, 6 Oct 2021 21:40:39 +0200 From: Borislav Petkov To: Josh Poimboeuf Cc: Kuppuswamy Sathyanarayanan , Thomas Gleixner , Ingo Molnar , x86@kernel.org, Paolo Bonzini , David Hildenbrand , Andrea Arcangeli , Juergen Gross , Deep Shah , VMware Inc , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Peter H Anvin , Dave Hansen , Tony Luck , Dan Williams , Andi Kleen , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 08/11] x86/tdx: Wire up KVM hypercalls Message-ID: References: <20211005025205.1784480-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20211005025205.1784480-9-sathyanarayanan.kuppuswamy@linux.intel.com> <20211006193440.jgmagja3vynqnnis@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20211006193440.jgmagja3vynqnnis@treble> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 06, 2021 at 12:34:40PM -0700, Josh Poimboeuf wrote: > Hm, I'm still thinking that figuring out a way to convert all the > cc_platform_has() stuff to normal cpu features -- or at least inline > wrappers around them -- would be really nice here. Then this could just > be a nice fast static_cpu_has(). cpu_feature_enabled(X86_FEATURE_TDX_GUEST) provided those don't happen too early... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette