Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4724598pxv; Tue, 6 Jul 2021 07:44:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvR6rrS9wx1o2mPIR7aeAd9W6vhAFENGPMrNu6hyNRDdEeBjiFjBUaR67Mz/Bzu9KrwNt+ X-Received: by 2002:a17:906:a2da:: with SMTP id by26mr3056266ejb.232.1625582647188; Tue, 06 Jul 2021 07:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625582647; cv=none; d=google.com; s=arc-20160816; b=ZHMcK2MP0ml6paNeQSXdiAhJC7KiltfRHVz4xVu4lhH+AyX750akZ2yPsMOqTvR+Hq iKQEHquKSnIIXlI31CGo7XfjDsk1AVgNhl8pCr4u6NWhsjk4zwiO84xHnrer5NkGjC+T lP2NDXXwQTQFgJJ4+Px1XwPXQGudDAajHvPfg247npgi4WKlj/7soAvhIz6kF2sAmEkL T8kTE3G5wwVFXKwQngibwgMMhaMPVT5XB84ESt2lU8eMBBDoOkCsoesgVmJnR1ApQZQe +DIOpsgGjScCwcArjnX39/0XpgPV6HhW65sAEK0wBvvPmelmYHDJM/wUNxdH5IE86QIW 9cWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=dyv/6mgjNNKYtygPJuI6vJBV8Q4XF1LGAO51hVfQGwE=; b=Atj5j/aYf5cP1UdxjXt/+dO4XTpMLIEu5yQEjVO9Iv6366ZozBUKPjz3dJ1zkGUnse bwds/lyHMKVPTlFnQ2U1SPyDkyH5NrukejBNyJ9UDLVsgfMv7AD1hAJTYW8RlIbWv6EM /r0Oey88tvVHIFbOfPVdSD+XqHY4hFuHGCAlXpBFZu2CI3/CkoVllbTKY/7EuArhsyAc jn6mePskeJ18PA3H2O+e7qwHLT6mYpap/qGaxcEJF7HFjAQR4cZngirJKFtIWD49FMGb K3/Vj9Oh9dZZ3unvPZGH1hhGX5bf3HuIybUg0NALpOmd4e1I/1JgSUpSyd0NNMrKs8Kg iePg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="WIl/S/4M"; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r15si15172469edd.512.2021.07.06.07.43.41; Tue, 06 Jul 2021 07:44:07 -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=@redhat.com header.s=mimecast20190719 header.b="WIl/S/4M"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232308AbhGFOpM (ORCPT + 99 others); Tue, 6 Jul 2021 10:45:12 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:38547 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232322AbhGFOoC (ORCPT ); Tue, 6 Jul 2021 10:44:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625582483; 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=dyv/6mgjNNKYtygPJuI6vJBV8Q4XF1LGAO51hVfQGwE=; b=WIl/S/4MPA1x4RXf19wN/JggQl96ulno3U/WY3UNCKOsNerL1GSmDxU9yscB3ft7zoVTJX RxGQwI+9BSk3iXR1DrMfyP18FGpUYBwQV7FORWUHVN9uWXsGTLQ4lXj/11en/xnROeyVa+ F9BpiH1Vzhxu2rHB13sTaiIDDWUNAZo= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-548-UHp17WhNNey-ay5UdAGSBA-1; Tue, 06 Jul 2021 10:41:22 -0400 X-MC-Unique: UHp17WhNNey-ay5UdAGSBA-1 Received: by mail-ed1-f71.google.com with SMTP id p19-20020aa7c4d30000b0290394bdda6d9cso10859341edr.21 for ; Tue, 06 Jul 2021 07:41:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dyv/6mgjNNKYtygPJuI6vJBV8Q4XF1LGAO51hVfQGwE=; b=hUf/Yi/5/PudzEuH9O33U0qiLHhHnuO6INzDRqywxDpQNi7bFd8iWt4LWDjZ4hzA9H Y0ngFjyDwryYYE06k2CrJzTXVUQ+3hwoc1jqzaGJklEQBj2jLCxGZ1nzo0MMTsZyfBLC tz8mgJ9VF45GUqyxF9ZUnH17EPGDL9iJI5G2TtGAUoMNykIiI2dOgLJFGwP9FkdbjoIV ZVEm0XRkOCh+w80gMC4/kBm6o5j2kZ0KesooTCW12yGUIUePCKAJVr9lAvut7pF8bdzl X/6+PEttY7rCfqZ+2EMqfYf5HRHR4MU8bv6O6PXlp/6A0DqGCtoHbW1uMPk7b0vgLMWq gLWA== X-Gm-Message-State: AOAM533mAL94GFMbmNPA0XETHSvenALC/gpYWsZHfK+X/k2HmDAvENEl v1w+veCDXJ1Un/JQEODqYfOFFDCiMzu3Dac+2h/T7HsdFwe+RHs4hYxRWkbcTcRjbzOk3CHM6hO Chy5Y/GNlxIgSd0xZL1erkpxK X-Received: by 2002:a17:907:7b9b:: with SMTP id ne27mr7623802ejc.318.1625582481350; Tue, 06 Jul 2021 07:41:21 -0700 (PDT) X-Received: by 2002:a17:907:7b9b:: with SMTP id ne27mr7623773ejc.318.1625582481104; Tue, 06 Jul 2021 07:41:21 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id t6sm7263654edd.3.2021.07.06.07.41.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Jul 2021 07:41:19 -0700 (PDT) Subject: Re: [RFC PATCH v2 39/69] KVM: x86: Add guest_supported_xss placholder To: isaku.yamahata@intel.com, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , erdemaktas@google.com, Connor Kuehl , Sean Christopherson , x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: isaku.yamahata@gmail.com, Sean Christopherson References: <3bcd7285a0cb15974fdb0e8f81b61143a360f4a5.1625186503.git.isaku.yamahata@intel.com> From: Paolo Bonzini Message-ID: <469f9f3d-bf51-1c79-1139-c4ccad4b7b89@redhat.com> Date: Tue, 6 Jul 2021 16:41:13 +0200 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: <3bcd7285a0cb15974fdb0e8f81b61143a360f4a5.1625186503.git.isaku.yamahata@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/07/21 00:04, isaku.yamahata@intel.com wrote: > From: Sean Christopherson > > Add a per-vcpu placeholder for the support XSS of the guest so that the > TDX configuration code doesn't need to hack in manual computation of the > supported XSS. KVM XSS enabling is currently being upstreamed, i.e. > guest_supported_xss will no longer be a placeholder by the time TDX is > ready for upstreaming (hopefully). > > Signed-off-by: Sean Christopherson > Signed-off-by: Isaku Yamahata > --- > arch/x86/include/asm/kvm_host.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h > index 7822b531a5e2..c641654307c6 100644 > --- a/arch/x86/include/asm/kvm_host.h > +++ b/arch/x86/include/asm/kvm_host.h > @@ -656,6 +656,7 @@ struct kvm_vcpu_arch { > > u64 xcr0; > u64 guest_supported_xcr0; > + u64 guest_supported_xss; > > struct kvm_pio_request pio; > void *pio_data; > Please remove guest_supported_xss from patch 66 for now, instead. Paolo