From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] Move kvm_get_pit to libkvm.c common code Date: Sun, 23 Mar 2008 10:44:08 +0200 Message-ID: <47E61858.3000008@qumranet.com> References: <1206131180.3136.46.camel@basalt> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel@lists.sourceforge.net, kvm-ppc-devel@lists.sourceforge.net, Jerone Young To: Hollis Blanchard Return-path: In-Reply-To: <1206131180.3136.46.camel@basalt> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org Hollis Blanchard wrote: > > Don't compile kvm_*_pit() on architectures whose currently supported > platforms do not contain a PIT. > > Signed-off-by: Hollis Blanchard > > diff --git a/libkvm/libkvm.h b/libkvm/libkvm.h > --- a/libkvm/libkvm.h > +++ b/libkvm/libkvm.h > @@ -539,6 +539,7 @@ int kvm_pit_in_kernel(kvm_context_t kvm) > > #ifdef KVM_CAP_PIT > > +#if defined(__i386__) || defined(__x86_64__) || defined(__ia64__) > /*! > * \brief Get in kernel PIT of the virtual domain > * > @@ -562,6 +563,8 @@ int kvm_set_pit(kvm_context_t kvm, struc > > #endif > > +#endif > + > #ifdef KVM_CAP_VAPIC ia64 doesn't have an in-kernel pit? (yet?) -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/