On Mon, 2013-10-07 at 22:23 +0530, Bharat Bhushan wrote:
> kvm_hypercall() have nothing KVM specific, so renamed to epapr_hypercall().
> Also this in moved to arch/powerpc/include/asm/epapr_hcalls.h
> 
> Signed-off-by: Bharat Bhushan <[email protected]>
> ---
> v1->v2
>  - epapr_hypercall() is always defined and returns EV_UNIMPLEMENTED
>    when CONFIG_KVM_GUEST or CONFIG_EPAPR_PARAVIRT not defined.
> 
>  arch/powerpc/include/asm/epapr_hcalls.h |   46 
> +++++++++++++++++++++++++++++++
>  arch/powerpc/include/asm/kvm_para.h     |   23 ++++-----------
>  arch/powerpc/kernel/kvm.c               |   41 +--------------------------
>  3 files changed, 54 insertions(+), 56 deletions(-)
> 
> diff --git a/arch/powerpc/include/asm/epapr_hcalls.h 
> b/arch/powerpc/include/asm/epapr_hcalls.h
> index d3d6342..6b8e007 100644
> --- a/arch/powerpc/include/asm/epapr_hcalls.h
> +++ b/arch/powerpc/include/asm/epapr_hcalls.h
> @@ -454,5 +454,51 @@ static inline unsigned int ev_idle(void)
>  
>       return r3;
>  }
> +
> +#if defined(CONFIG_KVM_GUEST) || defined(CONFIG_EPAPR_PARAVIRT)

CONFIG_KVM_GUEST implies CONFIG_EPAPR_PARAVIRT, so you only need to
check for the latter.

-Scott



--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to