Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1885316pxv; Fri, 2 Jul 2021 15:08:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweYG6We4pyGco2jfYAb7ysJXXDI/ctWjAhuyOA1xMVsz/1Vn+j6b+PWDkNiTS+LPV6jfBp X-Received: by 2002:a17:906:7009:: with SMTP id n9mr1989872ejj.66.1625263729604; Fri, 02 Jul 2021 15:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625263729; cv=none; d=google.com; s=arc-20160816; b=xzrftBMCI5Nny+QRHNySWr3yMtN9PVyIEM0YNMSGKfk3TKH2tCw0dA7PVq81WkHdHp J1Pn3t2OAkHBzR9hbEyppJVlSjB4vWnzcr+r2eJ5p87Er+f/Za0fXRUCvBzOxe/1iKqE EJ2OQIV5F25VXk0tKW4F2QOq4G3OK+rGtKp4J7jx2N2fGzi5HaIhUhrUaAGFe1kxUAwk dGyDYZkRwh29xUa00sDvVBBfqVhK/Qmu7TsC7alhvAgbSeF6qC2CAZS6KAxVCrEARvq7 2vuAx6Yy0VNXB/H66C1wKk+vhfmTZP9pG1DTrbGFHMkVL5/zSMRZihWdZu/QIUR8rpAN RNyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=fPtlTenY4yONjjvy40P3t/Dw6tQiw+0FyhjxBvkAgJg=; b=szjKp7/pywzdCnp9JIOmwGFKRl9ZcmSXu7BEB/+Bgsj8lvxnnMkCjaRLLJhSd2W4ZM ntlqnajJ1/r6wMVvJ3hVjvJgbK3/nlCCy42Fw9ioSmPyvweMJEqRd/AF2JNWBIXQvhX1 j71QD/MvYfr1XiHQVDlHzIJVvGVKOUvMes+gePDAiSINFuZthqgWY/RDwcw63ohk6HRZ NvWUNYFVUKOpcUf4/h30DXvYAJ9fPeQ7rUYxZrEODv1J3R/ria5DzPFQR9yhbzyhQuKP bUirBhVO27qwpkfjuB8foV6a3m6NhMU5uJZ3tYmzzil5I/7HSxVviHxI4OhhOxL2Xdsl YmGA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u5si4233251eju.85.2021.07.02.15.08.26; Fri, 02 Jul 2021 15:08:49 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233894AbhGBWJN (ORCPT + 99 others); Fri, 2 Jul 2021 18:09:13 -0400 Received: from mga12.intel.com ([192.55.52.136]:50200 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233206AbhGBWIA (ORCPT ); Fri, 2 Jul 2021 18:08:00 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10033"; a="188472753" X-IronPort-AV: E=Sophos;i="5.83,320,1616482800"; d="scan'208";a="188472753" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2021 15:05:26 -0700 X-IronPort-AV: E=Sophos;i="5.83,320,1616482800"; d="scan'208";a="642814801" Received: from ls.sc.intel.com (HELO localhost) ([143.183.96.54]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2021 15:05:26 -0700 From: isaku.yamahata@intel.com To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Paolo Bonzini , 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@intel.com, isaku.yamahata@gmail.com, Sean Christopherson Subject: [RFC PATCH v2 39/69] KVM: x86: Add guest_supported_xss placholder Date: Fri, 2 Jul 2021 15:04:45 -0700 Message-Id: <3bcd7285a0cb15974fdb0e8f81b61143a360f4a5.1625186503.git.isaku.yamahata@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; -- 2.25.1