From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Subject: Re: [PATCH 1/2] kvm/powerpc: rename kvm_hypercall() to epapr_hypercall() Date: Wed, 2 Oct 2013 12:42:52 -0500 Message-ID: <1380735772.12932.24.camel@snotra.buserror.net> References: <1379913839-11347-1-git-send-email-Bharat.Bhushan@freescale.com> <1379913839-11347-2-git-send-email-Bharat.Bhushan@freescale.com> <90F2E123-022D-4F4E-A350-44CA1051B484@suse.de> <1380732029.12932.3.camel@snotra.buserror.net> <684A050C-5885-4678-8C6A-7E57001DD341@suse.de> <1380733492.12932.17.camel@snotra.buserror.net> <24087AF3-C8BB-4D5C-8A61-9E2AAA13511B@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Bharat Bhushan , , , Bharat Bhushan To: Alexander Graf Return-path: Received: from ch1ehsobe001.messaging.microsoft.com ([216.32.181.181]:46796 "EHLO ch1outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753851Ab3JBRnD (ORCPT ); Wed, 2 Oct 2013 13:43:03 -0400 In-Reply-To: <24087AF3-C8BB-4D5C-8A61-9E2AAA13511B@suse.de> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, 2013-10-02 at 19:17 +0200, Alexander Graf wrote: > On 02.10.2013, at 19:04, Scott Wood wrote: > > > On Wed, 2013-10-02 at 18:53 +0200, Alexander Graf wrote: > >> On 02.10.2013, at 18:40, Scott Wood wrote: > >> > >>> On Wed, 2013-10-02 at 16:19 +0200, Alexander Graf wrote: > >>>> Won't this break when CONFIG_EPAPR_PARAVIRT=n? We wouldn't have epapr_hcalls.S compiled into the code base then and the bl above would reference an unknown function. > >>> > >>> KVM_GUEST selects EPAPR_PARAVIRT. > >> > >> But you can not select KVM_GUEST and still call these inline functions, no? > > > > No. > > > >> Like kvm_arch_para_features(). > > > > Where does that get called without KVM_GUEST? > > > > How would that work currently, with the call to kvm_hypercall() in > > arch/powerpc/kernel/kvm.c (which calls epapr_hypercall, BTW)? > > It wouldn't ever get called because kvm_hypercall() ends up always returning EV_UNIMPLEMENTED when #ifndef CONFIG_KVM_GUEST. OK, so the objection is to removing that stub? Where would we actually want to call this without knowing that KVM_GUEST or EPAPR_PARAVIRT are enabled? -SCott