[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN PATCH] x86/ACPI: Ignore entries with invalid APIC IDs when parsing MADT
On 12.09.2023 10:41, Jan Beulich wrote: > On 11.09.2023 20:05, Simon Gaiser wrote: >> You also commented about not logging the ignored entries. Until it's >> clear if the change in general is accepted in the end, I considered it >> pointless to address that detail. If you disagree and want a follow up >> for that, just let me know. > > I take a different perspective here: The patch shouldn't have been > committed without this aspect addressed, either verbally or by sending > a v2. I continue to think that an incremental change is warranted to > make sure logging of entries, at least with "cpuinfo" in use, remains > consistent with what we had before. Otherwise debugging of possible > issues becomes yet more difficult. Oh, and just to add to this: Because of excess verbosity resulting from such ambiguous MADT entries, for many years I have been carrying a private patch (reproduced below, just fyi). But since those entries are still in line with the spec, it didn't seem appropriate to me to propose this change for upstream inclusion. Jan --- unstable.orig/xen/arch/x86/mpparse.c +++ unstable/xen/arch/x86/mpparse.c @@ -809,8 +809,13 @@ int mp_register_lapic(u32 id, bool enabl }; if (MAX_APICS <= id) { - printk(KERN_WARNING "Processor #%d invalid (max %d)\n", - id, MAX_APICS); + static uint32_t max_warn = -1; + + if (id <= max_warn) { + printk(KERN_WARNING "Processor #%d invalid (max %d)\n", + id, MAX_APICS); + max_warn = id - 1; + } return -EINVAL; }
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |