features.h revision 288917
154359Sroberto/****************************************************************************** 254359Sroberto * features.h 354359Sroberto * 454359Sroberto * Feature flags, reported by XENVER_get_features. 554359Sroberto * 654359Sroberto * Permission is hereby granted, free of charge, to any person obtaining a copy 754359Sroberto * of this software and associated documentation files (the "Software"), to 854359Sroberto * deal in the Software without restriction, including without limitation the 954359Sroberto * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 10285612Sdelphij * sell copies of the Software, and to permit persons to whom the Software is 11285612Sdelphij * furnished to do so, subject to the following conditions: 12285612Sdelphij * 13285612Sdelphij * The above copyright notice and this permission notice shall be included in 14285612Sdelphij * all copies or substantial portions of the Software. 15285612Sdelphij * 16285612Sdelphij * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17285612Sdelphij * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18285612Sdelphij * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19285612Sdelphij * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20285612Sdelphij * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21285612Sdelphij * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22285612Sdelphij * DEALINGS IN THE SOFTWARE. 23285612Sdelphij * 24285612Sdelphij * Copyright (c) 2006, Keir Fraser <keir@xensource.com> 25285612Sdelphij */ 26285612Sdelphij 27285612Sdelphij#ifndef __XEN_PUBLIC_FEATURES_H__ 28285612Sdelphij#define __XEN_PUBLIC_FEATURES_H__ 29285612Sdelphij 30285612Sdelphij/* 3182498Sroberto * `incontents 200 elfnotes_features XEN_ELFNOTE_FEATURES 3282498Sroberto * 3382498Sroberto * The list of all the features the guest supports. They are set by 3482498Sroberto * parsing the XEN_ELFNOTE_FEATURES and XEN_ELFNOTE_SUPPORTED_FEATURES 35285612Sdelphij * string. The format is the feature names (as given here without the 3682498Sroberto * "XENFEAT_" prefix) separated by '|' characters. 3782498Sroberto * If a feature is required for the kernel to function then the feature name 38285612Sdelphij * must be preceded by a '!' character. 39182007Sroberto * 40285612Sdelphij * Note that if XEN_ELFNOTE_SUPPORTED_FEATURES is used, then in the 41285612Sdelphij * XENFEAT_dom0 MUST be set if the guest is to be booted as dom0, 42285612Sdelphij */ 43285612Sdelphij 44293650Sglebius/* 4582498Sroberto * If set, the guest does not need to write-protect its pagetables, and can 46132451Sroberto * update them via direct writes. 47132451Sroberto */ 48285612Sdelphij#define XENFEAT_writable_page_tables 0 49132451Sroberto 50285612Sdelphij/* 51132451Sroberto * If set, the guest does not need to write-protect its segment descriptor 52285612Sdelphij * tables, and can update them via direct writes. 53132451Sroberto */ 54132451Sroberto#define XENFEAT_writable_descriptor_tables 1 55132451Sroberto 56132451Sroberto/* 57132451Sroberto * If set, translation between the guest's 'pseudo-physical' address space 58285612Sdelphij * and the host's machine address space are handled by the hypervisor. In this 59285612Sdelphij * mode the guest does not need to perform phys-to/from-machine translations 60285612Sdelphij * when performing page table operations. 61285612Sdelphij */ 62285612Sdelphij#define XENFEAT_auto_translated_physmap 2 6354359Sroberto 6454359Sroberto/* If set, the guest is running in supervisor mode (e.g., x86 ring 0). */ 65182007Sroberto#define XENFEAT_supervisor_mode_kernel 3 66182007Sroberto 67182007Sroberto/* 68182007Sroberto * If set, the guest does not need to allocate x86 PAE page directories 69182007Sroberto * below 4GB. This flag is usually implied by auto_translated_physmap. 70182007Sroberto */ 71182007Sroberto#define XENFEAT_pae_pgdir_above_4gb 4 72182007Sroberto 73182007Sroberto/* x86: Does this Xen host support the MMU_PT_UPDATE_PRESERVE_AD hypercall? */ 74285612Sdelphij#define XENFEAT_mmu_pt_update_preserve_ad 5 75182007Sroberto 76285612Sdelphij/* x86: Does this Xen host support the MMU_{CLEAR,COPY}_PAGE hypercall? */ 77285612Sdelphij#define XENFEAT_highmem_assist 6 78285612Sdelphij 79285612Sdelphij/* 80182007Sroberto * If set, GNTTABOP_map_grant_ref honors flags to be placed into guest kernel 81285612Sdelphij * available pte bits. 82285612Sdelphij */ 83285612Sdelphij#define XENFEAT_gnttab_map_avail_bits 7 84285612Sdelphij 85285612Sdelphij/* x86: Does this Xen host support the HVM callback vector type? */ 86285612Sdelphij#define XENFEAT_hvm_callback_vector 8 87285612Sdelphij 88182007Sroberto/* x86: pvclock algorithm is safe to use on HVM */ 89285612Sdelphij#define XENFEAT_hvm_safe_pvclock 9 90285612Sdelphij 91285612Sdelphij/* x86: pirq can be used by HVM guests */ 92285612Sdelphij#define XENFEAT_hvm_pirqs 10 93182007Sroberto 94285612Sdelphij/* operation as Dom0 is supported */ 95285612Sdelphij#define XENFEAT_dom0 11 96285612Sdelphij 97285612Sdelphij/* Xen also maps grant references at pfn = mfn. 98285612Sdelphij * This feature flag is deprecated and should not be used. 99285612Sdelphij#define XENFEAT_grant_map_identity 12 100285612Sdelphij */ 101285612Sdelphij 102182007Sroberto/* Guest can use XENMEMF_vnode to specify virtual node for memory op. */ 103285612Sdelphij#define XENFEAT_memory_op_vnode_supported 13 104285612Sdelphij 105285612Sdelphij#define XENFEAT_NR_SUBMAPS 1 106285612Sdelphij 107285612Sdelphij#endif /* __XEN_PUBLIC_FEATURES_H__ */ 108199995Sume 109106163Sroberto/* 110285612Sdelphij * Local variables: 111285612Sdelphij * mode: C 112285612Sdelphij * c-file-style: "BSD" 113285612Sdelphij * c-basic-offset: 4 114285612Sdelphij * tab-width: 4 115285612Sdelphij * indent-tabs-mode: nil 116285612Sdelphij * End: 117285612Sdelphij */ 118285612Sdelphij