Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp975844img; Tue, 26 Feb 2019 11:50:21 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ2r9iQC2SxZ00cClzAtUuemyzXOOidLMW1FNWyhnuq2Cuzji42CFK1gZAJbE5HfP+yYWdq X-Received: by 2002:a17:902:33c2:: with SMTP id b60mr27754761plc.211.1551210621651; Tue, 26 Feb 2019 11:50:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551210621; cv=none; d=google.com; s=arc-20160816; b=tbt1ac6pInfgzV4wIHrecoaZYImr4INmLIBBfYofFq5KdThvzBsdix/w5PRCWbThks kUdliRfaiE6VVEnr/JGAYl8mvVtizCFPR0aaobErUou6TqgU6TYaYgDnUqMarJSKrfYf rHQjXbbXLgHXWKi0us6AEQEZLZfHfYJ1vzpy8sxMl7JycRwJRErLUsIswHfBvK/Zh6iU ul3ZeFXErGjrYHdedW3DBywAuVK88nK2txTiNEWxEYgFH4Vd4xVAeG7m6OQScqlQFr6e 0r913ZffJ4j+o0GualXVxC+htTQMcEglCvzYggvZsP20irsh2Z7lfQeOrzwYGMGJ7S3h AHpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=vOx1ZmSkQAaybngNdfzFBv6eH9pUxDtduE3wCio0URg=; b=RREmzUTiqAhfjUV3KC4hyaRiNFk4H48KfUr8dHJlQTC70NDo5qzrX4Stjx7WPcIWMS FF/3Lbr6t4+Pay/a/LhVC5U83EmPCmQZy9svwenx0fbZvYPOIfeDo9U0zoYeufdKIgT3 1POOxvZPG5COzjx+k7UzHB4bgJQW0mn/ophpbSak15J2xDUijDfpunYoFLAYR2O4jdLq FKXkjprhX8XHvAraaNWx7Db3PNIZtDLUmtG3Yu8fcj8hSj2pBukCemhVi7EeLrSo3YDm wi48g6aDwD8OiI3Y9uV1GTiPL6ueUjVb8VlNr2MYFX1HWxD9Vzs9Q0f2Lp2h563/4HEO Sevg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BTpBcq2o; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w18si12481902pgf.439.2019.02.26.11.50.06; Tue, 26 Feb 2019 11:50:21 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=BTpBcq2o; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728963AbfBZTtM (ORCPT + 99 others); Tue, 26 Feb 2019 14:49:12 -0500 Received: from mail-io1-f67.google.com ([209.85.166.67]:33918 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727998AbfBZTtL (ORCPT ); Tue, 26 Feb 2019 14:49:11 -0500 Received: by mail-io1-f67.google.com with SMTP id e1so11525068iok.1 for ; Tue, 26 Feb 2019 11:49:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vOx1ZmSkQAaybngNdfzFBv6eH9pUxDtduE3wCio0URg=; b=BTpBcq2oeSNakpyRRhfA0V+0z3LMufszODZ2HLRF7Oe4UhCwOwYpY8UH7fViKDcofB hDvLoBmpjIxNAZW8GQNKR1CBk8SLtMSO37WXhs2Vf8ktLcm/97kZodHZBBLr1MlvjRQE kyRUkKS4PoGZtzGTIsZJ/+DR7kZiXYV5e4Fv30zpLlkW900ro6igD/OsbcKym0iOtV+b e+T4SX9+4nlZQaFInhEvBqMQkiMvINlwOtfybtU0HDl/bOOdpnDSB62a03hV6BhJ/fVn 9Q0IqsqN2+At9oDsESRjiMHPp9FSvrbIezL1St1ircdV4LXe6De1YEt+kVPneG0bwQmu P/Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vOx1ZmSkQAaybngNdfzFBv6eH9pUxDtduE3wCio0URg=; b=S9IVPlOqjtq2vJ7CmtqQRKVZPZ22lzR1vzpF41coHZBe9Pl3H4AomeBrenz9BRxY0x 0qNIRvBdLxtp5YKxw2R1qtCUmR2aOpkFA0We50l+BNldNap/fPrmqXbJ8Mt59tYpXVEO a4YCECCYr0r2BrsPkMUmmq+CFCK20V4xIQtff/uG1vWC4d+T44PN/eDad4fUwake9g1u drzf9MgibB1KpzDSnTJ+dSkQeR1CAyrMjm7TcIjFCMIwIDhONUTk1vz+sC+f6J1U7A+/ qrAfv58mBV9hs1odaceq+UfeSg60N/JVe7R21kCePP0iO3IblyEtq//gkJtFg2W/Cp/0 XDPw== X-Gm-Message-State: AHQUAuZ+LRuVAHiY2i4+b002McjnswuCahZ4+NohSpLodHtiL+33M7XW SZ4lJddc8gMSmvBiHTryaIa/WQWXkSqPxVIlP5rrcQ== X-Received: by 2002:a6b:c545:: with SMTP id v66mr14161803iof.40.1551210550511; Tue, 26 Feb 2019 11:49:10 -0800 (PST) MIME-Version: 1.0 References: <20190225132716.6982-1-weijiang.yang@intel.com> <20190225132716.6982-3-weijiang.yang@intel.com> In-Reply-To: <20190225132716.6982-3-weijiang.yang@intel.com> From: Jim Mattson Date: Tue, 26 Feb 2019 11:48:59 -0800 Message-ID: Subject: Re: [PATCH v3 2/8] KVM:CPUID: Define CET CPUID bits and CR4.CET master enable bit. To: Yang Weijiang Cc: Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Sean Christopherson , LKML , kvm list , "Michael S. Tsirkin" , yu-cheng.yu@intel.com, Zhang Yi Z Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.