virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [patch] asm/i386/kernel/paravirt.c buildfix
@ 2007-01-08 15:28 Gers Knorr
  2007-01-08 20:02 ` Chris Wright
  2007-01-08 23:18 ` Rusty Russell
  0 siblings, 2 replies; 4+ messages in thread
From: Gers Knorr @ 2007-01-08 15:28 UTC (permalink / raw)
  To: virtualization

asm/i386/kernel/paravirt.c buildfix.

drop apic_* duplicates which are defined in asm/paravirt.h

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
---
 arch/i386/kernel/paravirt.c |   14 --------------
 1 file changed, 14 deletions(-)

Index: paravirt-2.6.19-hg686/arch/i386/kernel/paravirt.c
===================================================================
--- paravirt-2.6.19-hg686.orig/arch/i386/kernel/paravirt.c
+++ paravirt-2.6.19-hg686/arch/i386/kernel/paravirt.c
@@ -693,20 +693,6 @@ void halt(void)
 }
 EXPORT_SYMBOL_GPL(halt);
 
-#ifdef CONFIG_X86_LOCAL_APIC
-void apic_write(unsigned long reg, unsigned long v)
-{
-	paravirt_ops.apic_write(reg,v);
-}
-EXPORT_SYMBOL_GPL(apic_write);
-
-unsigned long apic_read(unsigned long reg)
-{
-	return paravirt_ops.apic_read(reg);
-}
-EXPORT_SYMBOL_GPL(apic_read);
-#endif
-
 void __cpuid(unsigned int *eax, unsigned int *ebx,
 	     unsigned int *ecx, unsigned int *edx)
 {

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch] asm/i386/kernel/paravirt.c buildfix
  2007-01-08 15:28 [patch] asm/i386/kernel/paravirt.c buildfix Gers Knorr
@ 2007-01-08 20:02 ` Chris Wright
  2007-01-08 23:05   ` Chris Wright
  2007-01-08 23:18 ` Rusty Russell
  1 sibling, 1 reply; 4+ messages in thread
From: Chris Wright @ 2007-01-08 20:02 UTC (permalink / raw)
  To: Gers Knorr; +Cc: virtualization

* Gers Knorr (kraxel@suse.de) wrote:
> asm/i386/kernel/paravirt.c buildfix.
> 
> drop apic_* duplicates which are defined in asm/paravirt.h

Thanks, but did you build test w/ smth like allmodconfig (paravirt_ops
not being exported anymore means those inline wrappers can easily break)?

thanks,
-chris

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch] asm/i386/kernel/paravirt.c buildfix
  2007-01-08 20:02 ` Chris Wright
@ 2007-01-08 23:05   ` Chris Wright
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Wright @ 2007-01-08 23:05 UTC (permalink / raw)
  To: Gers Knorr; +Cc: virtualization

* Chris Wright (chrisw@sous-sol.org) wrote:
> * Gers Knorr (kraxel@suse.de) wrote:
> > asm/i386/kernel/paravirt.c buildfix.
> > 
> > drop apic_* duplicates which are defined in asm/paravirt.h
> 
> Thanks, but did you build test w/ smth like allmodconfig (paravirt_ops
> not being exported anymore means those inline wrappers can easily break)?

OK, after some mucking about here's one that removes the issues with
with pv allmodconfig.

thanks,
-chris
--

diff -r d1e90752bb71 include/asm-i386/paravirt.h
--- a/include/asm-i386/paravirt.h	Mon Jan 08 14:32:00 2007 -0500
+++ b/include/asm-i386/paravirt.h	Mon Jan 08 17:32:12 2007 -0500
@@ -367,36 +367,6 @@ void __cpuid(unsigned int *eax, unsigned
 #define pmd_val(x)	paravirt_ops.pmd_val(x)
 #endif
 
-/* The paravirtualized I/O functions */
-static inline void slow_down_io(void) {
-	paravirt_ops.io_delay();
-#ifdef REALLY_SLOW_IO
-	paravirt_ops.io_delay();
-	paravirt_ops.io_delay();
-	paravirt_ops.io_delay();
-#endif
-}
-
-#ifdef CONFIG_X86_LOCAL_APIC
-/*
- * Basic functions accessing APICs.
- */
-static inline void apic_write(unsigned long reg, unsigned long v)
-{
-	paravirt_ops.apic_write(reg,v);
-}
-
-static inline void apic_write_atomic(unsigned long reg, unsigned long v)
-{
-	paravirt_ops.apic_write_atomic(reg,v);
-}
-
-static inline unsigned long apic_read(unsigned long reg)
-{
-	return paravirt_ops.apic_read(reg);
-}
-#endif
-
 static inline void paravirt_pagetable_setup_start(pgd_t *base)
 {
 	if (paravirt_ops.pagetable_setup_start)
@@ -495,13 +465,33 @@ void paravirt_irq_disable(void);
 void paravirt_irq_disable(void);
 void paravirt_irq_enable(void);
 void paravirt_const_udelay(unsigned long loops);
-void paravirt_io_delay(void);
 u64 paravirt_read_msr(unsigned int msr, int *err);
 int paravirt_write_msr(unsigned int msr, u64 val);
 u64 paravirt_read_tsc(void);
 void raw_safe_halt(void);
 void halt(void);
 void wbinvd(void);
+void paravirt_io_delay(void);
+static inline void slow_down_io(void) {
+	paravirt_io_delay();
+#ifdef REALLY_SLOW_IO
+	paravirt_io_delay();
+	paravirt_io_delay();
+	paravirt_io_delay();
+#endif
+}
+
+#ifdef CONFIG_X86_LOCAL_APIC
+/*
+ * Basic functions accessing APICs.
+ */
+void apic_write(unsigned long reg, unsigned long v);
+static inline void apic_write_atomic(unsigned long reg, unsigned long v)
+{
+	paravirt_ops.apic_write_atomic(reg,v);
+}
+unsigned long apic_read(unsigned long reg);
+#endif
 
 /* These will be unexported once raid6 is fixed... */
 void clts(void);

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch] asm/i386/kernel/paravirt.c buildfix
  2007-01-08 15:28 [patch] asm/i386/kernel/paravirt.c buildfix Gers Knorr
  2007-01-08 20:02 ` Chris Wright
@ 2007-01-08 23:18 ` Rusty Russell
  1 sibling, 0 replies; 4+ messages in thread
From: Rusty Russell @ 2007-01-08 23:18 UTC (permalink / raw)
  To: Gers Knorr, Chris Wright; +Cc: virtualization

On Mon, 2007-01-08 at 16:28 +0100, Gers Knorr wrote:
> asm/i386/kernel/paravirt.c buildfix.
> 
> drop apic_* duplicates which are defined in asm/paravirt.h

How did this segment get dropped from the patch I sent?

The correct answer is to remove the header versions, as Chris did.

Thanks!
Rusty.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-01-08 23:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-08 15:28 [patch] asm/i386/kernel/paravirt.c buildfix Gers Knorr
2007-01-08 20:02 ` Chris Wright
2007-01-08 23:05   ` Chris Wright
2007-01-08 23:18 ` Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).