X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmx_hw_info.c;h=da0009332861b025c0027cea9651144c5558c12b;hp=cbd34da6fd8274088a94162f34dd08abb2143ec4;hb=c0ecfba627c1d6c3f46d59bd4e5e6f883a494dc4;hpb=2282a040e60b24d3fb7c48bb197c5bff6636df67 diff --git a/palacios/src/palacios/vmx_hw_info.c b/palacios/src/palacios/vmx_hw_info.c index cbd34da..da00093 100644 --- a/palacios/src/palacios/vmx_hw_info.c +++ b/palacios/src/palacios/vmx_hw_info.c @@ -112,8 +112,8 @@ int v3_init_vmx_hw(struct vmx_hw_info * hw_info) { /* Get secondary PROCBASED controls if secondary controls are available (optional or required) */ /* Intel Manual 3B. Sect. G.3.3 */ - if ( ((hw_info->proc_ctrls.req_mask & 0x80000000) == 0) || - ((hw_info->proc_ctrls.req_val & 0x80000000) == 1) ) { + if ( (!(hw_info->proc_ctrls.req_mask & 0x80000000)) || + (hw_info->proc_ctrls.req_val & 0x80000000) ) { get_ctrl_caps(&(hw_info->sec_proc_ctrls), VMX_PROCBASED_CTLS2_MSR);