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 X-Spam-Level: X-Spam-Status: No, score=-13.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED589C6377D for ; Thu, 22 Jul 2021 17:52:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CC99061380 for ; Thu, 22 Jul 2021 17:52:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229909AbhGVRL7 (ORCPT ); Thu, 22 Jul 2021 13:11:59 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:55339 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbhGVRL6 (ORCPT ); Thu, 22 Jul 2021 13:11:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626976353; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dEOxhE/d8Gi5VBU+iwIGqOwgtV0hIHkhjoYTS9cVDoI=; b=DG+trCLjiPJfWCXwFVMuWLjvV7IVpWhLf4cHP6ziokQj5+wc6GBiAjv1wb/Pu48xe9K17x 60j8ZsuVWWASbhwS+AJlm3DICaxCVmuBaYDZb+BMSBZenq3ZO0HnyxB+bFPt0r+rigM12B arw19CZGbnWaGEgMEIubc2dD5WUV0qo= Received: from mail-oi1-f198.google.com (mail-oi1-f198.google.com [209.85.167.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-402-bqXTtxiFNnioJT3h0Z5iDQ-1; Thu, 22 Jul 2021 13:52:31 -0400 X-MC-Unique: bqXTtxiFNnioJT3h0Z5iDQ-1 Received: by mail-oi1-f198.google.com with SMTP id w134-20020aca498c0000b029025a12f99699so4477699oia.16 for ; Thu, 22 Jul 2021 10:52:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dEOxhE/d8Gi5VBU+iwIGqOwgtV0hIHkhjoYTS9cVDoI=; b=tT1nh4HsD0ywpSNQHuCHoiHnzH3ZnA37TzqGkKOwj4mk1LSh1SRx7uzgBsGuLn3GJH AFo3nsgC70jyM6BOTyF/rw6Tv7+CfdN8n+z7DF2XQse9/+tD7ctYqEzbMHqLj/+z5yst P0CdvZORnZzJCZpDVQmJA/wz6j6RvfJKQZrFvJE7M3rO3vUYTmtBcyB49e0nAUqXnyON nNLOiNFhbztRohqaXiK6yyERitSfGdT55axW/MTId8v4RcO77OCuLp7qI6yKqUclCOYE 4oAZo9ca37N8jQWqmRCLMjg+QYgfTgKN/R+EIKf796J/iHJtppPBdWP6QaKJatGSfG1t NLLw== X-Gm-Message-State: AOAM533oGyufMysSu2gWdrOfCZIglFU7+vsISk+PVtp/XL2KueECd5hr lJZmM/UtUWEvZdQp7/Y0NJIi8jGsx7xJlCYFVrSUQlp8lDTq8jDd0Xs0OVPGUR+8LyypfKc7E9U MS8kzyWeGBpCx2QX0jY4t0OdWcsZFBTTY8OKUGnJYyhgtM7zHPmMAab9WhlR3iQ== X-Received: by 2002:a05:6830:242f:: with SMTP id k15mr693656ots.72.1626976350665; Thu, 22 Jul 2021 10:52:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVngI+s525L2IadOp9NPRC/8sx8fKedYJuuVoInHFTAafcxtIaaHGbG3lEZWesX+f+pApHYQ== X-Received: by 2002:a05:6830:242f:: with SMTP id k15mr693632ots.72.1626976350435; Thu, 22 Jul 2021 10:52:30 -0700 (PDT) Received: from [192.168.0.173] (ip68-102-25-176.ks.ok.cox.net. [68.102.25.176]) by smtp.gmail.com with ESMTPSA id u19sm28220ote.76.2021.07.22.10.52.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Jul 2021 10:52:29 -0700 (PDT) From: Connor Kuehl Subject: Re: [RFC PATCH v2 01/44] target/i386: Expose x86_cpu_get_supported_feature_word() for TDX To: isaku.yamahata@gmail.com, qemu-devel@nongnu.org, pbonzini@redhat.com, alistair@alistair23.me, ehabkost@redhat.com, marcel.apfelbaum@gmail.com, mst@redhat.com, cohuck@redhat.com, mtosatti@redhat.com, xiaoyao.li@intel.com, seanjc@google.com, erdemaktas@google.com Cc: isaku.yamahata@intel.com, Sean Christopherson , kvm@vger.kernel.org References: Message-ID: Date: Thu, 22 Jul 2021 12:52:28 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 7/7/21 7:54 PM, isaku.yamahata@gmail.com wrote: > From: Sean Christopherson > > Expose x86_cpu_get_supported_feature_word() outside of cpu.c so that it > can be used by TDX to setup the VM-wide CPUID configuration. > > Signed-off-by: Sean Christopherson > Signed-off-by: Isaku Yamahata Reviewed-by: Connor Kuehl 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 X-Spam-Level: X-Spam-Status: No, score=-10.3 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC340C63797 for ; Thu, 22 Jul 2021 17:55:53 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A4F376109D for ; Thu, 22 Jul 2021 17:55:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A4F376109D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:36892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6cvI-0004Sq-RH for qemu-devel@archiver.kernel.org; Thu, 22 Jul 2021 13:55:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6csA-0004Q8-PA for qemu-devel@nongnu.org; Thu, 22 Jul 2021 13:52:38 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:48070) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6cs7-00021v-Dw for qemu-devel@nongnu.org; Thu, 22 Jul 2021 13:52:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626976354; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dEOxhE/d8Gi5VBU+iwIGqOwgtV0hIHkhjoYTS9cVDoI=; b=QKrbZGEOwihyNMekTD3SzJVF+01mtAB6q7ufNrkpGyTv+LAYxB94IcxALjRMzuHSyi7Wvk 3k5iB2xmaQOF632aa9bzJJ6KIrmtm17f+GVvGP+IUHBuKNJephf+DlNUzmyDtx3xOQZzRE B5H/3pLpyXeP4zMQHiNHEZP9qcLFRNo= Received: from mail-ot1-f69.google.com (mail-ot1-f69.google.com [209.85.210.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-31-iPgJx4viNUS40wjNNAgjeA-1; Thu, 22 Jul 2021 13:52:33 -0400 X-MC-Unique: iPgJx4viNUS40wjNNAgjeA-1 Received: by mail-ot1-f69.google.com with SMTP id 59-20020a9d0dc10000b02902a57e382ca1so4149529ots.7 for ; Thu, 22 Jul 2021 10:52:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dEOxhE/d8Gi5VBU+iwIGqOwgtV0hIHkhjoYTS9cVDoI=; b=TrSYjnXQdkyY0mA/pXz34sgCf0S6s5iGjDDiDIaNQFmLtEbxkcjqihbCkxzCl0QFLp 5ewV7aEdVf2klo2JVHwuo+oLDh1U61vV1uYTVFtcfH14lr1QrPjJj27PcdsEK4kzRKLT 0LCZRNdFG5aQjNf6xv3Xh2zxSwSnMjjK5iQSXEwkp4CUncuFli6QMSjjbmGZ3FP6mKMQ huIB0wqOkixUVVmICNFNRFoHbdINox3CdS5S382CHNfABlz+n8FUOuE7SzIY6EMmPYaJ hhOIPhlgrNvsYCa5Iedli/UqxY1gShyF2r8YJ0ntFNOVV1OXDyaNKxOvpxHCxVMSW0xk nMQg== X-Gm-Message-State: AOAM5330PQtFcFLSjk17xgwRwqsL6+Fy3B/QM4sgHHgKrTNvz0JfKo5p UWiUiIn5EPFLH0UkA3IoiKIN6HQN4gMT3DrjaFpdpcuvSOnI9jHNW26H4u9wMl7NYdkQbf7ZikY QKC6nL0/UUl9GePs= X-Received: by 2002:a05:6830:242f:: with SMTP id k15mr693644ots.72.1626976350602; Thu, 22 Jul 2021 10:52:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVngI+s525L2IadOp9NPRC/8sx8fKedYJuuVoInHFTAafcxtIaaHGbG3lEZWesX+f+pApHYQ== X-Received: by 2002:a05:6830:242f:: with SMTP id k15mr693632ots.72.1626976350435; Thu, 22 Jul 2021 10:52:30 -0700 (PDT) Received: from [192.168.0.173] (ip68-102-25-176.ks.ok.cox.net. [68.102.25.176]) by smtp.gmail.com with ESMTPSA id u19sm28220ote.76.2021.07.22.10.52.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Jul 2021 10:52:29 -0700 (PDT) From: Connor Kuehl Subject: Re: [RFC PATCH v2 01/44] target/i386: Expose x86_cpu_get_supported_feature_word() for TDX To: isaku.yamahata@gmail.com, qemu-devel@nongnu.org, pbonzini@redhat.com, alistair@alistair23.me, ehabkost@redhat.com, marcel.apfelbaum@gmail.com, mst@redhat.com, cohuck@redhat.com, mtosatti@redhat.com, xiaoyao.li@intel.com, seanjc@google.com, erdemaktas@google.com References: Message-ID: Date: Thu, 22 Jul 2021 12:52:28 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ckuehl@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=216.205.24.124; envelope-from=ckuehl@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -44 X-Spam_score: -4.5 X-Spam_bar: ---- X-Spam_report: (-4.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.472, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.203, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: isaku.yamahata@intel.com, kvm@vger.kernel.org, Sean Christopherson Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 7/7/21 7:54 PM, isaku.yamahata@gmail.com wrote: > From: Sean Christopherson > > Expose x86_cpu_get_supported_feature_word() outside of cpu.c so that it > can be used by TDX to setup the VM-wide CPUID configuration. > > Signed-off-by: Sean Christopherson > Signed-off-by: Isaku Yamahata Reviewed-by: Connor Kuehl