Subject: Re: Generic TODR patch
To: Joerg Sonnenberger <joerg@britannica.bec.de>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-xen
Date: 01/08/2008 21:20:25
On Fri, Jan 04, 2008 at 12:39:45AM +0100, Joerg Sonnenberger wrote:
> Hi all,
> can someone please test the attached patch? The  Xen instance should
> still get the correct time on boot and changes of the walltime should be
> written back for Dom 0.

Now that current works again for me, I could test it :)

You also need to patch amd64/include/types.h:
Index: amd64/include/types.h
===================================================================
RCS file: /cvsroot/src/sys/arch/amd64/include/types.h,v
retrieving revision 1.22
diff -u -r1.22 types.h
--- amd64/include/types.h       5 Jan 2008 21:52:02 -0000       1.22
+++ amd64/include/types.h       8 Jan 2008 20:19:22 -0000
@@ -76,9 +76,7 @@
 #ifdef _KERNEL_OPT
 #include "opt_xen.h"
 #define __HAVE_RAS
-#ifndef XEN
 #define __HAVE_GENERIC_TODR
 #endif
-#endif
    
 #endif /* _MACHTYPES_H_ */

With this and your patch, amd64 XEN3_DOM0 and XEN3_DOMU kernels seems to work
fine.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--