ia64/xen-unstable

changeset 9020:8b42c8aea36a

Split XENFEAT_ feature flags into new header file features.h.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Feb 24 19:34:54 2006 +0100 (2006-02-24)
parents e92dd21483bd
children a9f3abcc4149
files xen/include/public/features.h xen/include/public/version.h
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xen/include/public/features.h	Fri Feb 24 19:34:54 2006 +0100
     1.3 @@ -0,0 +1,53 @@
     1.4 +/******************************************************************************
     1.5 + * features.h
     1.6 + * 
     1.7 + * Feature flags, reported by XENVER_get_features.
     1.8 + * 
     1.9 + * Copyright (c) 2006, Keir Fraser <keir@xensource.com>
    1.10 + */
    1.11 +
    1.12 +#ifndef __XEN_PUBLIC_FEATURES_H__
    1.13 +#define __XEN_PUBLIC_FEATURES_H__
    1.14 +
    1.15 +/*
    1.16 + * If set, the guest does not need to write-protect its pagetables, and can
    1.17 + * update them via direct writes.
    1.18 + */
    1.19 +#define XENFEAT_writable_page_tables       0
    1.20 +
    1.21 +/*
    1.22 + * If set, the guest does not need to write-protect its segment descriptor
    1.23 + * tables, and can update them via direct writes.
    1.24 + */
    1.25 +#define XENFEAT_writable_descriptor_tables 1
    1.26 +
    1.27 +/*
    1.28 + * If set, translation between the guest's 'pseudo-physical' address space
    1.29 + * and the host's machine address space are handled by the hypervisor. In this
    1.30 + * mode the guest does not need to perform phys-to/from-machine translations
    1.31 + * when performing page table operations.
    1.32 + */
    1.33 +#define XENFEAT_auto_translated_physmap    2
    1.34 +
    1.35 +/* If set, the guest is running in supervisor mode (e.g., x86 ring 0). */
    1.36 +#define XENFEAT_supervisor_mode_kernel     3
    1.37 +
    1.38 +/*
    1.39 + * If set, the guest does not need to allocate x86 PAE page directories
    1.40 + * below 4GB. This flag is usually implied by auto_translated_physmap.
    1.41 + */
    1.42 +#define XENFEAT_pae_pgdir_above_4gb        4
    1.43 +
    1.44 +#define XENFEAT_NR_SUBMAPS 1
    1.45 +
    1.46 +#endif /* __XEN_PUBLIC_FEATURES_H__ */
    1.47 +
    1.48 +/*
    1.49 + * Local variables:
    1.50 + * mode: C
    1.51 + * c-set-style: "BSD"
    1.52 + * c-basic-offset: 4
    1.53 + * tab-width: 4
    1.54 + * indent-tabs-mode: nil
    1.55 + * End:
    1.56 + */
     2.1 --- a/xen/include/public/version.h	Fri Feb 24 19:16:52 2006 +0100
     2.2 +++ b/xen/include/public/version.h	Fri Feb 24 19:34:54 2006 +0100
     2.3 @@ -48,36 +48,8 @@ typedef struct xen_feature_info {
     2.4      uint32_t     submap;        /* OUT: 32-bit submap */
     2.5  } xen_feature_info_t;
     2.6  
     2.7 -/*
     2.8 - * If set, the guest does not need to write-protect its pagetables, and can
     2.9 - * update them via direct writes.
    2.10 - */
    2.11 -#define XENFEAT_writable_page_tables       0
    2.12 -
    2.13 -/*
    2.14 - * If set, the guest does not need to write-protect its segment descriptor
    2.15 - * tables, and can update them via direct writes.
    2.16 - */
    2.17 -#define XENFEAT_writable_descriptor_tables 1
    2.18 -
    2.19 -/*
    2.20 - * If set, translation between the guest's 'pseudo-physical' address space
    2.21 - * and the host's machine address space are handled by the hypervisor. In this
    2.22 - * mode the guest does not need to perform phys-to/from-machine translations
    2.23 - * when performing page table operations.
    2.24 - */
    2.25 -#define XENFEAT_auto_translated_physmap    2
    2.26 -
    2.27 -/* If set, the guest is running in supervisor mode (e.g., x86 ring 0). */
    2.28 -#define XENFEAT_supervisor_mode_kernel     3
    2.29 -
    2.30 -/*
    2.31 - * If set, the guest does not need to allocate x86 PAE page directories
    2.32 - * below 4GB. This flag is usually implied by auto_translated_physmap.
    2.33 - */
    2.34 -#define XENFEAT_pae_pgdir_above_4gb        4
    2.35 -
    2.36 -#define XENFEAT_NR_SUBMAPS 1
    2.37 +/* Declares the features reported by XENVER_get_features. */
    2.38 +#include "features.h"
    2.39  
    2.40  #endif /* __XEN_PUBLIC_VERSION_H__ */
    2.41