All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: mingo@redhat.com, hpa@zytor.com, linux-kernel@vger.kernel.org,
	suresh.b.siddha@intel.com, tglx@linutronix.de,
	sheng@linux.intel.com, avi@redhat.com,
	linux-tip-commits@vger.kernel.org
Subject: Re: [tip:x86/apic] x86/apic: Enable x2APIC without interrupt remapping under KVM
Date: Tue, 4 Aug 2009 19:57:02 +0300	[thread overview]
Message-ID: <20090804165702.GF4764@redhat.com> (raw)
In-Reply-To: <20090804133715.GA29573@elte.hu>

On Tue, Aug 04, 2009 at 03:37:15PM +0200, Ingo Molnar wrote:
> 
> * tip-bot for Gleb Natapov <gleb@redhat.com> wrote:
> 
> > Commit-ID:  ee6a28296de295d62a3d8fad8bab58a8a48d006f
> > Gitweb:     http://git.kernel.org/tip/ee6a28296de295d62a3d8fad8bab58a8a48d006f
> > Author:     Gleb Natapov <gleb@redhat.com>
> > AuthorDate: Mon, 20 Jul 2009 15:24:17 +0300
> > Committer:  Ingo Molnar <mingo@elte.hu>
> > CommitDate: Tue, 4 Aug 2009 14:44:10 +0200
> > 
> > x86/apic: Enable x2APIC without interrupt remapping under KVM
> 
> -tip testing found this build failure:
> 
> arch/x86/kernel/apic/apic.c: In function ‘enable_IR_x2apic’:
> arch/x86/kernel/apic/apic.c:1431: error: ‘x2apic_phys’ undeclared (first use in this function)
> arch/x86/kernel/apic/apic.c:1431: error: (Each undeclared identifier is reported only once
> arch/x86/kernel/apic/apic.c:1431: error: for each function it appears in.)
> 
> with the attached config. (Please send a delta fix)
> 
> 	Ingo

Signed-off-by: Gleb Natapov <gleb@redhat.com>
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h
index bb7d479..ebdbf54 100644
--- a/arch/x86/include/asm/apic.h
+++ b/arch/x86/include/asm/apic.h
@@ -183,6 +183,10 @@ static inline int x2apic_enabled(void)
 }
 
 #define x2apic_supported()	(cpu_has_x2apic)
+static inline void x2apic_force_phys(void)
+{
+	x2apic_phys = 1;
+}
 #else
 static inline void check_x2apic(void)
 {
@@ -194,6 +198,9 @@ static inline int x2apic_enabled(void)
 {
 	return 0;
 }
+static inline void x2apic_force_phys()
+{
+}
 
 #define	x2apic_preenabled 0
 #define	x2apic_supported()	0
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
index 1221f68..de039fc 100644
--- a/arch/x86/kernel/apic/apic.c
+++ b/arch/x86/kernel/apic/apic.c
@@ -1428,7 +1428,7 @@ void __init enable_IR_x2apic(void)
 		 * without IR all CPUs can be addressed by IOAPIC/MSI
 		 * only in physical mode
 		 */
-		x2apic_phys = 1;
+		x2apic_force_phys();
 	}
 
 	x2apic_enabled = 1;
--
			Gleb.

  reply	other threads:[~2009-08-04 16:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-20 12:24 [PATCH] enable x2APIC without interrupt remapping under KVM Gleb Natapov
2009-08-04 13:15 ` [tip:x86/apic] x86/apic: Enable " tip-bot for Gleb Natapov
2009-08-04 13:37   ` Ingo Molnar
2009-08-04 16:57     ` Gleb Natapov [this message]
2009-08-05 12:16       ` Ingo Molnar
2009-08-05 12:19         ` Gleb Natapov
2009-08-05 12:26           ` Gleb Natapov
2009-08-05 10:55 ` tip-bot for Gleb Natapov
2009-08-05 12:30 ` tip-bot for Gleb Natapov

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=20090804165702.GF4764@redhat.com \
    --to=gleb@redhat.com \
    --cc=avi@redhat.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=mingo@redhat.com \
    --cc=sheng@linux.intel.com \
    --cc=suresh.b.siddha@intel.com \
    --cc=tglx@linutronix.de \
    /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.