Le Jeudi 15 Juin 2006 00:24, Alex Williamson a écrit :
> On Wed, 2006-06-14 at 11:48 +0200, Tristan Gingold wrote:
> > Hi,
> >
> > this patch fixes a few issue, so that make debug=y works (in Xen).
> > I think it is expected by Fedora.
> >
> > Tested by booting dom0 (debug=y).
> > Tested by compiling without debug=y.
>
> Hi Tristan,
>
>    This doesn't build for me, there are still things including
> asm/hardirq.h.  Did you need me to make a hardirq.h in linux-null?
Sorry, I forget an hg add.

Here is the updated patch.

Thank you.

Tristan.
# HG changeset patch
# User [EMAIL PROTECTED]
# Node ID 67b9f433900069efbbc9b198158ef0639b41e4b6
# Parent  d33add81096b057f98fa740ab88d6c17426f8d68
Xen can now be compiled with debug=y

Signed-off-by: Tristan Gingold <[EMAIL PROTECTED]>

diff -r d33add81096b -r 67b9f4339000 xen/arch/ia64/vmx/vlsapic.c
--- a/xen/arch/ia64/vmx/vlsapic.c	Wed Jun 14 16:05:45 2006 -0600
+++ b/xen/arch/ia64/vmx/vlsapic.c	Thu Jun 15 08:47:00 2006 +0200
@@ -388,7 +388,7 @@ void vlsapic_reset(VCPU *vcpu)
     vcpu->arch.arch_vmx.vlapic.vcpu = vcpu;
     hvm_vioapic_add_lapic(&vcpu->arch.arch_vmx.vlapic, vcpu);
 #endif
-    DPRINTK("VLSAPIC inservice base=%lp\n", &VLSAPIC_INSVC(vcpu,0) );
+    DPRINTK("VLSAPIC inservice base=%p\n", &VLSAPIC_INSVC(vcpu,0) );
 }
 
 /*
diff -r d33add81096b -r 67b9f4339000 xen/arch/ia64/xen/domain.c
--- a/xen/arch/ia64/xen/domain.c	Wed Jun 14 16:05:45 2006 -0600
+++ b/xen/arch/ia64/xen/domain.c	Thu Jun 15 08:47:00 2006 +0200
@@ -202,7 +202,7 @@ void startup_cpu_idle_loop(void)
 void startup_cpu_idle_loop(void)
 {
 	/* Just some sanity to ensure that the scheduler is set up okay. */
-	ASSERT(current->domain == IDLE_DOMAIN_ID);
+	ASSERT(current->domain->domain_id == IDLE_DOMAIN_ID);
 	raise_softirq(SCHEDULE_SOFTIRQ);
 
 	continue_cpu_idle_loop();
diff -r d33add81096b -r 67b9f4339000 xen/arch/ia64/xen/xenmisc.c
--- a/xen/arch/ia64/xen/xenmisc.c	Wed Jun 14 16:05:45 2006 -0600
+++ b/xen/arch/ia64/xen/xenmisc.c	Thu Jun 15 08:47:00 2006 +0200
@@ -167,6 +167,10 @@ void arch_dump_domain_info(struct domain
 {
 }
 
+void audit_domains_key(unsigned char key)
+{
+}
+
 void panic_domain(struct pt_regs *regs, const char *fmt, ...)
 {
 	va_list args;
diff -r d33add81096b -r 67b9f4339000 xen/include/asm-ia64/linux-xen/linux/hardirq.h
--- a/xen/include/asm-ia64/linux-xen/linux/hardirq.h	Wed Jun 14 16:05:45 2006 -0600
+++ b/xen/include/asm-ia64/linux-xen/linux/hardirq.h	Thu Jun 15 08:47:00 2006 +0200
@@ -110,4 +110,7 @@ static inline void account_system_vtime(
 
 extern void irq_exit(void);
 
+#ifdef XEN
+#define local_softirq_pending()		(local_cpu_data->softirq_pending)
+#endif
 #endif /* LINUX_HARDIRQ_H */
diff -r d33add81096b -r 67b9f4339000 xen/include/asm-ia64/linux/asm/README.origin
--- a/xen/include/asm-ia64/linux/asm/README.origin	Wed Jun 14 16:05:45 2006 -0600
+++ b/xen/include/asm-ia64/linux/asm/README.origin	Thu Jun 15 08:47:00 2006 +0200
@@ -18,7 +18,6 @@ dma.h			-> linux/include/asm-ia64/dma.h
 dma.h			-> linux/include/asm-ia64/dma.h
 fpswa.h			-> linux/include/asm-ia64/fpswa.h
 fpu.h			-> linux/include/asm-ia64/fpu.h
-hardirq.h		-> linux/include/asm-ia64/hardirq.h
 hdreg.h			-> linux/include/asm-ia64/hdreg.h
 hw_irq.h		-> linux/include/asm-ia64/hw_irq.h
 intrinsics.h		-> linux/include/asm-ia64/intrinsics.h
diff -r d33add81096b -r 67b9f4339000 xen/include/asm-ia64/vmx_vpd.h
--- a/xen/include/asm-ia64/vmx_vpd.h	Wed Jun 14 16:05:45 2006 -0600
+++ b/xen/include/asm-ia64/vmx_vpd.h	Thu Jun 15 08:47:00 2006 +0200
@@ -102,7 +102,7 @@ struct arch_vmx_struct {
 #define vmx_schedule_tail(next)         \
     (next)->thread.arch_vmx.arch_vmx_schedule_tail((next))
 
-#define VMX_DOMAIN(d)   d->arch.arch_vmx.flags
+#define VMX_DOMAIN(v)   v->arch.arch_vmx.flags
 
 #define ARCH_VMX_IO_WAIT        3       /* Waiting for I/O completion */
 #define ARCH_VMX_INTR_ASSIST    4       /* Need DM's assist to issue intr */
@@ -111,29 +111,9 @@ struct arch_vmx_struct {
 
 #define VMX_DEBUG 1
 #if VMX_DEBUG
-#define DBG_LEVEL_0     (1 << 0)
-#define DBG_LEVEL_1     (1 << 1)
-#define DBG_LEVEL_2     (1 << 2)
-#define DBG_LEVEL_3     (1 << 3)
-#define DBG_LEVEL_IO    (1 << 4)
-#define DBG_LEVEL_VMMU  (1 << 5)
-#define DBG_LEVEL_IOAPIC 	(1 << 6)
 
 extern unsigned int opt_vmx_debug_level;
-#define VMX_DBG_LOG(level, _f, _a...)           \
-    if ((level) & opt_vmx_debug_level)          \
-        printk("[VMX]" _f "\n", ## _a )
-#else
-#define VMX_DBG_LOG(level, _f, _a...)
 #endif
-
-#define  __vmx_bug(regs)                                        \
-    do {                                                        \
-        printk("__vmx_bug at %s:%d\n", __FILE__, __LINE__);     \
-        show_registers(regs);                                   \
-        domain_crash(current->domain);                          \
-    } while (0)
-
 #endif //__ASSEMBLY__
 
 // VPD field offset
diff -r d33add81096b -r 67b9f4339000 xen/include/asm-ia64/hardirq.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/xen/include/asm-ia64/hardirq.h	Thu Jun 15 08:47:00 2006 +0200
@@ -0,0 +1,8 @@
+#ifndef __IA64__HARDIRQ__H__
+#define __IA64__HARDIRQ__H__
+
+#define __ARCH_IRQ_STAT	1
+#define HARDIRQ_BITS	14
+#include "linux/hardirq.h"
+
+#endif
_______________________________________________
Xen-ia64-devel mailing list
[email protected]
http://lists.xensource.com/xen-ia64-devel

Reply via email to