1 /* $NetBSD: features.h,v 1.3 2007/10/17 19:58:30 garbled Exp $ */
2 /******************************************************************************
5 * Feature flags, reported by XENVER_get_features.
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:
14 * The above copyright notice and this permission notice shall be included in
15 * all copies or substantial portions of the Software.
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.
25 * Copyright (c) 2006, Keir Fraser <keir@xensource.com>
28 #ifndef __XEN_PUBLIC_FEATURES_H__
29 #define __XEN_PUBLIC_FEATURES_H__
32 * If set, the guest does not need to write-protect its pagetables, and can
33 * update them via direct writes.
35 #define XENFEAT_writable_page_tables 0
38 * If set, the guest does not need to write-protect its segment descriptor
39 * tables, and can update them via direct writes.
41 #define XENFEAT_writable_descriptor_tables 1
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.
49 #define XENFEAT_auto_translated_physmap 2
51 /* If set, the guest is running in supervisor mode (e.g., x86 ring 0). */
52 #define XENFEAT_supervisor_mode_kernel 3
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.
58 #define XENFEAT_pae_pgdir_above_4gb 4
60 /* x86: Does this Xen host support the MMU_PT_UPDATE_PRESERVE_AD hypercall? */
61 #define XENFEAT_mmu_pt_update_preserve_ad 5
63 #define XENFEAT_NR_SUBMAPS 1
65 #endif /* __XEN_PUBLIC_FEATURES_H__ */
73 * indent-tabs-mode: nil