VMX: only check the PB VM EC2 if EC1 is ok
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 1 Jul 2015 17:09:01 +0000 (10:09 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 2 Nov 2015 23:24:25 +0000 (18:24 -0500)
commita0a4ffe63cdd2c2cae1c0e6b580cb6b62717a62c
treec93f610736dd9d7d47699a4959b659c5d6b1d33e
parent762597a7cdf74861ec5e8587c0fdb63be375d191
VMX: only check the PB VM EC2 if EC1 is ok

We should only check the Secondary Processor-Based VM-Execution controls
if the bit is present in the primary controls.  It's one of our
set-to-one bits.

If we do the secondary checks without that magic bit set, we'll GPF.  We
don't have rdmsr_safe() or anything like that either.

Ultimately, once 'ok' is false, we're going to fail anyway.  It's just a
question of how much info we get.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/arch/x86/vmm/intel/vmx.c