From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Longpeng (Mike)" Subject: Re: A problem about optimize the kvm_vcpu_on_spin Date: Mon, 14 Nov 2016 17:30:39 +0800 Message-ID: <5829843F.3020007@huawei.com> References: <58291719.4020401@huawei.com> <822509139.12568024.1479113775757.JavaMail.zimbra@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Cc: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , "Wubin (H)" , zhaoshenglong , kvm To: Paolo Bonzini Return-path: Received: from szxga03-in.huawei.com ([119.145.14.66]:61782 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752149AbcKNJbX (ORCPT ); Mon, 14 Nov 2016 04:31:23 -0500 In-Reply-To: <822509139.12568024.1479113775757.JavaMail.zimbra@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 2016/11/14 16:56, Paolo Bonzini wrote: > >> Intel sdm vol3 ch-25.1.3 (p-1074) said: The “PAUSE-loop exiting” VM-execution >> control is ignored if CPL > 0. >> >> Does this means that only guest's kernelspace spinlock could causes VMexit >> due to "pause-loop exiting" ? >> >> If so, I think the kvm_vcpu_on_spin should selects a (currently not >> running) vcpu which cpl=0 to boost, because the cpl>0 vcpus are not >> the lock-holder. (suppose the guest isn't RT-linux) >> >> What about your opinion ? > > Yes, that's a good idea! > > Paolo Thanks, I will send a RFC this week. > > . > -- Regards, Longpeng(Mike)