• Prarit Bhargava's avatar
    x86/xen: Calculate __max_logical_packages on PV domains · 63e708f8
    Prarit Bhargava authored
    The kernel panics on PV domains because native_smp_cpus_done() is
    only called for HVM domains.
    
    Calculate __max_logical_packages for PV domains.
    
    Fixes: b4c0a732 ("x86/smpboot: Fix __max_logical_packages estimate")
    Signed-off-by: default avatarPrarit Bhargava <prarit@redhat.com>
    Tested-and-reported-by: default avatarSimon Gaiser <simon@invisiblethingslab.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: "H. Peter Anvin" <hpa@zytor.com>
    Cc: x86@kernel.org
    Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
    Cc: Juergen Gross <jgross@suse.com>
    Cc: Dou Liyang <douly.fnst@cn.fujitsu.com>
    Cc: Prarit Bhargava <prarit@redhat.com>
    Cc: Kate Stewart <kstewart@linuxfoundation.org>
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: Andy Lutomirski <luto@kernel.org>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
    Cc: xen-devel@lists.xenproject.org
    Reviewed-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
    Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
    63e708f8
smp.c 6.79 KB