Linux virtualization list
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@xensource.com>
To: Jeremy Fitzhardinge <jeremy@goop.org>,
	Chris Wright <chrisw@sous-sol.org>
Cc: Virtualization Mailing List <virtualization@lists.osdl.org>
Subject: [PATCH 3/5] XEN: Update ELF notes to xen-head.S to the new interface
Date: Wed, 23 Aug 2006 16:09:39 +0100	[thread overview]
Message-ID: <1156345779.12949.125.camel@localhost.localdomain> (raw)

Again pretty self explanatory. Should be merged into 024-head.patch

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>

diff -r bc6940cd08ed arch/i386/paravirt-xen/xen-head.S
--- a/arch/i386/paravirt-xen/xen-head.S	Wed Aug 23 15:12:48 2006 +0100
+++ b/arch/i386/paravirt-xen/xen-head.S	Wed Aug 23 15:14:47 2006 +0100
@@ -2,6 +2,7 @@
 	place in head.S */
 
 #include <linux/elfnote.h>
+#include <xen/interface/elfnote.h>
 	
 #define VIRT_ENTRY_OFFSET	0x1000
 .org VIRT_ENTRY_OFFSET
@@ -56,19 +57,16 @@ ENTRY(hypercall_page)
 	.byte	0
 .previous
 
-#define XEN_INFO	0	/* name=value pair */
-#define XEN_ENTRY	1	/* entrypoint */
-#define XEN_HYPERCALL	2	/* hypercall page address (not pfn)	 */
-	
-	ELFNOTE "Xen", XEN_INFO,	.asciz "GUEST_OS=linux"
-	ELFNOTE "Xen", XEN_INFO,	.asciz "GUEST_VER=2.6"
-	ELFNOTE "Xen", XEN_INFO,	.asciz "XEN_VER=xen-3.0"
-	ELFNOTE "Xen", XEN_ENTRY,	.long startup_xen
-	ELFNOTE "Xen", XEN_HYPERCALL,	.long hypercall_page
-	ELFNOTE "Xen", XEN_INFO,	.asciz "FEATURES=!writable_page_tables|!auto_translated_physmap"
+	ELFNOTE(Xen, XEN_ELFNOTE_GUEST_OS,       .asciz, "linux")
+	ELFNOTE(Xen, XEN_ELFNOTE_GUEST_VERSION,  .asciz, "2.6")
+	ELFNOTE(Xen, XEN_ELFNOTE_XEN_VERSION,    .asciz, "xen-3.0")
+	ELFNOTE(Xen, XEN_ELFNOTE_VIRT_BASE,      .long,  __PAGE_OFFSET)
+	ELFNOTE(Xen, XEN_ELFNOTE_ENTRY,          .long,  startup_xen)
+	ELFNOTE(Xen, XEN_ELFNOTE_HYPERCALL_PAGE, .long,  hypercall_page)
+	ELFNOTE(Xen, XEN_ELFNOTE_FEATURES,       .asciz, "!writable_page_tables|!auto_translated_physmap")
 #ifdef CONFIG_X86_PAE
-	ELFNOTE "Xen", XEN_INFO,	.asciz "PAE=yes"
+	ELFNOTE(Xen, XEN_ELFNOTE_PAE_MODE,       .asciz, "yes")
 #else
-	ELFNOTE "Xen", XEN_INFO,	.asciz "PAE=no"
+	ELFNOTE(Xen, XEN_ELFNOTE_PAE_MODE,       .asciz, "no")
 #endif
-	ELFNOTE "Xen", XEN_INFO,	.asciz "LOADER=generic"
+	ELFNOTE(Xen, XEN_ELFNOTE_LOADER,         .asciz, "generic")

                 reply	other threads:[~2006-08-23 15:09 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=1156345779.12949.125.camel@localhost.localdomain \
    --to=ian.campbell@xensource.com \
    --cc=chrisw@sous-sol.org \
    --cc=jeremy@goop.org \
    --cc=virtualization@lists.osdl.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox