Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libnvmm Don't forget to set 'prot' when the guest has pa...
details: https://anonhg.NetBSD.org/src/rev/172096130f7f
branches: trunk
changeset: 994656:172096130f7f
user: maxv <maxv%NetBSD.org@localhost>
date: Sat Nov 17 16:11:33 2018 +0000
description:
Don't forget to set 'prot' when the guest has paging disabled.
diffstat:
lib/libnvmm/libnvmm_x86.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r fdf7e1e3fd98 -r 172096130f7f lib/libnvmm/libnvmm_x86.c
--- a/lib/libnvmm/libnvmm_x86.c Sat Nov 17 07:06:25 2018 +0000
+++ b/lib/libnvmm/libnvmm_x86.c Sat Nov 17 16:11:33 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: libnvmm_x86.c,v 1.3 2018/11/13 06:57:14 maya Exp $ */
+/* $NetBSD: libnvmm_x86.c,v 1.4 2018/11/17 16:11:33 maxv Exp $ */
/*
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -334,6 +334,7 @@
if ((state->crs[NVMM_X64_CR_CR0] & CR0_PG) == 0) {
/* No paging. */
+ *prot = NVMM_PROT_ALL;
*gpa = gva;
return 0;
}
Home |
Main Index |
Thread Index |
Old Index