Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1240012pxb; Fri, 21 Jan 2022 13:07:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIOJ6s0CepvhAOb4QULasnoiCrb8Bb4/rlMUhSivKPFHf9EOjZPlzxrDbXIK+beN0vSh1W X-Received: by 2002:a17:90b:4f88:: with SMTP id qe8mr2482929pjb.164.1642799229163; Fri, 21 Jan 2022 13:07:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642799229; cv=none; d=google.com; s=arc-20160816; b=W7Rd3Fi+GAUBEyTat7wGyosLa8D/4/7rcq0VcUdYpf+k41jTckBSFMmLdQaAUqajk/ KlGrF/vJxtJHVGSz1s/dRNbEvE4av9DKQgebS5BYvmEi27Xv2w2pUYm6P/Mrrd3/lkXc kkbk41YFQyWa+cWOA5H7rIkZyJHhI7N4k8Pylx4sS8y3I18yogEhp151Tp6iw8GlBI+y w5MkTNwMzuE9TFg1LmQhECZrk+9vuMC3gB6YBmg/MyyS2KoA5FLbLsx4Da78p6Mv4VUl ycyccJhkzZK2PAUPKJuLmL/dOCxXx3kNVoFn+1XKm92kdIwKRAWO8c/OhxO3AvXcKL7a m0Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=cwFiQb2X5iJGMn13KY+fCa73GImPeyqliIuV/fK8TUY=; b=L4mxeNCk3JQkoShgfGoFI9j3HZBMaqaHlsFNdooeG0pKcCPYO+zYsENlQOTPLuv9T8 Ht9+Jj4zUWiy1Ade+mgVrzFcH79EihQGCXLiDP1RaiQ2DS+SIXLlWCIUq6RZUGFkixdV MhEgDUotKLeGTB17pSha+8mrgUVJjSyqifzi017wtyHTk6DRoem+LIChgZwttJRddm4V MQ41r+dYPQM+fsASo6yiSHlDIV76+CfDHki7NMsA7j+L+2NzBIrdxZ7llKdHS8ITDpqJ uiil/byQaInMFaLy7pwA5TeM7i7qPHUzECGw5JeZMAUExg+bUUN+mbFt+TVHgQCl/yYs JItg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bL1p0C0j; 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=pass (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 p20si6801420plq.541.2022.01.21.13.06.57; Fri, 21 Jan 2022 13:07:09 -0800 (PST) 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; dkim=pass header.i=@intel.com header.s=Intel header.b=bL1p0C0j; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358603AbiATFfA (ORCPT + 99 others); Thu, 20 Jan 2022 00:35:00 -0500 Received: from mga02.intel.com ([134.134.136.20]:29191 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229989AbiATFe7 (ORCPT ); Thu, 20 Jan 2022 00:34:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642656899; x=1674192899; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=t27IesemgHjw9RZFxfYR0WfViB/5r1HZWYSRstYTahs=; b=bL1p0C0jbULoF1xTMU9Fs8RXD7ziCumyAyiKqaST7ESX4DGfno6iPq1C JiC8/ZP/YC8EUBcM8ma7BSmwIsjDp7HHkr2xIhEJUR0ybPECJSmFGSfnI CRSZ+zUlTxY6GFyHVf7gXFNi4Xfcp2Txo4wN8JilAgDe5naR2l3F6EZjC rIgWYpkIO3y6cydBB4l/U73I6FPHHWXc9JrHag90wv8/N2+gtMhBV5i+Q 0IJRPOS3bISM5PVkYAz7NanLMTWUkI3svQoMn/nOF5/3bQq4dpxdLVL0h ue1ZmoNUoHGD60OBEOz9hcldbbifOjHnbYwvJEoNkZ9Iru87Utalolkti Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10232"; a="232638817" X-IronPort-AV: E=Sophos;i="5.88,301,1635231600"; d="scan'208";a="232638817" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2022 21:34:58 -0800 X-IronPort-AV: E=Sophos;i="5.88,301,1635231600"; d="scan'208";a="532623958" Received: from zengguan-mobl.ccr.corp.intel.com (HELO [10.238.0.96]) ([10.238.0.96]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2022 21:34:53 -0800 Message-ID: <1e285770-ab21-be29-af85-be85b3df5993@intel.com> Date: Thu, 20 Jan 2022 13:34:44 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.5.0 Subject: Re: [PATCH v5 4/8] KVM: VMX: dump_vmcs() reports tertiary_exec_control field as well Content-Language: en-US To: Sean Christopherson Cc: Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , "kvm@vger.kernel.org" , Dave Hansen , "Luck, Tony" , Kan Liang , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Kim Phillips , Jarkko Sakkinen , Jethro Beekman , "Huang, Kai" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "Hu, Robert" , "Gao, Chao" , Robert Hoo References: <20211231142849.611-1-guang.zeng@intel.com> <20211231142849.611-5-guang.zeng@intel.com> <7fd4cb11-9920-6432-747e-633b96db0598@intel.com> From: Zeng Guang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/20/2022 9:06 AM, Sean Christopherson wrote: > On Fri, Jan 14, 2022, Zeng Guang wrote: >> On 1/14/2022 5:03 AM, Sean Christopherson wrote: >>> Can you provide a sample dump? It's hard to visualize the output, e.g. I'm worried >>> this will be overly log and harder to read than putting tertiary controls on their >>> own line. >> Sample dump here. >> *** Control State *** >> >>  PinBased=0x000000ff CPUBased=0xb5a26dfa SecondaryExec=0x061037eb >> TertiaryExec=0x0000000000000010 > That's quite the line. What if we reorganize the code to generate output like: > > CPUBased=0xb5a26dfa SecondaryExec=0x061037eb TertiaryExec=0x0000000000000010 > PinBased=0x000000ff EntryControls=0000d1ff ExitControls=002befff > > That keeps the lines reasonable and IMO is better organization too, e.g. it captures > the relationship between primary, secondary, and tertiary controls. Make sense. I'll change it as your suggestion. Thanks. >>  EntryControls=0000d1ff ExitControls=002befff >>  ExceptionBitmap=00060042 PFECmask=00000000 PFECmatch=00000000 >>  VMEntry: intr_info=00000000 errcode=00000000 ilen=00000000 >>  VMExit: intr_info=00000000 errcode=00000000 ilen=00000003 >>          reason=00000030 qualification=0000000000000784 >>>> pr_err("EntryControls=%08x ExitControls=%08x\n", vmentry_ctl, vmexit_ctl); >>>> pr_err("ExceptionBitmap=%08x PFECmask=%08x PFECmatch=%08x\n", >>>> vmcs_read32(EXCEPTION_BITMAP), >>>> -- >>>> 2.27.0 >>>>