From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [PATCH 1/1] KVM: add kvm_para_available to asm-generic/kvm_para.h Date: Tue, 4 Jun 2013 12:05:08 +0300 Message-ID: <20130604090508.GL4725@redhat.com> References: <1369222162-4857-1-git-send-email-james.hogan@imgtec.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1369222162-4857-1-git-send-email-james.hogan@imgtec.com> Sender: linux-kernel-owner@vger.kernel.org To: James Hogan Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Marcelo Tosatti , Arnd Bergmann List-Id: linux-arch.vger.kernel.org On Wed, May 22, 2013 at 12:29:22PM +0100, James Hogan wrote: > According to include/uapi/linux/kvm_para.h architectures should define > kvm_para_available, so add an implementation to asm-generic/kvm_para.h > which just returns false. > What is this fixing? The only user of kvm_para_available() that can benefit from this is in sound/pci/intel8x0.c, but I do not see follow up patch to use it there. > Signed-off-by: James Hogan > Cc: Marcelo Tosatti > Cc: Gleb Natapov > Cc: Arnd Bergmann > --- > include/asm-generic/kvm_para.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/include/asm-generic/kvm_para.h b/include/asm-generic/kvm_para.h > index 9d96605..fa25bec 100644 > --- a/include/asm-generic/kvm_para.h > +++ b/include/asm-generic/kvm_para.h > @@ -18,4 +18,9 @@ static inline unsigned int kvm_arch_para_features(void) > return 0; > } > > +static inline bool kvm_para_available(void) > +{ > + return false; > +} > + > #endif > -- > 1.8.1.2 > -- Gleb. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com ([209.132.183.28]:62120 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751813Ab3FDJFV (ORCPT ); Tue, 4 Jun 2013 05:05:21 -0400 Date: Tue, 4 Jun 2013 12:05:08 +0300 From: Gleb Natapov Subject: Re: [PATCH 1/1] KVM: add kvm_para_available to asm-generic/kvm_para.h Message-ID: <20130604090508.GL4725@redhat.com> References: <1369222162-4857-1-git-send-email-james.hogan@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1369222162-4857-1-git-send-email-james.hogan@imgtec.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: James Hogan Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Marcelo Tosatti , Arnd Bergmann Message-ID: <20130604090508.SpfkmMPFCNQYKveMKWSvWzziCF8AOEJW6U8nwHseTrA@z> On Wed, May 22, 2013 at 12:29:22PM +0100, James Hogan wrote: > According to include/uapi/linux/kvm_para.h architectures should define > kvm_para_available, so add an implementation to asm-generic/kvm_para.h > which just returns false. > What is this fixing? The only user of kvm_para_available() that can benefit from this is in sound/pci/intel8x0.c, but I do not see follow up patch to use it there. > Signed-off-by: James Hogan > Cc: Marcelo Tosatti > Cc: Gleb Natapov > Cc: Arnd Bergmann > --- > include/asm-generic/kvm_para.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/include/asm-generic/kvm_para.h b/include/asm-generic/kvm_para.h > index 9d96605..fa25bec 100644 > --- a/include/asm-generic/kvm_para.h > +++ b/include/asm-generic/kvm_para.h > @@ -18,4 +18,9 @@ static inline unsigned int kvm_arch_para_features(void) > return 0; > } > > +static inline bool kvm_para_available(void) > +{ > + return false; > +} > + > #endif > -- > 1.8.1.2 > -- Gleb.