[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86: New feature flag XENFEAT_mmu_pt_update_preserve_ad.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1200490079 0
# Node ID 847bc9b19c48ad0df1eda96266d8a9ed15a0c32d
# Parent  a66bdc82d8fa551acbecbc03b606c9743556d897
x86: New feature flag XENFEAT_mmu_pt_update_preserve_ad.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/common/kernel.c           |    4 ++++
 xen/include/public/features.h |    3 +++
 2 files changed, 7 insertions(+)

diff -r a66bdc82d8fa -r 847bc9b19c48 xen/common/kernel.c
--- a/xen/common/kernel.c       Wed Jan 16 11:44:41 2008 +0000
+++ b/xen/common/kernel.c       Wed Jan 16 13:27:59 2008 +0000
@@ -220,6 +220,10 @@ DO(xen_version)(int cmd, XEN_GUEST_HANDL
                     (1U << XENFEAT_auto_translated_physmap);
             if ( supervisor_mode_kernel )
                 fi.submap |= 1U << XENFEAT_supervisor_mode_kernel;
+#ifdef CONFIG_X86
+            if ( !is_hvm_vcpu(current) )
+                fi.submap |= 1U << XENFEAT_mmu_pt_update_preserve_ad;
+#endif
             break;
         default:
             return -EINVAL;
diff -r a66bdc82d8fa -r 847bc9b19c48 xen/include/public/features.h
--- a/xen/include/public/features.h     Wed Jan 16 11:44:41 2008 +0000
+++ b/xen/include/public/features.h     Wed Jan 16 13:27:59 2008 +0000
@@ -56,6 +56,9 @@
  */
 #define XENFEAT_pae_pgdir_above_4gb        4
 
+/* x86: Does this Xen host support the MMU_PT_UPDATE_PRESERVE_AD hypercall? */
+#define XENFEAT_mmu_pt_update_preserve_ad  5
+
 #define XENFEAT_NR_SUBMAPS 1
 
 #endif /* __XEN_PUBLIC_FEATURES_H__ */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.