From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751265AbdKJITR (ORCPT ); Fri, 10 Nov 2017 03:19:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43192 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750793AbdKJITP (ORCPT ); Fri, 10 Nov 2017 03:19:15 -0500 Subject: Re: [PATCHv3 1/1] locking/qspinlock/x86: Avoid test-and-set when PV_DEDICATED is set To: Wanpeng Li , Radim Krcmar Cc: Eduardo Valentin , Matt Wilson , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , the arch/x86 maintainers , Peter Zijlstra , Waiman Long , kvm , linux-doc@vger.kernel.org, "linux-kernel@vger.kernel.org" , "Jan H . Schoenherr" , Anthony Liguori References: <1509999980-10828-1-git-send-email-eduval@amazon.com> <20171109160029.GD20859@flask> From: Paolo Bonzini Message-ID: Date: Fri, 10 Nov 2017 09:19:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Fri, 10 Nov 2017 08:19:15 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/11/2017 07:07, Wanpeng Li wrote: >>> You should also add a cpuid flag in kvm part. >> It is better without that. The flag has no dependency on KVM (kernel >> hypervisor) code. > Do you mean -cpu host, +xxxx,I think it will result in "warning: host > doesn't support requested feature: CPUID.40000001H:eax.XXXXXX" There are some exceptions where QEMU overrides the values of KVM_GET_SUPPORTED_CPUID. I think it is better to add the flag to KVM *and* to QEMU's override in kvm_arch_get_supported_cpuid (target/i386/kvm.c). Paolo