On Thu, Oct 19, 2017 at 2:11 AM, Zhang Yi <yi.z.zh...@linux.intel.com> wrote:
> From: Zhang Yi Z <yi.z.zh...@linux.intel.com>
>
> Current we only support Sub-page Protection on the 4k
> page table.
>
> Signed-off-by: Zhang Yi Z <yi.z.zh...@linux.intel.com>
> ---
>  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 )

I think this really only ought to happen if the command-line option
has also been enabled.

> +    {
> +        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@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to