From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Longpeng (Mike)" Subject: A problem about optimize the kvm_vcpu_on_spin Date: Mon, 14 Nov 2016 09:44:57 +0800 Message-ID: <58291719.4020401@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Cc: "Wubin (H)" , zhaoshenglong , kvm To: Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= Return-path: Received: from szxga02-in.huawei.com ([119.145.14.65]:18739 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750908AbcKNBpJ (ORCPT ); Sun, 13 Nov 2016 20:45:09 -0500 Sender: kvm-owner@vger.kernel.org List-ID: Hi Paolo and Radim, 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 ? -- Regards, Longpeng(Mike)