[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [patch] fix CONFIG_XEN_SHADOW_MODE ...


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Gerd Knorr <kraxel@xxxxxxx>
  • Date: Thu, 28 Jul 2005 17:04:59 +0200
  • Delivery-date: Thu, 28 Jul 2005 15:08:31 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

... so it builds again and also add a note to the xen elf header
that this kernel should be booted in shadow-translated mode.

  Gerd

--- linux-2.6.12-xen0/arch/xen/i386/kernel/head.S.shadow        2005-07-28 
11:31:37.000000000 +0200
+++ linux-2.6.12-xen0/arch/xen/i386/kernel/head.S       2005-07-28 
16:37:14.000000000 +0200
@@ -10,6 +10,9 @@
 #else
        .ascii  ",PAE=no"
 #endif
+#ifdef CONFIG_XEN_SHADOW_MODE
+       .ascii  ",SHADOW=translate"
+#endif
        .ascii  ",LOADER=generic"
        .byte   0
 
--- linux-2.6.12-xen0/include/asm-xen/hypervisor.h.shadow       2005-07-28 
11:31:37.000000000 +0200
+++ linux-2.6.12-xen0/include/asm-xen/hypervisor.h      2005-07-28 
16:30:52.000000000 +0200
@@ -97,8 +97,8 @@
 void xen_pte_pin(unsigned long ptr);
 void xen_pte_unpin(unsigned long ptr);
 #else
-#define xen_l1_entry_update(_p, _v) set_pte((_p), (pte_t){(_v)})
-#define xen_l2_entry_update(_p, _v) set_pgd((_p), (pgd_t){(_v)})
+#define xen_l1_entry_update(_p, _v) set_pte((_p), (_v))
+#define xen_l2_entry_update(_p, _v) set_pgd((_p), (_v))
 #define xen_pgd_pin(_p)   ((void)0)
 #define xen_pgd_unpin(_p) ((void)0)
 #define xen_pte_pin(_p)   ((void)0)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.