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 Ah no, adapt previous, on AMD RAX is in the...
details: https://anonhg.NetBSD.org/src/rev/fb12affdf4f5
branches: trunk
changeset: 448964:fb12affdf4f5
user: maxv <maxv%NetBSD.org@localhost>
date: Sat Feb 16 12:58:13 2019 +0000
description:
Ah no, adapt previous, on AMD RAX is in the VMCB.
diffstat:
sys/dev/nvmm/x86/nvmm_x86_svm.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r e2527031466d -r fb12affdf4f5 sys/dev/nvmm/x86/nvmm_x86_svm.c
--- a/sys/dev/nvmm/x86/nvmm_x86_svm.c Sat Feb 16 12:40:31 2019 +0000
+++ b/sys/dev/nvmm/x86/nvmm_x86_svm.c Sat Feb 16 12:58:13 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nvmm_x86_svm.c,v 1.25 2019/02/16 12:40:31 maxv Exp $ */
+/* $NetBSD: nvmm_x86_svm.c,v 1.26 2019/02/16 12:58:13 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.25 2019/02/16 12:40:31 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nvmm_x86_svm.c,v 1.26 2019/02/16 12:58:13 maxv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -772,7 +772,7 @@
}
switch (ecx) {
case 0:
- cpudata->gprs[NVMM_X64_GPR_RAX] = svm_xcr0_mask & 0xFFFFFFFF;
+ cpudata->vmcb->state.rax = svm_xcr0_mask & 0xFFFFFFFF;
if (cpudata->gxcr0 & XCR0_SSE) {
cpudata->gprs[NVMM_X64_GPR_RBX] = sizeof(struct fxsave);
} else {
@@ -783,7 +783,7 @@
cpudata->gprs[NVMM_X64_GPR_RDX] = svm_xcr0_mask >> 32;
break;
case 1:
- cpudata->gprs[NVMM_X64_GPR_RAX] &= ~CPUID_PES1_XSAVES;
+ cpudata->vmcb->state.rax &= ~CPUID_PES1_XSAVES;
break;
}
break;
Home |
Main Index |
Thread Index |
Old Index