On 21.10.2019 17:57, Wei Liu wrote:
> @@ -31,9 +31,39 @@ bool hypervisor_probe(void)
> if ( hops )
> return true;
>
> +/* Too early to use cpu_has_hypervisor */
> +if ( !(cpuid_ecx(1) & cpufeat_mask(X86_FEATURE_HYPERVISOR)) )
> +return false;
> +
> +#ifdef
On Mon, 21 Oct 2019 at 17:00, Wei Liu wrote:
>
> Take the chance to change probe_hypervisor to hypervisor_probe.
>
> Signed-off-by: Wei Liu
Reviewed-by: Paul Durrant
> ---
> V3:
> 1. Address Roger's comments
> 2. Change xen_hypervisor_ops to xen_ops
> ---
> xen/arch/x86/guest/hypervisor.c
Take the chance to change probe_hypervisor to hypervisor_probe.
Signed-off-by: Wei Liu
---
V3:
1. Address Roger's comments
2. Change xen_hypervisor_ops to xen_ops
---
xen/arch/x86/guest/hypervisor.c | 32 ++-
xen/arch/x86/guest/xen/pvh-boot.c | 2 +-