From: Randy Dunlap Subject: Re: KVM guest: fix build with CONFIG_KVM_GUEST=n Date: Tue, 19 Jul 2011 09:57:54 -0700 Message-ID: <20110719095754.83fdb7a7.rdunlap@xenotime.net> References: <20110719154622.GA32249@amt.cnet> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: kvm To: Marcelo Tosatti Return-path: Received: from oproxy5-pub.bluehost.com ([67.222.38.55]:38682 "HELO oproxy5-pub.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750906Ab1GSQ54 (ORCPT ); Tue, 19 Jul 2011 12:57:56 -0400 In-Reply-To: <20110719154622.GA32249@amt.cnet> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, 19 Jul 2011 12:46:22 -0300 Marcelo Tosatti wrote: > > Fix build with CONFIG_KVM_GUEST=n. > > Signed-off-by: Marcelo Tosatti Reported-by: Randy Dunlap Acked-by: Randy Dunlap Thanks. > > diff --git a/arch/x86/include/asm/kvm_para.h b/arch/x86/include/asm/kvm_para.h > index 35d732d..734c376 100644 > --- a/arch/x86/include/asm/kvm_para.h > +++ b/arch/x86/include/asm/kvm_para.h > @@ -94,7 +94,6 @@ struct kvm_vcpu_pv_apf_data { > > extern void kvmclock_init(void); > extern int kvm_register_clock(char *txt); > -extern void kvm_disable_steal_time(void); > > > /* This instruction is vmcall. On non-VT architectures, it will generate a > @@ -193,6 +192,7 @@ void __init kvm_guest_init(void); > void kvm_async_pf_task_wait(u32 token); > void kvm_async_pf_task_wake(u32 token); > u32 kvm_read_and_reset_pf_reason(void); > +extern void kvm_disable_steal_time(void); > #else > #define kvm_guest_init() do { } while (0) > #define kvm_async_pf_task_wait(T) do {} while(0) > @@ -201,6 +201,11 @@ static inline u32 kvm_read_and_reset_pf_reason(void) > { > return 0; > } > + > +static inline void kvm_disable_steal_time(void) > +{ > + return; > +} > #endif > > #endif /* __KERNEL__ */