qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] KVM: Fix compilation on non-x86


From: Jan Kiszka
Subject: Re: [Qemu-devel] [PATCH] KVM: Fix compilation on non-x86
Date: Wed, 25 Jan 2012 18:40:56 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

On 2012-01-25 18:33, Alexander Graf wrote:
> Commit 84b058d broke compilation for KVM on non-x86 targets, which
> don't have KVM_CAP_IRQ_ROUTING defined.
> 
> Fix by not using the unavailable constant when it's not around.
> 
> Signed-off-by: Alexander Graf <address@hidden>
> ---
>  kvm-all.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/kvm-all.c b/kvm-all.c
> index e411d3c..831f39a 100644
> --- a/kvm-all.c
> +++ b/kvm-all.c
> @@ -1305,7 +1305,11 @@ int kvm_has_many_ioeventfds(void)
>  
>  int kvm_has_gsi_routing(void)
>  {
> +#ifdef KVM_CAP_IRQ_ROUTING
>      return kvm_check_extension(kvm_state, KVM_CAP_IRQ_ROUTING);
> +#else
> +    return false;
> +#endif
>  }
>  
>  int kvm_allows_irq0_override(void)

Yep, thanks.

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux



reply via email to

[Prev in Thread] Current Thread [Next in Thread]