[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH RFC 05/14] xen: vmx: Disable the 2M/1G superpage when SPP enabled
From: Zhang Yi Z <yi.z.zhang@xxxxxxxxxxxxxxx> Current we only support Sub-page Protection on the 4k page table. Signed-off-by: Zhang Yi Z <yi.z.zhang@xxxxxxxxxxxxxxx> --- xen/arch/x86/hvm/vmx/vmx.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c index 04ae0d6..a4c24bb 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -2497,6 +2497,12 @@ const struct hvm_function_table * __init start_vmx(void) vmx_function_table.get_guest_bndcfgs = vmx_get_guest_bndcfgs; } + if ( cpu_has_vmx_ept_spp ) + { + vmx_function_table.hap_capabilities &= ~HVM_HAP_SUPERPAGE_2MB; + vmx_function_table.hap_capabilities &= ~HVM_HAP_SUPERPAGE_1GB; + } + setup_vmcs_dump(); lbr_tsx_fixup_check(); -- 2.7.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |