All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juan Quintela <quintela@redhat.com>
To: kvm@vger.kernel.org
Subject: [PATCH 2/2] i8259: kvm_* functions only defined when KVM_CAP_IRQCHIP devined
Date: Sat, 19 Sep 2009 14:59:21 +0200	[thread overview]
Message-ID: <caf7c1f4c653bd07bbb5683f9210a59ebc3f69ba.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/i8259.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/i8259.c b/hw/i8259.c
index aaec6d8..3b98bab 100644
--- a/hw/i8259.c
+++ b/hw/i8259.c
@@ -464,18 +464,18 @@ static uint32_t elcr_ioport_read(void *opaque, uint32_t addr1)
     return s->elcr;
 }

+#ifdef KVM_CAP_IRQCHIP
 static void kvm_kernel_pic_save_to_user(const void *opaque);
 static int kvm_kernel_pic_load_from_user(void *opaque);
+#endif

 static const VMStateDescription vmstate_pic = {
     .name = "i8259",
     .version_id = 1,
 #ifdef KVM_CAP_IRQCHIP
-#ifdef TARGET_I386
     .pre_save = kvm_kernel_pic_save_to_user,
     .post_load = kvm_kernel_pic_load_from_user,
 #endif
-#endif
     .minimum_version_id = 1,
     .minimum_version_id_old = 1,
     .fields      = (VMStateField []) {
-- 
1.6.2.5


  parent 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 ` [PATCH 1/2] apic: Variable only used when CAP_IRQCHIP is defined Juan Quintela
2009-09-19 12:59 ` Juan Quintela [this message]
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=caf7c1f4c653bd07bbb5683f9210a59ebc3f69ba.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.