summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/include
diff options
context:
space:
mode:
authorDave Voutila <dv@cvs.openbsd.org>2022-05-13 18:19:33 +0000
committerDave Voutila <dv@cvs.openbsd.org>2022-05-13 18:19:33 +0000
commit5bdc0eb34979abca9000d2de69d909e978416c8c (patch)
tree1f7cb9e2c1973ac4f499a1ddba8d3ea0b65c16c8 /sys/arch/amd64/include
parentaf8c1c71b7aeef5ae85c284ba9b1ce2291dd2828 (diff)
vmm: add additional fault type, fixing vm receive
After vmm(4)/vmd(8) "receive" a vm via vmctl(8), vmd on Intel hosts was incorrectly identifying the fault type for nested page fault exits and resetting the vm. This commit adds a new fault type to signify the page fault was serviced in vmm and any exit to userland does not require an assist. ok mlarkin@
Diffstat (limited to 'sys/arch/amd64/include')
-rw-r--r--sys/arch/amd64/include/vmmvar.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/amd64/include/vmmvar.h b/sys/arch/amd64/include/vmmvar.h
index f798674dd0f..42b811a2e42 100644
--- a/sys/arch/amd64/include/vmmvar.h
+++ b/sys/arch/amd64/include/vmmvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmmvar.h,v 1.75 2022/05/03 21:39:19 dv Exp $ */
+/* $OpenBSD: vmmvar.h,v 1.76 2022/05/13 18:19:32 dv Exp $ */
/*
* Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org>
*
@@ -324,7 +324,8 @@ enum {
};
enum {
- VEE_FAULT_PROTECT
+ VEE_FAULT_HANDLED,
+ VEE_FAULT_PROTECT,
};
enum {