Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0DB65C4360C for ; Sun, 29 Sep 2019 01:30:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D2FAB2146E for ; Sun, 29 Sep 2019 01:30:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728800AbfI2BaK (ORCPT ); Sat, 28 Sep 2019 21:30:10 -0400 Received: from mga01.intel.com ([192.55.52.88]:43547 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728569AbfI2BaK (ORCPT ); Sat, 28 Sep 2019 21:30:10 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Sep 2019 18:30:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,561,1559545200"; d="scan'208";a="390424450" Received: from txu2-mobl.ccr.corp.intel.com (HELO [10.239.196.82]) ([10.239.196.82]) by fmsmga005.fm.intel.com with ESMTP; 28 Sep 2019 18:30:08 -0700 Subject: Re: [PATCH RESEND v4 1/2] x86/cpu: Add support for UMONITOR/UMWAIT/TPAUSE To: Paolo Bonzini Cc: "rth@twiddle.net" , "ehabkost@redhat.com" , "mtosatti@redhat.com" , "qemu-devel@nongnu.org" , "kvm@vger.kernel.org" , "Liu, Jingqi" References: <20190918072329.1911-1-tao3.xu@intel.com> <20190918072329.1911-2-tao3.xu@intel.com> From: Tao Xu Message-ID: <705e50fa-2d98-52ac-cdb7-1d68ca8f4b5d@intel.com> Date: Sun, 29 Sep 2019 09:30:08 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 9/28/2019 4:22 AM, Paolo Bonzini wrote: > On 18/09/19 09:23, Tao Xu wrote: >> + } else if (function == 7 && index == 0 && reg == R_ECX) { >> + if (enable_cpu_pm) { >> + ret |= CPUID_7_0_ECX_WAITPKG; >> + } > > This should be the opposite; remove the bit if enable_cpu_pm is not set. > > Paolo > Thanks, I will improve it.