From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cornelia Huck Subject: Re: [PATCH v3] KVM: remove #ifndef CONFIG_S390 around kvm_vcpu_wake_up Date: Wed, 3 May 2017 19:04:24 +0200 Message-ID: <20170503190424.4f4e62db.cornelia.huck@de.ibm.com> References: <20170426203227.12321-4-rkrcmar@redhat.com> <20170503161634.6056-1-rkrcmar@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Christoffer Dall , Andrew Jones , Marc Zyngier , Paolo Bonzini , Christian Borntraeger , James Hogan , Paul Mackerras To: Radim =?UTF-8?B?S3LEjW3DocWZ?= Return-path: Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:43270 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752357AbdECREc (ORCPT ); Wed, 3 May 2017 13:04:32 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v43H3oMh138370 for ; Wed, 3 May 2017 13:04:32 -0400 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0a-001b2d01.pphosted.com with ESMTP id 2a7k4agg8a-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 03 May 2017 13:04:31 -0400 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 3 May 2017 18:04:29 +0100 In-Reply-To: <20170503161634.6056-1-rkrcmar@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, 3 May 2017 18:16:34 +0200 Radim Krčmář wrote: > The #ifndef was protecting a missing halt_wakeup stat, but that is no > longer necessary. The #ifndef around kvm_vcpu_kick is still necessary > as s390 does not export smp_send_reschedule. It feels like smp_send_reschedule() should be exported everywhere if kvm wants to use it... but this certainly works as well. Acked-by: Cornelia Huck > > Signed-off-by: Radim Krčmář > --- > v3: kept kvm_vcpu_kick() under the #ifndef and compile tested with kvm > configured as module too ... > > virt/kvm/kvm_main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c > index 357e67cba32e..7112889e5e1a 100644 > --- a/virt/kvm/kvm_main.c > +++ b/virt/kvm/kvm_main.c > @@ -2195,7 +2195,6 @@ void kvm_vcpu_block(struct kvm_vcpu *vcpu) > } > EXPORT_SYMBOL_GPL(kvm_vcpu_block); > > -#ifndef CONFIG_S390 > void kvm_vcpu_wake_up(struct kvm_vcpu *vcpu) > { > struct swait_queue_head *wqp; > @@ -2209,6 +2208,7 @@ void kvm_vcpu_wake_up(struct kvm_vcpu *vcpu) > } > EXPORT_SYMBOL_GPL(kvm_vcpu_wake_up); > > +#ifndef CONFIG_S390 > /* > * Kick a sleeping VCPU, or a guest VCPU in guest mode, into host kernel mode. > */