The size of Xen's virtual vmcs region is 4096 bytes (see comment about
Virtual VMCS layout in include/asm-x86/hvm/vmx/vvmx.h). Correctly report
it to the guest in case when VMCS shadowing is not available instead of
providing H/W value (which is usually smaller).
Signed-off-by: Sergey Dyasli <sergey.dyasli@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
data = (host_data & (~0ul << 32)) |
(vmcs->vmcs_revision_id & 0x7fffffff);
unmap_domain_page(vmcs);
+
+ if ( !cpu_has_vmx_vmcs_shadowing )
+ {
+ /* Report vmcs_region_size as 4096 */
+ data &= ~VMX_BASIC_VMCS_SIZE_MASK;
+ data |= 1ULL << 44;
+ }
+
break;
}
case MSR_IA32_VMX_PINBASED_CTLS: