Re: [PATCH v2 2/3] libelf: Expand ELF note printing

2024-03-14 Thread Jason Andryuk
On 2024-03-14 09:16, Jan Beulich wrote: On 13.03.2024 20:30, Jason Andryuk wrote: @@ -217,6 +225,15 @@ elf_errorstatus elf_xen_parse_note(struct elf_binary *elf, case XEN_ELFNOTE_PHYS32_ENTRY: parms->phys_entry = val; break; + +case XEN_ELFNOTE_L1_MFN_VALID: +

Re: [PATCH v2 2/3] libelf: Expand ELF note printing

2024-03-14 Thread Jan Beulich
On 13.03.2024 20:30, Jason Andryuk wrote: > @@ -217,6 +225,15 @@ elf_errorstatus elf_xen_parse_note(struct elf_binary > *elf, > case XEN_ELFNOTE_PHYS32_ENTRY: > parms->phys_entry = val; > break; > + > +case XEN_ELFNOTE_L1_MFN_VALID: > +if ( elf_uval(elf, note,

[PATCH v2 2/3] libelf: Expand ELF note printing

2024-03-13 Thread Jason Andryuk
The XEN_ELFNOTE_L1_MFN_VALID is an arrray of two values, but it is printed as: (XEN) ELF: note: L1_MFN_VALID = 0 Expand the printing to handle an array. (XEN) ELF: note: L1_MFN_VALID = mask: 0x1 val: 0x1 ELFNOTE_OTHER prints the name and " = ", but not the value. Implementing a switch case is