Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5788118ybi; Tue, 28 May 2019 20:13:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgBPwcQx/UdeWItGON/avGBuiqGittfRyB0B7uDsr6VP0eocZ7CSfv9OozwRwHxJBl/ZQ8 X-Received: by 2002:a62:ed0a:: with SMTP id u10mr40222657pfh.243.1559099614699; Tue, 28 May 2019 20:13:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559099614; cv=none; d=google.com; s=arc-20160816; b=oR4KrVuliiChqQB13Fc1V4dWOPIlxVWIJZAqsPvTvqB1S7PSwCzdGoqzCzwckHk020 NueKREGAn1Dp/kioEvE26p+JKUBHkHKjVzWhZQzwSdY2/chYVZE+hADLrANQSv/WMlqb 4QhtX8NR456DTuVrcEUscwFgh3SsV2smdzS20FfBA8ktxz2zKgjL0uupwZCAs/AeGTHH Oz4lGMHH04B7VudHP6LyPWGm5E8wgTifwpS/+oUPuFzH3B6tSF7ooDbsTqdzTL1MibVu XblYf+TQHnisBrZPl1HzeLRPhwkAwyi3Pz9gDoJlhDb0KnvOKBGS6dNso59TKMp/Qg4b Ht+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=NxoDp58tQfut8uVAk92JqljLUV1Ktnz69yIRwnAOwDM=; b=QaNmI1eQ7D5Rbj6kec2AWeT1qFrpBkniT4oEKridYnKoWTkegaYdxrk/IeVOgb+SMY EQUG/UUzmV/bUgJZUzhCyqJUzPO68C44VTvvhUIGA3Zf8O6j9OyWShnR7fJpPc2qFzPn 0EvJVxuhIbn+FpbbVVKjJfgEzP7FBXRhAKTLvlVwvSmYTeygCMrBdEH/M8S9GVVprilz ueBdwVJY0bN+/vp+4ktGeiMMn5+muosOcYtahKb6dC6//8wSH9FR7oY/+AZ3QFp1ZZZf QBGjKZvwnTyolfUnhrHkgUifTvgGdHa/RzhL1Y0k39wzUPO0pNrj8cimlCoYtD92udjg qHKw== 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 32si4821561plc.152.2019.05.28.20.13.19; Tue, 28 May 2019 20:13:34 -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 S1726538AbfE2DMR (ORCPT + 99 others); Tue, 28 May 2019 23:12:17 -0400 Received: from mga17.intel.com ([192.55.52.151]:41169 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725816AbfE2DMQ (ORCPT ); Tue, 28 May 2019 23:12:16 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 May 2019 20:12:16 -0700 X-ExtLoop1: 1 Received: from txu2-mobl.ccr.corp.intel.com (HELO [10.239.196.245]) ([10.239.196.245]) by orsmga003.jf.intel.com with ESMTP; 28 May 2019 20:12:13 -0700 Subject: Re: [PATCH v2 1/3] KVM: x86: add support for user wait instructions To: Paolo Bonzini Cc: rkrcmar@redhat.com, corbet@lwn.net, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, sean.j.christopherson@intel.com, x86@kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, jingqi.liu@intel.com References: <20190524075637.29496-1-tao3.xu@intel.com> <20190524075637.29496-2-tao3.xu@intel.com> <419f62f3-69a8-7ec0-5eeb-20bed69925f2@redhat.com> From: Tao Xu Message-ID: Date: Wed, 29 May 2019 11:12:12 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/29/2019 10:38 AM, Paolo Bonzini wrote: > On 29/05/19 04:05, Tao Xu wrote: >>> >> >> Thank you Paolo, but I have another question. I was wondering if it is >> appropriate to enable X86_FEATURE_WAITPKG when QEMU uses "-overcommit >> cpu-pm=on"? > > "-overcommit" only establishes the behavior of KVM, it doesn't change > the cpuid bits. So you'd need "-cpu" as well. > > Paolo > OK I got it. Thank you for your review.