From patchwork Sat Sep 19 12:59:20 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 48756 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8JCxYoD002723 for ; Sat, 19 Sep 2009 12:59:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753208AbZISM72 (ORCPT ); Sat, 19 Sep 2009 08:59:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753086AbZISM72 (ORCPT ); Sat, 19 Sep 2009 08:59:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1025 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752200AbZISM70 (ORCPT ); Sat, 19 Sep 2009 08:59:26 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8JCxUKb006638 for ; Sat, 19 Sep 2009 08:59:30 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8JCxPIx019589; Sat, 19 Sep 2009 08:59:27 -0400 From: Juan Quintela To: kvm@vger.kernel.org Subject: [PATCH 1/2] apic: Variable only used when CAP_IRQCHIP is defined Date: Sat, 19 Sep 2009 14:59:20 +0200 Message-Id: <2ee6f55c189d839d392d0045dcadcc54180e6705.1253364915.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Juan Quintela --- hw/apic.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/apic.c b/hw/apic.c index d92d86c..908d293 100644 --- a/hw/apic.c +++ b/hw/apic.c @@ -967,9 +967,9 @@ void qemu_kvm_load_lapic(CPUState *env) static void apic_pre_save(const void *opaque) { +#ifdef KVM_CAP_IRQCHIP APICState *s = (void *)opaque; -#ifdef KVM_CAP_IRQCHIP if (kvm_enabled() && qemu_kvm_irqchip_in_kernel()) { kvm_kernel_lapic_save_to_user(s); } @@ -978,9 +978,9 @@ static void apic_pre_save(const void *opaque) static int apic_post_load(void *opaque) { +#ifdef KVM_CAP_IRQCHIP APICState *s = opaque; -#ifdef KVM_CAP_IRQCHIP if (kvm_enabled() && qemu_kvm_irqchip_in_kernel()) { kvm_kernel_lapic_load_from_user(s); }