From: Sheng Yang <sheng.yang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [PATCH] KVM: Fix compile error caused by no defined CONFIG_X86
Date: Tue, 27 Nov 2007 14:43:17 +0800 [thread overview]
Message-ID: <200711271443.18291.sheng.yang@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 995 bytes --]
From c050ed6225f314b86a0dabf11c7f677de097c39f Mon Sep 17 00:00:00 2001
From: Sheng Yang <sheng.yang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Date: Tue, 27 Nov 2007 14:41:06 +0800
Subject: [PATCH] KVM: Fix compile error caused by no defined CONFIG_X86
For <linux/kvm.h> was included by qemu, which didn't define CONFIG_X86,
kvm compiles fail on x86 machines.
Using __i386__ and __x86_64__ instead.
Signed-off-by: Sheng Yang <sheng.yang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
include/linux/kvm.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index f0bebd6..9504ec8 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -51,7 +51,7 @@ struct kvm_irqchip {
__u32 pad;
union {
char dummy[512]; /* reserving space */
-#ifdef CONFIG_X86
+#if defined(__i386__) || defined(__x86_64__)
struct kvm_pic_state pic;
struct kvm_ioapic_state ioapic;
#endif
--
1.5.3.4
[-- Attachment #2: 0001-KVM-Fix-compile-error-caused-by-no-defined-CONFIG_X.patch --]
[-- Type: text/x-diff, Size: 995 bytes --]
From c050ed6225f314b86a0dabf11c7f677de097c39f Mon Sep 17 00:00:00 2001
From: Sheng Yang <sheng.yang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Date: Tue, 27 Nov 2007 14:41:06 +0800
Subject: [PATCH] KVM: Fix compile error caused by no defined CONFIG_X86
For <linux/kvm.h> was included by qemu, which didn't define CONFIG_X86,
kvm compiles fail on x86 machines.
Using __i386__ and __x86_64__ instead.
Signed-off-by: Sheng Yang <sheng.yang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
include/linux/kvm.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index f0bebd6..9504ec8 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -51,7 +51,7 @@ struct kvm_irqchip {
__u32 pad;
union {
char dummy[512]; /* reserving space */
-#ifdef CONFIG_X86
+#if defined(__i386__) || defined(__x86_64__)
struct kvm_pic_state pic;
struct kvm_ioapic_state ioapic;
#endif
--
1.5.3.4
[-- Attachment #3: Type: text/plain, Size: 228 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
[-- Attachment #4: Type: text/plain, Size: 186 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel
next reply other threads:[~2007-11-27 6:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-27 6:43 Sheng Yang [this message]
[not found] ` <200711271443.18291.sheng.yang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2007-11-27 8:38 ` [PATCH] KVM: Fix compile error caused by no defined CONFIG_X86 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=200711271443.18291.sheng.yang@intel.com \
--to=sheng.yang-ral2jqcrhueavxtiumwx3w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox