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

Re: [Xen-devel] [PATCH v2] hypervisor/x86/xen: Unset X86_BUG_SYSRET_SS_ATTRS on Xen PV guests



On 04/05/15 16:02, Boris Ostrovsky wrote:
> 
> --- a/arch/x86/xen/enlighten.c
> +++ b/arch/x86/xen/enlighten.c
> @@ -1760,6 +1760,9 @@ static struct notifier_block xen_hvm_cpu_notifier = {
>  
>  static void __init xen_hvm_guest_init(void)
>  {
> +     if (xen_pv_domain())
> +             return;
> +

I take Andy's point that this looks a little odd, perhaps...

static void __init xen_platform_init(void)
{
    if (!xen_pv_domain())
        xen_hvm_guest_init();
}

Would be a useful follow up?

I'll apply as-is though

David

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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