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-changelog

[Xen-changelog] [xen-unstable] [TOOLS] Add support for XEN_ELFNOTE_L1_MF

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [TOOLS] Add support for XEN_ELFNOTE_L1_MFN_VALID to readnotes.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 28 Feb 2007 12:20:16 -0800
Delivery-date: Wed, 28 Feb 2007 12:21:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxxxxx>
# Date 1172590748 0
# Node ID 2cc8c117b7b853d14335bba7af2708bdddacca0c
# Parent  dd8c887444330c8ea89bcb8ca1a91df9d74b024a
[TOOLS] Add support for XEN_ELFNOTE_L1_MFN_VALID to readnotes.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxxxxx>
---
 tools/xcutils/readnotes.c |   27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletion(-)

diff -r dd8c88744433 -r 2cc8c117b7b8 tools/xcutils/readnotes.c
--- a/tools/xcutils/readnotes.c Tue Feb 27 14:33:07 2007 +0000
+++ b/tools/xcutils/readnotes.c Tue Feb 27 15:39:08 2007 +0000
@@ -31,6 +31,28 @@ static void print_numeric_note(const cha
               prefix, 2+2*descsz, value, descsz);
 }
 
+static void print_l1_mfn_valid_note(const char *prefix, struct elf_binary *elf,
+                                   const elf_note *note)
+{
+       int descsz = elf_uval(elf, note, descsz);
+       const uint32_t *desc32 = elf_note_desc(elf, note);
+       const uint64_t *desc64 = elf_note_desc(elf, note);
+
+       /* XXX should be able to cope with a list of values. */
+       switch ( descsz / 2 )
+       {
+       case 8:
+               printf("%s: mask=%#"PRIx64" value=%#"PRIx64"\n", prefix,
+                      desc64[0], desc64[1]);
+               break;
+       case 4:
+               printf("%s: mask=%#"PRIx32" value=%#"PRIx32"\n", prefix,
+                      desc32[0],desc32[1]);
+               break;
+       }
+
+}
+
 static int print_notes(struct elf_binary *elf, const elf_note *start, const 
elf_note *end)
 {
        const elf_note *note;
@@ -79,7 +101,10 @@ static int print_notes(struct elf_binary
                        print_string_note("FEATURES", elf , note);
                        break;
                case XEN_ELFNOTE_HV_START_LOW:
-                       print_numeric_note("HV_START_LOW", elf, note);
+                       print_numeric_note("HV_START_LOW", elf , note);
+                       break;
+               case XEN_ELFNOTE_L1_MFN_VALID:
+                       print_l1_mfn_valid_note("L1_MFN_VALID", elf , note);
                        break;
                default:
                        printf("unknown note type %#x\n",

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [TOOLS] Add support for XEN_ELFNOTE_L1_MFN_VALID to readnotes., Xen patchbot-unstable <=