From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Huang Subject: [PATCH] Update AMD SVM feature flags Date: Fri, 7 Jan 2011 16:12:39 -0600 Message-ID: <4D278FD7.70309@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070203080707020001080101" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "'xen-devel@lists.xensource.com'" List-Id: xen-devel@lists.xenproject.org --------------070203080707020001080101 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit 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 --------------070203080707020001080101 Content-Type: text/plain; name="amd_svm_feature_flags.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="amd_svm_feature_flags.txt" Content-Description: amd_svm_feature_flags.txt 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__ */ --------------070203080707020001080101 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------070203080707020001080101--