Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/nvmm/x86 Reduce the mask of the VTPR, only the first...



details:   https://anonhg.NetBSD.org/src/rev/3b0d0d2110fb
branches:  trunk
changeset: 449647:3b0d0d2110fb
user:      maxv <maxv%NetBSD.org@localhost>
date:      Thu Mar 14 19:15:26 2019 +0000

description:
Reduce the mask of the VTPR, only the first four bits matter.

diffstat:

 sys/dev/nvmm/x86/nvmm_x86_svm.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4838dff9a4f2 -r 3b0d0d2110fb sys/dev/nvmm/x86/nvmm_x86_svm.c
--- a/sys/dev/nvmm/x86/nvmm_x86_svm.c   Thu Mar 14 19:10:27 2019 +0000
+++ b/sys/dev/nvmm/x86/nvmm_x86_svm.c   Thu Mar 14 19:15:26 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nvmm_x86_svm.c,v 1.33 2019/03/03 07:01:09 maxv Exp $   */
+/*     $NetBSD: nvmm_x86_svm.c,v 1.34 2019/03/14 19:15:26 maxv Exp $   */
 
 /*
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nvmm_x86_svm.c,v 1.33 2019/03/03 07:01:09 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nvmm_x86_svm.c,v 1.34 2019/03/14 19:15:26 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -303,7 +303,7 @@
 #define VMCB_CTRL_TLB_CTRL_FLUSH_GUEST_NONGLOBAL       0x07
 
        uint64_t v;
-#define VMCB_CTRL_V_TPR                        __BITS(7,0)
+#define VMCB_CTRL_V_TPR                        __BITS(3,0)
 #define VMCB_CTRL_V_IRQ                        __BIT(8)
 #define VMCB_CTRL_V_VGIF               __BIT(9)
 #define VMCB_CTRL_V_INTR_PRIO          __BITS(19,16)



Home | Main Index | Thread Index | Old Index