From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752023AbdHHHaX (ORCPT ); Tue, 8 Aug 2017 03:30:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58356 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751962AbdHHHaV (ORCPT ); Tue, 8 Aug 2017 03:30:21 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 6771461BBB Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=pbonzini@redhat.com Subject: Re: [PATCH v2 2/4] KVM: X86: implement the logic for spinlock optimization To: "Longpeng(Mike)" , rkrcmar@redhat.com Cc: agraf@suse.com, borntraeger@de.ibm.com, cohuck@redhat.com, christoffer.dall@linaro.org, marc.zyngier@arm.com, james.hogan@imgtec.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, weidong.huang@huawei.com, arei.gonglei@huawei.com, wangxinxin.wang@huawei.com, longpeng.mike@gmail.com, david@redhat.com References: <1502165135-4784-1-git-send-email-longpeng2@huawei.com> <1502165135-4784-3-git-send-email-longpeng2@huawei.com> From: Paolo Bonzini Message-ID: <58915b27-bbbe-8c2d-43b6-65fa8e1c0c17@redhat.com> Date: Tue, 8 Aug 2017 09:30:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1502165135-4784-3-git-send-email-longpeng2@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 08 Aug 2017 07:30:21 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/08/2017 06:05, Longpeng(Mike) wrote: > diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c > index cd0e6e6..dec5e8a 100644 > --- a/arch/x86/kvm/hyperv.c > +++ b/arch/x86/kvm/hyperv.c > @@ -1268,7 +1268,7 @@ int kvm_hv_hypercall(struct kvm_vcpu *vcpu) > > switch (code) { > case HVCALL_NOTIFY_LONG_SPIN_WAIT: > - kvm_vcpu_on_spin(vcpu, kvm_arch_vcpu_in_kernel(vcpu)); > + kvm_vcpu_on_spin(vcpu, kvm_x86_ops->spin_in_kernel(vcpu)); > break; > case HVCALL_POST_MESSAGE: > case HVCALL_SIGNAL_EVENT: This can be true as well. I can change this on commit. Paolo