Received: by 10.223.176.5 with SMTP id f5csp744758wra; Fri, 9 Feb 2018 06:34:05 -0800 (PST) X-Google-Smtp-Source: AH8x224JF1EC/4LPPXI770LMuDf5a1M/uH5xTbrshXJMjQf9Xd/+rwcKV0QZdtPi2GtmszbEsXvm X-Received: by 2002:a17:902:48c8:: with SMTP id u8-v6mr2712257plh.272.1518186844894; Fri, 09 Feb 2018 06:34:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518186844; cv=none; d=google.com; s=arc-20160816; b=mv3pYeqzU+CxJOF9ux3IPHPGOl2u87dD0WAilQFQNfLj2E0ZxmfF3T/9ioXbItepnJ 818idbOv18Odpe92qbT9L/SwRURCiK6AN3+3P0IvOHCAsWPnr+FFo6G9V9PZwlSwQ1P2 SoDge8nwnSkp/syorUtAUWRtLRRCHqdUQ9gHh1/YlNe75YS4jSjv9YExFYN2iBBboNnP RfcMZU7ds8MVuXE9VKqZVqI40+N8Abf6kFLWrxK0ZeeSSvjAI1dBQogoBZiVJer0NboO Ie5vaImAcRIVQe68EQqrIy/4Rtalax2JGo6ndGfyNlEDDhqSeSuctGPyqwGPTHcTsLlB 1/cA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=48J/evlGb+GktHyxMsZM0/YLSN4OxZ30xN501mSf4gs=; b=tMNgdaYUiKk/ccjIJWDTlVN1xxKY+lNAAoTR0UrG2F9zL7CoMAgWvF7W7tuq5kF7Ty eOmK+w2lRDmK78x1qZq4gUt/P1qYia0r5vdKOzbdVUsgOm+NCZVWW+rMnN6q6rmnsMEx eatbXAAHayTLqGJj4oABHcVpHoZX7GZLdeUFtgeKnLP5fS9QyybdU4YAOumj6y/61xyU RGEkrZkZgIpWQz72+FEaUpjEC/Zg/17LtMAbvLQa843Iabb0EPXdagC4KyoKgPAziWS6 Ousrx2UjZhIc6feJtbcH5EBkkP/t/S0KTyBaM5c2XJ1BMUa+InvYufLD9HR41Ladx04f n8qg== 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 t25si1375907pge.368.2018.02.09.06.33.50; Fri, 09 Feb 2018 06:34:04 -0800 (PST) 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 S1752201AbeBIObW (ORCPT + 99 others); Fri, 9 Feb 2018 09:31:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34564 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751029AbeBIObU (ORCPT ); Fri, 9 Feb 2018 09:31:20 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BDDF5C056870; Fri, 9 Feb 2018 14:31:20 +0000 (UTC) Received: from localhost (ovpn-116-12.gru2.redhat.com [10.97.116.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4FE4960CA2; Fri, 9 Feb 2018 14:31:19 +0000 (UTC) Date: Fri, 9 Feb 2018 12:31:17 -0200 From: Eduardo Habkost To: Wanpeng Li Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , Peter Zijlstra Subject: Re: [PATCH v2] target-i386: add KVM_HINTS_DEDICATED performance hint Message-ID: <20180209143117.GL13981@localhost.localdomain> References: <1518185725-69559-1-git-send-email-wanpengli@tencent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1518185725-69559-1-git-send-email-wanpengli@tencent.com> X-Fnord: you can see the fnord User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Fri, 09 Feb 2018 14:31:20 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 09, 2018 at 06:15:25AM -0800, Wanpeng Li wrote: > From: Wanpeng Li > > Add KVM_HINTS_DEDICATED performance hint, guest checks this feature bit > to determine if they run on dedicated vCPUs, allowing optimizations such > as usage of qspinlocks. > > Cc: Paolo Bonzini > Cc: Radim Krčmář > Cc: Eduardo Habkost > Signed-off-by: Wanpeng Li [...] > + [FEAT_KVM_HINTS] = { > + .feat_names = { > + "hint-dedicated", NULL, NULL, NULL, > + NULL, NULL, NULL, NULL, > + NULL, NULL, NULL, NULL, > + NULL, NULL, NULL, NULL, > + NULL, NULL, NULL, NULL, > + NULL, NULL, NULL, NULL, > + NULL, NULL, NULL, NULL, > + NULL, NULL, NULL, NULL, > + }, > + .cpuid_eax = KVM_CPUID_FEATURES, .cpuid_reg = R_EDX, > + .tcg_features = TCG_KVM_FEATURES, > + }, Do you have a pointer to the KVM patch that adds this bit to Documentation/virtual/kvm/cpuid.txt? I would like to wait until the KVM CPUID docs are updated before applying the patch to QEMU. -- Eduardo