| 1 | /* $NetBSD: features.h,v 1.1.1.2 2011/12/07 14:41:15 cegger Exp $ */ |
| 2 | /****************************************************************************** |
| 3 | * features.h |
| 4 | * |
| 5 | * Feature flags, reported by XENVER_get_features. |
| 6 | * |
| 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 8 | * of this software and associated documentation files (the "Software"), to |
| 9 | * deal in the Software without restriction, including without limitation the |
| 10 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
| 11 | * sell copies of the Software, and to permit persons to whom the Software is |
| 12 | * furnished to do so, subject to the following conditions: |
| 13 | * |
| 14 | * The above copyright notice and this permission notice shall be included in |
| 15 | * all copies or substantial portions of the Software. |
| 16 | * |
| 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 22 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 23 | * DEALINGS IN THE SOFTWARE. |
| 24 | * |
| 25 | * Copyright (c) 2006, Keir Fraser <keir@xensource.com> |
| 26 | */ |
| 27 | |
| 28 | #ifndef __XEN_PUBLIC_FEATURES_H__ |
| 29 | #define __XEN_PUBLIC_FEATURES_H__ |
| 30 | |
| 31 | /* |
| 32 | * If set, the guest does not need to write-protect its pagetables, and can |
| 33 | * update them via direct writes. |
| 34 | */ |
| 35 | #define XENFEAT_writable_page_tables 0 |
| 36 | |
| 37 | /* |
| 38 | * If set, the guest does not need to write-protect its segment descriptor |
| 39 | * tables, and can update them via direct writes. |
| 40 | */ |
| 41 | #define XENFEAT_writable_descriptor_tables 1 |
| 42 | |
| 43 | /* |
| 44 | * If set, translation between the guest's 'pseudo-physical' address space |
| 45 | * and the host's machine address space are handled by the hypervisor. In this |
| 46 | * mode the guest does not need to perform phys-to/from-machine translations |
| 47 | * when performing page table operations. |
| 48 | */ |
| 49 | #define XENFEAT_auto_translated_physmap 2 |
| 50 | |
| 51 | /* If set, the guest is running in supervisor mode (e.g., x86 ring 0). */ |
| 52 | #define XENFEAT_supervisor_mode_kernel 3 |
| 53 | |
| 54 | /* |
| 55 | * If set, the guest does not need to allocate x86 PAE page directories |
| 56 | * below 4GB. This flag is usually implied by auto_translated_physmap. |
| 57 | */ |
| 58 | #define XENFEAT_pae_pgdir_above_4gb 4 |
| 59 | |
| 60 | /* x86: Does this Xen host support the MMU_PT_UPDATE_PRESERVE_AD hypercall? */ |
| 61 | #define XENFEAT_mmu_pt_update_preserve_ad 5 |
| 62 | |
| 63 | /* x86: Does this Xen host support the MMU_{CLEAR,COPY}_PAGE hypercall? */ |
| 64 | #define XENFEAT_highmem_assist 6 |
| 65 | |
| 66 | /* |
| 67 | * If set, GNTTABOP_map_grant_ref honors flags to be placed into guest kernel |
| 68 | * available pte bits. |
| 69 | */ |
| 70 | #define XENFEAT_gnttab_map_avail_bits 7 |
| 71 | |
| 72 | /* x86: Does this Xen host support the HVM callback vector type? */ |
| 73 | #define XENFEAT_hvm_callback_vector 8 |
| 74 | |
| 75 | /* x86: pvclock algorithm is safe to use on HVM */ |
| 76 | #define XENFEAT_hvm_safe_pvclock 9 |
| 77 | |
| 78 | /* x86: pirq can be used by HVM guests */ |
| 79 | #define XENFEAT_hvm_pirqs 10 |
| 80 | |
| 81 | #define XENFEAT_NR_SUBMAPS 1 |
| 82 | |
| 83 | #endif /* __XEN_PUBLIC_FEATURES_H__ */ |
| 84 | |
| 85 | /* |
| 86 | * Local variables: |
| 87 | * mode: C |
| 88 | * c-set-style: "BSD" |
| 89 | * c-basic-offset: 4 |
| 90 | * tab-width: 4 |
| 91 | * indent-tabs-mode: nil |
| 92 | * End: |
| 93 | */ |
| 94 | |