WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [patch] fix CONFIG_XEN_SHADOW_MODE ...
From: Gerd Knorr <kraxel@xxxxxxx>
Date: Thu, 28 Jul 2005 17:04:59 +0200
Delivery-date: Thu, 28 Jul 2005 15:08:31 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
... 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [patch] fix CONFIG_XEN_SHADOW_MODE ..., Gerd Knorr <=