Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp789917imc; Sun, 10 Mar 2019 22:24:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbTiNih+nE1Q3FBBdudqoyb5GKY3T3vnSTs1q42I1BJN6AAm8fLw79a8DqEHyD6CCtgQQ5 X-Received: by 2002:a17:902:8f81:: with SMTP id z1mr32903500plo.265.1552281878533; Sun, 10 Mar 2019 22:24:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552281878; cv=none; d=google.com; s=arc-20160816; b=d7D9RrTqw87yKRAom8cFDuQ8vCHGfmOMOOyAhLsNmY87Ya9bTrGg2g86PaV7leangs wwLA3OGkYzRyzL/1dcjoVe1gro2htQJ1SQldvmKw+utiuwdtQ2UWYY61btcLdzIEZ5+O bTGxofofZFiEotm7dgMJM8XHcOMBmOKUB1Wz0MU5T/L2Ltv9QqQZ8qLaQAcoMlvjvVFN UGREHyXpxGTg5DV+E89NDl3PJ5m7kDxVpUze7q0sZfZBM6LQ3YrC3CguxZXtahFXVzZ5 Q5ybm8m9Hjl6X/Xfkb9EP8sQ/dXq91U8EHAduZSvCwokiEEI4REUPNHQ1ZMGyNDKkZw2 617A== 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=XoNMqY6dkPPLV6xUEXADzWLdZrLBtq/byGi5yksX7dA=; b=iMc4pfE3tthJ/b/DxN3gW5tLL5+oIlqN8CDxxTJH9zHsYZo6Zcuj97bWnN9joITc2o gMC5tepf1j26qpD/m2GjpOoiyyboAKfbr8m/JDvFVYTaSSCT493SFYKESQ2MZHVQGcjZ me1LwdhXMzVX7fNDgvwrZOYxh670y0oLjCQOyLcpu1JfoKtWrDvUQfv9uBze9MbES3ok +bAPctJI/mFqfAYf7tJ7CUhyX8BgMULlMWWHYEplBr4pXI3ECIWUhnSj/Gmq7ezuVock i9DpmffWfZpif6Oke5OkJAoy1MBajypZFrVyQ4+GhhjzABlSva5KW8vjjrOyCEKpaOfP KOjw== 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 d7si4302094pgb.116.2019.03.10.22.24.20; Sun, 10 Mar 2019 22:24:38 -0700 (PDT) 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 S1726141AbfCKFX6 (ORCPT + 99 others); Mon, 11 Mar 2019 01:23:58 -0400 Received: from mga17.intel.com ([192.55.52.151]:42117 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725770AbfCKFX6 (ORCPT ); Mon, 11 Mar 2019 01:23:58 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Mar 2019 22:23:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,467,1544515200"; d="scan'208";a="139682422" Received: from local-michael-cet-test.sh.intel.com (HELO localhost) ([10.239.159.128]) by FMSMGA003.fm.intel.com with ESMTP; 10 Mar 2019 22:23:55 -0700 Date: Sun, 10 Mar 2019 20:18:16 +0800 From: Yang Weijiang To: Paolo Bonzini Cc: rkrcmar@redhat.com, sean.j.christopherson@intel.com, jmattson@google.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, mst@redhat.com, yu-cheng.yu@intel.com, Zhang Yi Z , weijiang.yang@intel.com Subject: Re: [PATCH v3 3/8] KVM:CPUID: Add CPUID support for Guest CET Message-ID: <20190310121816.GA24065@local-michael-cet-test.sh.intel.com> References: <20190225132716.6982-1-weijiang.yang@intel.com> <20190225132716.6982-4-weijiang.yang@intel.com> <7b6f1186-71a1-4246-3884-92cc52853fea@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7b6f1186-71a1-4246-3884-92cc52853fea@redhat.com> 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 Fri, Mar 08, 2019 at 12:32:12PM +0100, Paolo Bonzini wrote: > On 25/02/19 14:27, Yang Weijiang wrote: > > + compacted = entry[i].eax & > > + (F(XSAVES) | F(XSAVEC)); > > + entry[i].ebx = xstate_required_size(supported, > > + compacted); > > If XSAVES and XSAVEC are both false, just set ebx to 0 as it was before > this patch. > > Paolo Thanks Paulo, it makes sense to do so, will change it in next version.