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

[Xen-devel] Re: [PATCH] Automatic bigsmp detection for i386 systems with more than 8 cpus



"Kamble, Nitin A" <nitin.a.kamble@xxxxxxxxx> wrote:
>
>    Linux kernel is able to enable bigsmp mode automatically if SMP i386
> kernel finds more than 8 cpus in the system. This patch adds this
> missing feature to Xen hypervisor, to enable Xen booting fine on systems
> with more than 8 CPUS without any commandline options.
> 

>  static void __init genapic_apic_force(char *str)
>  {
>       int i;
> @@ -51,6 +70,8 @@
>       }
>       if (!changed) 
>               genapic = &apic_default;
> +
> +    cmdline_apic = changed;
>  
>       printk(KERN_INFO "Using APIC driver %s\n", genapic->name);
>  } 
> diff -r 840e348a334e xen/arch/x86/mpparse.c
> --- a/xen/arch/x86/mpparse.c  Thu Sep  8 19:11:25 2005
> +++ b/xen/arch/x86/mpparse.c  Thu Sep  8 15:12:46 2005
> @@ -62,6 +62,7 @@
>  
>  int pic_mode;
>  unsigned long mp_lapic_addr;
> +unsigned int def_to_bigsmp = 0;
>  
>  /* Processor that is doing the boot up */
>  unsigned int boot_cpu_physical_apicid = -1U;
> @@ -213,6 +214,10 @@
>               ver = 0x10;
>       }
>       apic_version[m->mpc_apicid] = ver;
> +    if ((num_processors > 8) && APIC_XAPIC(ver) && (boot_cpu_data.x86_vendor 
> == X86_VENDOR_INTEL))
> +         def_to_bigsmp = 1;
> +    else
> +        def_to_bigsmp = 0;
>       bios_cpu_apicid[num_processors - 1] = m->mpc_apicid;
>  }

Please use hard tabs.  If the Xen patch comes in adding gunk like this
there will be loud complaints...


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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