[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH for-next v3 7/9] x86: switch xen implementation to use hypervisor framework



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 CONFIG_XEN_GUEST
> +    if ( xen_probe() )
> +    {
> +        hops = &xen_ops;
> +        return true;
> +    }
> +#endif
> +
>      return false;
>  }
>  
> +void hypervisor_setup(void)

__init?

> @@ -330,6 +325,13 @@ void hypervisor_resume(void)
>          pv_console_init();
>  }
>  
> +struct hypervisor_ops xen_ops = {

const (will require a corresponding adjustment in the earlier patch
then too)?

With these taken care of and the naming possibly adjusted according
to whatever the decision on the earlier patch s going to be
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>

Jan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.