/******************************************************************************1* elfnote.h2*3* Definitions used for the Xen ELF notes.4*5* Copyright (c) 2006, Ian Campbell, XenSource Ltd.6*/78#ifndef __XEN_PUBLIC_ELFNOTE_H__9#define __XEN_PUBLIC_ELFNOTE_H__1011/*12* The notes should live in a SHT_NOTE segment and have "Xen" in the13* name field.14*15* Numeric types are either 4 or 8 bytes depending on the content of16* the desc field.17*18* LEGACY indicated the fields in the legacy __xen_guest string which19* this a note type replaces.20*/2122/*23* NAME=VALUE pair (string).24*25* LEGACY: FEATURES and PAE26*/27#define XEN_ELFNOTE_INFO 02829/*30* The virtual address of the entry point (numeric).31*32* LEGACY: VIRT_ENTRY33*/34#define XEN_ELFNOTE_ENTRY 13536/* The virtual address of the hypercall transfer page (numeric).37*38* LEGACY: HYPERCALL_PAGE. (n.b. legacy value is a physical page39* number not a virtual address)40*/41#define XEN_ELFNOTE_HYPERCALL_PAGE 24243/* The virtual address where the kernel image should be mapped (numeric).44*45* Defaults to 0.46*47* LEGACY: VIRT_BASE48*/49#define XEN_ELFNOTE_VIRT_BASE 35051/*52* The offset of the ELF paddr field from the acutal required53* pseudo-physical address (numeric).54*55* This is used to maintain backwards compatibility with older kernels56* which wrote __PAGE_OFFSET into that field. This field defaults to 057* if not present.58*59* LEGACY: ELF_PADDR_OFFSET. (n.b. legacy default is VIRT_BASE)60*/61#define XEN_ELFNOTE_PADDR_OFFSET 46263/*64* The version of Xen that we work with (string).65*66* LEGACY: XEN_VER67*/68#define XEN_ELFNOTE_XEN_VERSION 56970/*71* The name of the guest operating system (string).72*73* LEGACY: GUEST_OS74*/75#define XEN_ELFNOTE_GUEST_OS 67677/*78* The version of the guest operating system (string).79*80* LEGACY: GUEST_VER81*/82#define XEN_ELFNOTE_GUEST_VERSION 78384/*85* The loader type (string).86*87* LEGACY: LOADER88*/89#define XEN_ELFNOTE_LOADER 89091/*92* The kernel supports PAE (x86/32 only, string = "yes" or "no").93*94* LEGACY: PAE (n.b. The legacy interface included a provision to95* indicate 'extended-cr3' support allowing L3 page tables to be96* placed above 4G. It is assumed that any kernel new enough to use97* these ELF notes will include this and therefore "yes" here is98* equivalent to "yes[entended-cr3]" in the __xen_guest interface.99*/100#define XEN_ELFNOTE_PAE_MODE 9101102/*103* The features supported/required by this kernel (string).104*105* The string must consist of a list of feature names (as given in106* features.h, without the "XENFEAT_" prefix) separated by '|'107* characters. If a feature is required for the kernel to function108* then the feature name must be preceded by a '!' character.109*110* LEGACY: FEATURES111*/112#define XEN_ELFNOTE_FEATURES 10113114/*115* The kernel requires the symbol table to be loaded (string = "yes" or "no")116* LEGACY: BSD_SYMTAB (n.b. The legacy treated the presence or absence117* of this string as a boolean flag rather than requiring "yes" or118* "no".119*/120#define XEN_ELFNOTE_BSD_SYMTAB 11121122/*123* The lowest address the hypervisor hole can begin at (numeric).124*125* This must not be set higher than HYPERVISOR_VIRT_START. Its presence126* also indicates to the hypervisor that the kernel can deal with the127* hole starting at a higher address.128*/129#define XEN_ELFNOTE_HV_START_LOW 12130131/*132* List of maddr_t-sized mask/value pairs describing how to recognize133* (non-present) L1 page table entries carrying valid MFNs (numeric).134*/135#define XEN_ELFNOTE_L1_MFN_VALID 13136137/*138* Whether or not the guest supports cooperative suspend cancellation.139*/140#define XEN_ELFNOTE_SUSPEND_CANCEL 14141142#endif /* __XEN_PUBLIC_ELFNOTE_H__ */143144/*145* Local variables:146* mode: C147* c-set-style: "BSD"148* c-basic-offset: 4149* tab-width: 4150* indent-tabs-mode: nil151* End:152*/153154155