Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/include Add the following bits in AMD Fn8000000...



details:   https://anonhg.NetBSD.org/src/rev/8f77983670df
branches:  trunk
changeset: 356886:8f77983670df
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Oct 19 06:29:16 2017 +0000

description:
Add the following bits in AMD Fn8000000a %edx features (SVM features):
        PFThreshold (PAUSE filter threshold)
        AVIC (AMD virtual interrupt controller)
        V_VMSAVE_VMLOAD (virtualized VMSAVE and VMLOAD)
        vGIF (virtualized GIF)

diffstat:

 sys/arch/x86/include/specialreg.h |  17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diffs (33 lines):

diff -r ced5fa040a15 -r 8f77983670df sys/arch/x86/include/specialreg.h
--- a/sys/arch/x86/include/specialreg.h Thu Oct 19 05:52:57 2017 +0000
+++ b/sys/arch/x86/include/specialreg.h Thu Oct 19 06:29:16 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: specialreg.h,v 1.104 2017/10/18 03:38:32 msaitoh Exp $ */
+/*     $NetBSD: specialreg.h,v 1.105 2017/10/19 06:29:16 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 1991 The Regents of the University of California.
@@ -539,13 +539,18 @@
 #define CPUID_AMD_SVM_FlushByASID      0x00000040
 #define CPUID_AMD_SVM_DecodeAssist     0x00000080
 #define CPUID_AMD_SVM_PauseFilter      0x00000400
+#define CPUID_AMD_SVM_PFThreshold      0x0x001000 /* PAUSE filter threshold */
+#define CPUID_AMD_SVM_AVIC             0x00002000 /* AMD Virtual intr. ctrl */
+#define CPUID_AMD_SVM_V_VMSAVE_VMLOAD  0x00008000 /* Virtual VM{SAVE/LOAD} */
+#define CPUID_AMD_SVM_vGIF             0x00010000 /* Virtualized GIF */
 #define CPUID_AMD_SVM_FLAGS     "\20" \
-       "\1" "NP"       "\2" "LbrVirt"  "\3" "SVML"     "\4" "NRIPS" \
-       "\5" "TSCRate"  "\6" "VMCBCleanBits" \
-               "\7" "FlushByASID"      "\10" "DecodeAssist" \
+       "\1" "NP"       "\2" "LbrVirt"  "\3" "SVML"     "\4" "NRIPS"    \
+       "\5" "TSCRate"  "\6" "VMCBCleanBits"                            \
+                               "\7" "FlushByASID" "\10" "DecodeAssist" \
        "\11" "B08"     "\12" "B09"     "\13" "PauseFilter" "\14" "B11" \
-       "\15" "B12"     "\16" "B13"     "\17" "B17"     "\20" "B18" \
-       "\21" "B19"
+       "\15" "PFThreshold" "\16" "AVIC" "\17" "B14"                    \
+                                               "\20" "V_VMSAVE_VMLOAD" \
+       "\21" "VGIF"
 
 /*
  * Centaur Extended Feature flags



Home | Main Index | Thread Index | Old Index