ia64/xen-unstable

changeset 16725:847bc9b19c48

x86: New feature flag XENFEAT_mmu_pt_update_preserve_ad.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jan 16 13:27:59 2008 +0000 (2008-01-16)
parents a66bdc82d8fa
children ec3f90599ab1
files xen/common/kernel.c xen/include/public/features.h
line diff
     1.1 --- a/xen/common/kernel.c	Wed Jan 16 11:44:41 2008 +0000
     1.2 +++ b/xen/common/kernel.c	Wed Jan 16 13:27:59 2008 +0000
     1.3 @@ -220,6 +220,10 @@ DO(xen_version)(int cmd, XEN_GUEST_HANDL
     1.4                      (1U << XENFEAT_auto_translated_physmap);
     1.5              if ( supervisor_mode_kernel )
     1.6                  fi.submap |= 1U << XENFEAT_supervisor_mode_kernel;
     1.7 +#ifdef CONFIG_X86
     1.8 +            if ( !is_hvm_vcpu(current) )
     1.9 +                fi.submap |= 1U << XENFEAT_mmu_pt_update_preserve_ad;
    1.10 +#endif
    1.11              break;
    1.12          default:
    1.13              return -EINVAL;
     2.1 --- a/xen/include/public/features.h	Wed Jan 16 11:44:41 2008 +0000
     2.2 +++ b/xen/include/public/features.h	Wed Jan 16 13:27:59 2008 +0000
     2.3 @@ -56,6 +56,9 @@
     2.4   */
     2.5  #define XENFEAT_pae_pgdir_above_4gb        4
     2.6  
     2.7 +/* x86: Does this Xen host support the MMU_PT_UPDATE_PRESERVE_AD hypercall? */
     2.8 +#define XENFEAT_mmu_pt_update_preserve_ad  5
     2.9 +
    2.10  #define XENFEAT_NR_SUBMAPS 1
    2.11  
    2.12  #endif /* __XEN_PUBLIC_FEATURES_H__ */