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 AMD INVLPGB/TLBSYNC hypervisor en...



details:   https://anonhg.NetBSD.org/src/rev/67f34beabfb9
branches:  trunk
changeset: 932139:67f34beabfb9
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri May 01 04:07:24 2020 +0000

description:
- Add AMD INVLPGB/TLBSYNC hypervisor enable in VMCB and TLBSYNC intercept bit.
- Modify comment.

diffstat:

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

diffs (48 lines):

diff -r 51b411949b35 -r 67f34beabfb9 sys/arch/x86/include/specialreg.h
--- a/sys/arch/x86/include/specialreg.h Fri May 01 03:02:28 2020 +0000
+++ b/sys/arch/x86/include/specialreg.h Fri May 01 04:07:24 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: specialreg.h,v 1.163 2020/04/25 15:26:18 bouyer Exp $  */
+/*     $NetBSD: specialreg.h,v 1.164 2020/05/01 04:07:24 msaitoh Exp $ */
 
 /*
  * Copyright (c) 2014-2019 The NetBSD Foundation, Inc.
@@ -730,6 +730,7 @@
  * %eax: Long Mode Size Identifiers
  * %ebx: Extended Feature Identifiers
  * %ecx: Size Identifiers
+ * %edx: RDPRU Register Identifier Range
  */
 
 /* %ebx */
@@ -773,6 +774,7 @@
 #define CPUID_AMD_SVM_vGIF             0x00010000 /* Virtualized GIF */
 #define CPUID_AMD_SVM_GMET             0x00020000
 #define CPUID_AMD_SVM_SPEC_CTRL                __BIT(20)
+#define CPUID_AMD_SVM_TLBICTL          __BIT(24)  /* TLB Inttercept Control */
 
 #define CPUID_AMD_SVM_FLAGS     "\20"                                  \
        "\1" "NP"       "\2" "LbrVirt"  "\3" "SVML"     "\4" "NRIPS"    \
@@ -782,10 +784,11 @@
        "\15" "PFThreshold" "\16" "AVIC" "\17" "B14"                    \
                                                "\20" "V_VMSAVE_VMLOAD" \
        "\21" "VGIF"    "\22" "GMET"                                    \
-       "\25" "SPEC_CTRL"
+       "\25" "SPEC_CTRL"                                               \
+       "\31" "TLBICTL"
 
 /*
- * AMD Fn8000_0001d Cache Topology Information.
+ * AMD Fn8000_001d Cache Topology Information.
  * It's almost the same as Intel Deterministic Cache Parameter Leaf(0x04)
  * except the following:
  *     No Cores/package (%eax bit 31..26)
@@ -793,7 +796,7 @@
  */
 
 /*
- * AMD Fn8000_0001f Encrypted Memory Capabilities.
+ * AMD Fn8000_001f Encrypted Memory Capabilities.
  * %eax: flags
  * %ebx:  5-0: Cbit Position
  *       11-6: PhysAddrReduction



Home | Main Index | Thread Index | Old Index