Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752168AbdHHIbj (ORCPT ); Tue, 8 Aug 2017 04:31:39 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2582 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750818AbdHHIbh (ORCPT ); Tue, 8 Aug 2017 04:31:37 -0400 Message-ID: <598976D3.6090202@huawei.com> Date: Tue, 8 Aug 2017 16:31:15 +0800 From: "Longpeng (Mike)" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: Paolo Bonzini CC: , , , , , , , , , , , , , Subject: Re: [PATCH v2 2/4] KVM: X86: implement the logic for spinlock optimization References: <1502165135-4784-1-git-send-email-longpeng2@huawei.com> <1502165135-4784-3-git-send-email-longpeng2@huawei.com> <58915b27-bbbe-8c2d-43b6-65fa8e1c0c17@redhat.com> In-Reply-To: <58915b27-bbbe-8c2d-43b6-65fa8e1c0c17@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.246.209] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090202.598976E7.004D,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 32403f6a46030c1244bef220005d3673 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 773 Lines: 35 On 2017/8/8 15:30, Paolo Bonzini wrote: > 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. > Thanks, hope you could help me to fix the same problem in patch-1(s390) too. > Paolo > > . > -- Regards, Longpeng(Mike)