All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Knorr <kraxel@suse.de>
To: xen-devel@lists.xensource.com
Subject: [patch] fix CONFIG_XEN_SHADOW_MODE ...
Date: Thu, 28 Jul 2005 17:04:59 +0200	[thread overview]
Message-ID: <20050728150459.GA21125@bytesex> (raw)

... 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)

                 reply	other threads:[~2005-07-28 15:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050728150459.GA21125@bytesex \
    --to=kraxel@suse.de \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.