search for: acpi_parse_x2apic

Displaying 3 results from an estimated 3 matches for "acpi_parse_x2apic".

Did you mean: acpi_parse_lapic
2013 Oct 30
1
[PATCH] x86/ACPI/x2APIC: guard against out of range ACPI or APIC IDs
...MADT entries have valid ranges possibly extending beyond what our internal arrays can handle, and hence we need to guard ourselves against corrupting memory here. Signed-off-by: Jan Beulich <jbeulich@suse.com> --- a/xen/arch/x86/acpi/boot.c +++ b/xen/arch/x86/acpi/boot.c @@ -97,7 +97,20 @@ acpi_parse_x2apic(struct acpi_subtable_h acpi_table_print_madt_entry(header); - /* Record local apic id only when enabled */ + /* Record local apic id only when enabled and fitting. */ + if (processor->local_apic_id >= MAX_APICS || + processor->uid >= MAX_MADT_ENTRIES) { + printk("%sAPIC...
2011 Dec 12
0
[PATCH 1/4] ACPI: eliminate duplicate MADT parsing and unused SBF definitions
...arse_madt(ACPI_MADT_TYPE_INTERRUPT_SOURCE, acpi_patch_plat_int_src, 0) < 0) printk("Error parsing MADT - no PLAT_INT_SRC entries\n"); --- a/xen/arch/x86/acpi/boot.c +++ b/xen/arch/x86/acpi/boot.c @@ -87,9 +87,9 @@ static int __init acpi_parse_madt(struct static int __init acpi_parse_x2apic(struct acpi_subtable_header *header, const unsigned long end) { - struct acpi_table_x2apic *processor = NULL; - - processor = (struct acpi_table_x2apic *)header; + struct acpi_madt_local_x2apic *processor = + container_of(header, struct acpi_madt_local_x2apic, header); + bool_t enabled = 0; i...
2011 Mar 09
0
[PATCH 04/11] x86: cleanup mpparse.c
...er files where they are related to it). Of what remains, move whatever possible into .init.*, and some data items into .data.read_mostly. Signed-off-by: Jan Beulich <jbeulich@novell.com> --- 2011-03-09.orig/xen/arch/x86/acpi/boot.c +++ 2011-03-09/xen/arch/x86/acpi/boot.c @@ -177,7 +177,8 @@ acpi_parse_x2apic(struct acpi_subtable_h * when we use CPU hotplug. */ mp_register_lapic(processor->id, /* X2APIC ID */ - processor->flags.enabled); /* Enabled? */ + processor->flags.enabled, /* Enabled? */ + 0); return 0; } @@ -206,7 +207,8 @@ acpi_parse_lapic(struct acpi_subtable_...