Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1226313img; Tue, 26 Feb 2019 17:04:54 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia5ejtbZg75jg68Ds9y2yxagP/pMOJ9pfHpoqaWPHvphIXDougQsr1uew2KQM1y1B2UKFz5 X-Received: by 2002:a62:2008:: with SMTP id g8mr28434327pfg.121.1551229494196; Tue, 26 Feb 2019 17:04:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551229494; cv=none; d=google.com; s=arc-20160816; b=gOBmcZeXhZcIWIoEnmNdQ/8owJGD9g4b5RWMUw48QNG/W1lCBGdTjyilNVHltulBZH wFiTXWMXPdnIGq2/lGyyOS1W3cvZeDxVztA+rifc+5X8eyNjwjm5hYc4Ki8rX1qse1Y5 qou5evhAg1ZrZ7+oJ5L0PkYQvEP02dp5oK2INPkfOEw1Vblthx4V019FJSCagEV+KqnI oun/n5QZg6M27xiNW4qihlMkVn9XUCUbBcMJVZlM7FH5KWp/fIzg5bayF4PAcUSAVzKS mUMNXQDkEoh7eOYhCdyDswhUp8/nk35hjEYcpRNo9zE1aFRwxvvZkymxzQno9keRnp/u oljg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=UMEg+TfP0dquzjrqD2vf2HYWh3hF/8tEyZGTvpRGfro=; b=oOkTSTJ5WAX8j5kFF3qfWwzyMLIJE8x/jIx0G57Ngpu02RvuZr5KBTl2bqX2hWQxBy 3Xk7MwBu7IZ14ZvvZddaX79TgyO+pG6koD4+SR6GhYcCddt0gSznsEkcMcjXmuXO5JnO dS3CgsesFo7pZlpSxhUk0cVSuDkqD4HCAasIu6PHnciRFpsdX9QeHFpKEQ/AJz3MaLnw pJWw8P9VB4YAL95jWDsyr3v7HGqX2GQXQ2eygFPNd9JG5kUiJ0LcDW+2kztITT5qcNgl YoF8JL0WNoB21lxd4e5dJotorE+6hoq2hFeAFBWGTSo4cewnHL3seHNitxvot1uKxIZy lFTA== 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 g63si13188891pgc.382.2019.02.26.17.04.39; Tue, 26 Feb 2019 17:04:54 -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 S1729466AbfB0BC4 (ORCPT + 99 others); Tue, 26 Feb 2019 20:02:56 -0500 Received: from mga06.intel.com ([134.134.136.31]:32375 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729415AbfB0BCz (ORCPT ); Tue, 26 Feb 2019 20:02:55 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Feb 2019 17:02:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,417,1544515200"; d="scan'208";a="121071040" Received: from local-michael-cet-test.sh.intel.com (HELO localhost) ([10.239.159.128]) by orsmga008.jf.intel.com with ESMTP; 26 Feb 2019 17:02:53 -0800 Date: Tue, 26 Feb 2019 15:57:34 +0800 From: Yang Weijiang To: Jim Mattson Cc: Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , Sean Christopherson , LKML , kvm list , "Michael S. Tsirkin" , yu-cheng.yu@intel.com, Zhang Yi Z , weijiang.yang@intel.com Subject: Re: [PATCH v3 2/8] KVM:CPUID: Define CET CPUID bits and CR4.CET master enable bit. Message-ID: <20190226075734.GB10256@local-michael-cet-test.sh.intel.com> References: <20190225132716.6982-1-weijiang.yang@intel.com> <20190225132716.6982-3-weijiang.yang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.