All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juan Quintela <quintela@redhat.com>
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	[thread overview]
Message-ID: <2ee6f55c189d839d392d0045dcadcc54180e6705.1253364915.git.quintela@redhat.com> (raw)
In-Reply-To: <cover.1253364915.git.quintela@redhat.com>
In-Reply-To: <cover.1253364915.git.quintela@redhat.com>


Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 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);
     }
-- 
1.6.2.5


  reply	other threads:[~2009-09-19 12:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-19 12:59 [PATCH 0/2] make --disable-kvm to compile again Juan Quintela
2009-09-19 12:59 ` Juan Quintela [this message]
2009-09-19 12:59 ` [PATCH 2/2] i8259: kvm_* functions only defined when KVM_CAP_IRQCHIP devined Juan Quintela
2009-09-19 13:40 ` [PATCH 0/2] make --disable-kvm to compile again Jan Kiszka
2009-09-21  9:23 ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2ee6f55c189d839d392d0045dcadcc54180e6705.1253364915.git.quintela@redhat.com \
    --to=quintela@redhat.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.