* [PATCH] Update AMD SVM feature flags
@ 2011-01-07 22:12 Wei Huang
0 siblings, 0 replies; only message in thread
From: Wei Huang @ 2011-01-07 22:12 UTC (permalink / raw)
To: 'xen-devel@lists.xensource.com'
[-- Attachment #1: Type: text/plain, Size: 242 bytes --]
This patch updates AMD SVM feature flags (0x8000000A:EDX). It adds
several new feature bits, along with feature description. The feature
names are changed to be consistent with Linux kernel.
Signed-off-by: Wei Huang <wei.huang2@amd.com>
[-- Attachment #2: amd_svm_feature_flags.txt --]
[-- Type: text/plain, Size: 1741 bytes --]
diff -r cf37822a228e xen/include/asm-x86/hvm/svm/svm.h
--- a/xen/include/asm-x86/hvm/svm/svm.h Fri Jan 07 13:55:38 2011 -0600
+++ b/xen/include/asm-x86/hvm/svm/svm.h Fri Jan 07 16:21:30 2011 -0600
@@ -64,18 +64,21 @@
extern u32 svm_feature_flags;
-#define SVM_FEATURE_NPT 0
-#define SVM_FEATURE_LBRV 1
-#define SVM_FEATURE_SVML 2
-#define SVM_FEATURE_NRIPS 3
-#define SVM_FEATURE_CLEAN 5
-#define SVM_FEATURE_PAUSEF 10
+#define SVM_FEATURE_NPT 0 /* Nested page table support */
+#define SVM_FEATURE_LBRV 1 /* LBR virtualization support */
+#define SVM_FEATURE_SVML 2 /* SVM locking MSR support */
+#define SVM_FEATURE_NRIPS 3 /* Next RIP save on VMEXIT support */
+#define SVM_FEATURE_TSCRATEMSR 4 /* TSC ratio MSR support */
+#define SVM_FEATURE_VMCBCLEAN 5 /* VMCB clean bits support */
+#define SVM_FEATURE_FLUSHBYASID 6 /* TLB flush by ASID support */
+#define SVM_FEATURE_DECODEASSISTS 7 /* Decode assists support */
+#define SVM_FEATURE_PAUSEFILTER 10 /* Pause intercept filter support */
#define cpu_has_svm_npt test_bit(SVM_FEATURE_NPT, &svm_feature_flags)
#define cpu_has_svm_lbrv test_bit(SVM_FEATURE_LBRV, &svm_feature_flags)
#define cpu_has_svm_svml test_bit(SVM_FEATURE_SVML, &svm_feature_flags)
#define cpu_has_svm_nrips test_bit(SVM_FEATURE_NRIPS, &svm_feature_flags)
-#define cpu_has_svm_cleanbits test_bit(SVM_FEATURE_CLEAN, &svm_feature_flags)
-#define cpu_has_pause_filter test_bit(SVM_FEATURE_PAUSEF, &svm_feature_flags)
+#define cpu_has_svm_cleanbits test_bit(SVM_FEATURE_VMCBCLEAN, &svm_feature_flags)
+#define cpu_has_pause_filter test_bit(SVM_FEATURE_PAUSEFILTER, &svm_feature_flags)
#endif /* __ASM_X86_HVM_SVM_H__ */
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-07 22:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-07 22:12 [PATCH] Update AMD SVM feature flags Wei Huang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.