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

[Xen-changelog] [xen master] x86/mpparse: Don't print "limit reached" for every subsequent processor



commit 0e623fad00d84f7051950cb35db06bd0389999c9
Author:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Fri May 17 19:35:08 2019 +0100
Commit:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Fri May 31 19:11:29 2019 +0100

    x86/mpparse: Don't print "limit reached" for every subsequent processor
    
    When you boot Xen with the default 256 NR_CPUS, on a box with rather more
    processors, the resulting spew is unnecesserily verbose.  Instead, print the
    message once, e.g:
    
     (XEN) ACPI: X2APIC (apic_id[0x115] uid[0x115] enabled)
     (XEN) WARNING: NR_CPUS limit of 256 reached - ignoring further processors
     (XEN) ACPI: X2APIC (apic_id[0x119] uid[0x119] enabled)
     (XEN) ACPI: X2APIC (apic_id[0x11d] uid[0x11d] enabled)
     (XEN) ACPI: X2APIC (apic_id[0x121] uid[0x121] enabled)
    
    Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
    Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
---
 xen/arch/x86/mpparse.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/xen/arch/x86/mpparse.c b/xen/arch/x86/mpparse.c
index 16c93a935d..f057d9162f 100644
--- a/xen/arch/x86/mpparse.c
+++ b/xen/arch/x86/mpparse.c
@@ -157,15 +157,16 @@ static int MP_processor_info_x(struct 
mpc_config_processor *m,
        set_apicid(apicid, &phys_cpu_present_map);
 
        if (num_processors >= nr_cpu_ids) {
-               printk(KERN_WARNING "WARNING: NR_CPUS limit of %u reached."
-                       "  Processor ignored.\n", nr_cpu_ids);
+               printk_once(XENLOG_WARNING
+                           "WARNING: NR_CPUS limit of %u reached - ignoring 
further processors\n",
+                           nr_cpu_ids);
                return -ENOSPC;
        }
 
        if (num_processors >= 8 && hotplug
            && genapic.name == apic_default.name) {
-               printk(KERN_WARNING "WARNING: CPUs limit of 8 reached."
-                       " Processor ignored.\n");
+               printk_once(XENLOG_WARNING
+                           "WARNING: CPUs limit of 8 reached - ignoring futher 
processors\n");
                return -ENOSPC;
        }
 
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

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