win-pvdrivers

annotate common/include/public/features.h @ 1106:2d392ecdd366

Fix race is xenvbd causing 30 second freeze under high load
author James Harper <james.harper@bendigoit.com.au>
date Tue Nov 11 23:08:11 2014 +1100 (2014-11-11)
parents 5712dede5a1b
children
rev   line source
andy@12 1 /******************************************************************************
andy@12 2 * features.h
andy@12 3 *
andy@12 4 * Feature flags, reported by XENVER_get_features.
andy@12 5 *
andy@12 6 * Permission is hereby granted, free of charge, to any person obtaining a copy
andy@12 7 * of this software and associated documentation files (the "Software"), to
andy@12 8 * deal in the Software without restriction, including without limitation the
andy@12 9 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
andy@12 10 * sell copies of the Software, and to permit persons to whom the Software is
andy@12 11 * furnished to do so, subject to the following conditions:
andy@12 12 *
andy@12 13 * The above copyright notice and this permission notice shall be included in
andy@12 14 * all copies or substantial portions of the Software.
andy@12 15 *
andy@12 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
andy@12 17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
andy@12 18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
andy@12 19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
andy@12 20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
andy@12 21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
andy@12 22 * DEALINGS IN THE SOFTWARE.
andy@12 23 *
andy@12 24 * Copyright (c) 2006, Keir Fraser <keir@xensource.com>
andy@12 25 */
andy@12 26
andy@12 27 #ifndef __XEN_PUBLIC_FEATURES_H__
andy@12 28 #define __XEN_PUBLIC_FEATURES_H__
andy@12 29
andy@12 30 /*
andy@12 31 * If set, the guest does not need to write-protect its pagetables, and can
andy@12 32 * update them via direct writes.
andy@12 33 */
andy@12 34 #define XENFEAT_writable_page_tables 0
andy@12 35
andy@12 36 /*
andy@12 37 * If set, the guest does not need to write-protect its segment descriptor
andy@12 38 * tables, and can update them via direct writes.
andy@12 39 */
andy@12 40 #define XENFEAT_writable_descriptor_tables 1
andy@12 41
andy@12 42 /*
andy@12 43 * If set, translation between the guest's 'pseudo-physical' address space
andy@12 44 * and the host's machine address space are handled by the hypervisor. In this
andy@12 45 * mode the guest does not need to perform phys-to/from-machine translations
andy@12 46 * when performing page table operations.
andy@12 47 */
andy@12 48 #define XENFEAT_auto_translated_physmap 2
andy@12 49
andy@12 50 /* If set, the guest is running in supervisor mode (e.g., x86 ring 0). */
andy@12 51 #define XENFEAT_supervisor_mode_kernel 3
andy@12 52
andy@12 53 /*
andy@12 54 * If set, the guest does not need to allocate x86 PAE page directories
andy@12 55 * below 4GB. This flag is usually implied by auto_translated_physmap.
andy@12 56 */
andy@12 57 #define XENFEAT_pae_pgdir_above_4gb 4
andy@12 58
andy@12 59 #define XENFEAT_NR_SUBMAPS 1
andy@12 60
andy@12 61 #endif /* __XEN_PUBLIC_FEATURES_H__ */
andy@12 62
andy@12 63 /*
andy@12 64 * Local variables:
andy@12 65 * mode: C
andy@12 66 * c-set-style: "BSD"
andy@12 67 * c-basic-offset: 4
andy@12 68 * tab-width: 4
andy@12 69 * indent-tabs-mode: nil
andy@12 70 * End:
andy@12 71 */