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 Add RFLAGS in the exitstate.
details: https://anonhg.NetBSD.org/src/rev/b09367d49415
branches: trunk
changeset: 994874:b09367d49415
user: maxv <maxv%NetBSD.org@localhost>
date: Sun Nov 25 14:09:57 2018 +0000
description:
Add RFLAGS in the exitstate.
diffstat:
sys/dev/nvmm/x86/nvmm_x86.h | 5 +++--
sys/dev/nvmm/x86/nvmm_x86_svm.c | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (45 lines):
diff -r 6f5d2dc4a84f -r b09367d49415 sys/dev/nvmm/x86/nvmm_x86.h
--- a/sys/dev/nvmm/x86/nvmm_x86.h Sun Nov 25 07:37:20 2018 +0000
+++ b/sys/dev/nvmm/x86/nvmm_x86.h Sun Nov 25 14:09:57 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nvmm_x86.h,v 1.1 2018/11/07 07:43:08 maxv Exp $ */
+/* $NetBSD: nvmm_x86.h,v 1.2 2018/11/25 14:09:57 maxv Exp $ */
/*
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -123,7 +123,8 @@
};
/* VM exit state indexes. */
-#define NVMM_X64_EXITSTATE_CR8 0
+#define NVMM_X64_EXITSTATE_CR8 0
+#define NVMM_X64_EXITSTATE_RFLAGS 1
/* Flags. */
#define NVMM_X64_STATE_SEGS 0x01
diff -r 6f5d2dc4a84f -r b09367d49415 sys/dev/nvmm/x86/nvmm_x86_svm.c
--- a/sys/dev/nvmm/x86/nvmm_x86_svm.c Sun Nov 25 07:37:20 2018 +0000
+++ b/sys/dev/nvmm/x86/nvmm_x86_svm.c Sun Nov 25 14:09:57 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nvmm_x86_svm.c,v 1.5 2018/11/22 07:37:12 maxv Exp $ */
+/* $NetBSD: nvmm_x86_svm.c,v 1.6 2018/11/25 14:09:57 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.5 2018/11/22 07:37:12 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nvmm_x86_svm.c,v 1.6 2018/11/25 14:09:57 maxv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1205,6 +1205,7 @@
exit->exitstate[NVMM_X64_EXITSTATE_CR8] = __SHIFTOUT(vmcb->ctrl.v,
VMCB_CTRL_V_TPR);
+ exit->exitstate[NVMM_X64_EXITSTATE_RFLAGS] = vmcb->state.rflags;
return 0;
}
Home |
Main Index |
Thread Index |
Old Index