qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 5/6] merge pc_piix.c to pc.c


From: Avi Kivity
Subject: Re: [Qemu-devel] [PATCH 5/6] merge pc_piix.c to pc.c
Date: Mon, 26 Mar 2012 14:42:53 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120316 Thunderbird/11.0

On 03/26/2012 04:06 AM, Wanpeng Li wrote:
> From: Anthony Liguori <address@hidden>
>
> @@ -889,7 +900,7 @@ static DeviceState *apic_init(void *env, uint8_t apic_id)
>      DeviceState *dev;
>      static int apic_mapped;
>  
> -    if (kvm_irqchip_in_kernel()) {
> +    if (kvm_enabled() && kvm_irqchip_in_kernel()) {
>          dev = qdev_create(NULL, "kvm-apic");
>      } else {
>          dev = qdev_create(NULL, "apic");
> @@ -908,7 +919,7 @@ static DeviceState *apic_init(void *env, uint8_t apic_id)
>      }
>  
>      /* KVM does not support MSI yet. */
> -    if (!kvm_irqchip_in_kernel()) {
> +    if (!kvm_enabled() || !kvm_irqchip_in_kernel()) {
>          msi_supported = true;

Why these changes?

-- 
error compiling committee.c: too many arguments to function




reply via email to

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