Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5713283ybi; Tue, 28 May 2019 18:27:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKYjKjZn4MGrTW3cA0kIM1xFyB2mCQVyao2eiIuH9Gp3kvcXmm1WDXyNEnThQDUO4tpYQ3 X-Received: by 2002:a17:902:2865:: with SMTP id e92mr27732959plb.264.1559093277913; Tue, 28 May 2019 18:27:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559093277; cv=none; d=google.com; s=arc-20160816; b=wnbXnc5XpnxQaJ+EI4CIOW1aR3GIxeJieYRtvT+0eYDs43HjQGCvEsknUVDh5NZEjm MZ3Z56Gndv8JTnAk7JqOhAM2TlW8NKVw1iGK0KhCk7jK8f+X+kA674aI/kiYTSdFZ9/n dL/Js2OTcmt22ydu5/adsNMta3xIqwLKmvxL5ZNS1R8KTxFjL6RAjaD900ldOUVjPOj2 iJx7RKj3AMiZg3N6n3vBr3hRLgBpK68PWZ1byb13j8Q10lDyJctSUp/t2/SKNEcwno4C MDT1K9uokSa7w2jFuTXm6CwHDaBHY+FfuH6DA0sPB33Nmbm5xBoZLQYyzOk8IlHyzGMX clQg== 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=rmRCqN5V69njNKzXqsufXyHQFr1ecAJaoY5I9r8Jg/A=; b=uWZspPrIMLoUBsawUDcDh1+J/K2pytkpWnqh04mgSLPgB+hjvYPJuDt9N/5A/kSmCJ jeKyXUoO9doENEXyl6jBmLjxiK6a3v/Wh9CfaJWyKKaZx7ePoPChSk0UIsBEpVbdd4D+ t7xBMkep4z33JVeMz9fQMZ0mBy2jy65wfTHLNDCb02+2vzvcQvp1ATeVEGGNvm+8Fcr5 DBPS1r2r0tbR4Sjc4I0IHtQSVmUsmHPQAVtXpnLEpxxdAhh3meiiUAI8Ksg7buMtx170 EYUb/r0KpRZy6MSDRMM5Zf7iAqj0QQd+/rzAY22me1z5exf1+piStJnlM3ICx6yEQoN5 hJRQ== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1si25256465pla.122.2019.05.28.18.27.42; Tue, 28 May 2019 18:27:57 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726330AbfE2B0j (ORCPT + 99 others); Tue, 28 May 2019 21:26:39 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:37325 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725830AbfE2B0j (ORCPT ); Tue, 28 May 2019 21:26:39 -0400 Received: by mail-wr1-f66.google.com with SMTP id h1so460305wro.4 for ; Tue, 28 May 2019 18:26:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rmRCqN5V69njNKzXqsufXyHQFr1ecAJaoY5I9r8Jg/A=; b=RdsdS8NeKXw1/W9H38wI14UEsdibrKxDkdBwdyQbgbaL8ikirFE2NFKzahOM8ZAxim 3X7sv8XcwUtmBikTYMf4FBMS471A0iXTQjfiyXa5tQjgmxSi6fXE8DEmL/fuSXfRe9KO OruuCIVHKexPGe6BYjuUC0CEPGCbRKEoOPmqTkirdXZEmxzwlvtr9i4yIsmRasC8ZHcu Wl9rLvS6rrcSsfPcrEwneNySSiyLzIOzR9Rzxby6xa//zJXINCzE05b8bjCT4/3jTyiY LbQBipUD+QlndAJkFUp3mnOt8KLPs+lL+OcbYTGAjOKJxC3oIFCE7F+BrzbjeAiBttjn PPig== X-Gm-Message-State: APjAAAXdsy5EchRUIKw2xcow7RyI8+ba7prPJg1xFKz2D2k2yQtKBKCB yVGdBrBG35LppNwvWoh0rEz5xA== X-Received: by 2002:adf:ba47:: with SMTP id t7mr18702012wrg.175.1559093197515; Tue, 28 May 2019 18:26:37 -0700 (PDT) Received: from [192.168.10.150] ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id d26sm3816595wmb.4.2019.05.28.18.26.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 May 2019 18:26:36 -0700 (PDT) Subject: Re: [PATCH v2 1/3] KVM: x86: add support for user wait instructions To: Tao Xu , Wanpeng Li Cc: Peter Zijlstra , Radim Krcmar , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Sean Christopherson , the arch/x86 maintainers , kvm , linux-doc@vger.kernel.org, LKML , jingqi.liu@intel.com References: <20190524075637.29496-1-tao3.xu@intel.com> <20190524075637.29496-2-tao3.xu@intel.com> <20190527103003.GX2623@hirez.programming.kicks-ass.net> <43e2a62a-e992-2138-f038-1e4b2fb79ad1@intel.com> <072dd34e-0361-5a06-4d0b-d04e8150a3bb@intel.com> From: Paolo Bonzini Message-ID: Date: Wed, 29 May 2019 03:26:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <072dd34e-0361-5a06-4d0b-d04e8150a3bb@intel.com> Content-Type: text/plain; charset=utf-8 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 28/05/19 09:19, Tao Xu wrote: > > Thank you! This information really helped me. After I read the code in > KVM/QEMU, I was wondering that with qemu command-line "-cpu > host,+kvm-hint-dedicated", then in KVM, > "kvm_hint_has_feature(KVM_HINTS_DEDICATED)" will be true, am I right? Yes, but it doesn't matter for this patch series. Paolo