Don't allow unprivileged users to crash things from ring 3
Thanks to William McCall for the patch!
OK mlarkin@
-/* $OpenBSD: vmm.c,v 1.216 2018/07/12 10:16:41 mlarkin Exp $ */
+/* $OpenBSD: vmm.c,v 1.217 2018/07/26 10:05:02 job Exp $ */
/*
* Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org>
*
return (EINVAL);
}
- if (insn_length != 2) {
- DPRINTF("%s: CPUID with instruction length %lld not "
- "supported\n", __func__, insn_length);
- return (EINVAL);
- }
-
rax = &vcpu->vc_gueststate.vg_rax;
msr_store =
(struct vmx_msr_store *)vcpu->vc_vmx_msr_exit_save_va;