Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp125657imb; Thu, 28 Feb 2019 18:16:31 -0800 (PST) X-Google-Smtp-Source: APXvYqyZYJ30untyC81CCVogCiGnFa++qgAF7p+miNH7TIaScP/D07czjx9G7KGyZMxzDiAcr4F9 X-Received: by 2002:a63:6b03:: with SMTP id g3mr2383337pgc.239.1551406591224; Thu, 28 Feb 2019 18:16:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551406591; cv=none; d=google.com; s=arc-20160816; b=oL6wQrr2FV0rESkMnfy3qCueC5ATY32/t84RjKm+DmWWSGInXfTB/AiQByHfOGiAN/ bKnvD5k4KnUNLjWf5Ok1ngG2UaJk6y2yz7oL8GWyeTF6xaBgEYc4RGJip/ImZX1ZiAkV boDda80LWfJiuY4QB9NF8UR/oqWOY+TM0gQmoN2wNAHplQMYqh0CEOpVmiGZLyapDXwp WzNeYD4eXu+AFplYaJkKdMIEmHSn47M0zo+kdaZYqNrndEC89PWHFQ2/gxiLIzI/hF0m etmb2dcGmokkjggGcz8zayzVp0DZp3bOepRb5g762h27SUCx0M2vHCnKWcrAJ6sjw2eu YS0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=+bUdiX6DaxcIj5LxVENJ+PtEnBM9oUb3hxktcGylpq4=; b=BjU6ibcI3ix0lgapDyOQB+B7W8+hjj6nynF1xcFmcPsrYBC5PPVgFy6dYE3JPqo97k AO0nJxnnhgF1l6/ovYEIP+hGkTcl4ln1kt7Kh7b2VDy9zrGb93ShDf6klsrljAj1vOwo /gPvWiYajl8WA1ri9zNYh226VqgBJtM/2V40W+XntFBidM+83iyjT5rnVAGOeC/tMIPV 84DH6HqskiwVsKAyBaRNAOZczvHo9HbvviJcX/2C49NSwqDOBWSoMVXsjVDfoa5ME/y9 +TixCCs4JYljxayH15AFJC31kTHXYsvfei9wm8CzHiWInSaq9qwVnV+r/sFliDD9Z4w1 jg4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d21si19452106pls.219.2019.02.28.18.16.16; Thu, 28 Feb 2019 18:16:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1731146AbfCACPa (ORCPT + 99 others); Thu, 28 Feb 2019 21:15:30 -0500 Received: from mga12.intel.com ([192.55.52.136]:46624 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725896AbfCACPa (ORCPT ); Thu, 28 Feb 2019 21:15:30 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Feb 2019 18:15:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,425,1544515200"; d="scan'208";a="147524401" Received: from lxy-dell.sh.intel.com ([10.239.159.147]) by fmsmga002.fm.intel.com with ESMTP; 28 Feb 2019 18:15:28 -0800 Message-ID: <80d077f35a867b4315da76918f69ba4aca8a76ad.camel@linux.intel.com> Subject: Re: [PATCH v3 2/8] KVM:CPUID: Define CET CPUID bits and CR4.CET master enable bit. From: Xiaoyao Li To: Yang Weijiang , Jim Mattson Cc: Paolo Bonzini , Radim =?UTF-8?Q?Kr=C4=8Dm=C3=A1=C5=99?= , Sean Christopherson , LKML , kvm list , "Michael S. Tsirkin" , yu-cheng.yu@intel.com, Zhang Yi Z Date: Fri, 01 Mar 2019 10:15:30 +0800 In-Reply-To: <20190226075734.GB10256@local-michael-cet-test.sh.intel.com> References: <20190225132716.6982-1-weijiang.yang@intel.com> <20190225132716.6982-3-weijiang.yang@intel.com> <20190226075734.GB10256@local-michael-cet-test.sh.intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-2.el7) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-02-26 at 15:57 +0800, Yang Weijiang wrote: > On Tue, Feb 26, 2019 at 11:48:59AM -0800, Jim Mattson wrote: > > On Mon, Feb 25, 2019 at 10:32 PM Yang Weijiang > > wrote: > > > > > > Guest queries CET SHSTK and IBT support by CPUID.(EAX=0x7,ECX=0), > > > in return, ECX[bit 7] corresponds to SHSTK feature, and EDX[bit 20] > > > corresponds to IBT feature. > > > CR4.CET[bit 23] is CET master enable bit, it controls CET feature > > > availability in guest OS. > > > > > > Note: Although SHSTK or IBT can be enabled independently, > > > either of the features is controlled by CR4.CET. > > > > > > Signed-off-by: Zhang Yi Z > > > Signed-off-by: Yang Weijiang > > > > Am I missing something? X86_CR4_CET and X86_FEATURE_SHSTK and > > X86_FEATURE_IBT don't appear to be defined in Linus' tree. > > The patch-set has dependency on this CET Kernel patch-set: > https://lkml.org/lkml/2018/11/20/203 > I reused some definitions from the kernel patches. Right, the definitions should be defined by the kernel patches. However, I have checked the latest kernel patches and found it didn't define the related CPUID feature bits.