summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/include
diff options
context:
space:
mode:
authorStefan Kempf <stefan@cvs.openbsd.org>2016-02-16 18:59:31 +0000
committerStefan Kempf <stefan@cvs.openbsd.org>2016-02-16 18:59:31 +0000
commita3bbb4d33730659bcac215f1f3b80dcfa8f07879 (patch)
tree5ef86ab7cf1f88a7b17699ee4e4b1bc0f9187bb5 /sys/arch/amd64/include
parent030d621b49092c2ddffe5effcf45c9738a13cac1 (diff)
Allow userland to initialize CR0 when resetting a VCPU instead of
hardcoding it. Be careful to obey VMX's must-be-0 and must-be-1 restrictions for CR0. This gives us the opportunity later to start VCPUs in real-mode, etc. (for those CPUs that support unrestricted guest). Be sure to update your vmd(8) also, the ioctl interface has changed. ok mlarkin@, deraadt@
Diffstat (limited to 'sys/arch/amd64/include')
-rw-r--r--sys/arch/amd64/include/vmmvar.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/amd64/include/vmmvar.h b/sys/arch/amd64/include/vmmvar.h
index 2a56036c393..14ec2c9d552 100644
--- a/sys/arch/amd64/include/vmmvar.h
+++ b/sys/arch/amd64/include/vmmvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmmvar.h,v 1.7 2016/01/04 01:35:56 mlarkin Exp $ */
+/* $OpenBSD: vmmvar.h,v 1.8 2016/02/16 18:59:30 stefan Exp $ */
/*
* Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org>
*
@@ -153,6 +153,7 @@ struct vcpu_init_state {
uint64_t vis_rflags;
uint64_t vis_rip;
uint64_t vis_rsp;
+ uint64_t vis_cr0;
uint64_t vis_cr3;
struct vcpu_segment_info vis_cs;