From: "Jan Beulich" Subject: [PATCH 1/4] ACPI: eliminate duplicate MADT parsing and unused SBF definitions Date: Mon, 12 Dec 2011 16:09:37 +0000 Message-ID: <4EE63551020000780006705C@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartB6991351.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartB6991351.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Use their proper counterparts in include/acpi/actbl*.h instead. Signed-off-by: Jan Beulich --- a/xen/arch/ia64/xen/dom_fw_common.c +++ b/xen/arch/ia64/xen/dom_fw_common.c @@ -347,7 +347,7 @@ struct fake_acpi_tables { struct acpi_table_header dsdt; uint8_t aml[8 + 11 * MAX_VIRT_CPUS]; struct acpi_table_madt madt; - struct acpi_table_lsapic lsapic[MAX_VIRT_CPUS]; + struct acpi_madt_local_sapic lsapic[MAX_VIRT_CPUS]; uint8_t pm1a_event_block[4]; uint8_t pm1a_control_block[1]; uint8_t pm_timer_block[4]; @@ -365,7 +365,7 @@ dom_fw_fake_acpi(domain_t *d, struct fak struct acpi_table_facs *facs =3D &tables->facs; struct acpi_table_header *dsdt =3D &tables->dsdt; struct acpi_table_madt *madt =3D &tables->madt; - struct acpi_table_lsapic *lsapic =3D tables->lsapic; + struct acpi_madt_local_sapic *lsapic =3D tables->lsapic; int i; int aml_len; int nbr_cpus; @@ -492,18 +492,18 @@ dom_fw_fake_acpi(domain_t *d, struct fak /* An LSAPIC entry describes a CPU. */ nbr_cpus =3D 0; for (i =3D 0; i < MAX_VIRT_CPUS; i++) { - lsapic[i].header.type =3D ACPI_MADT_LSAPIC; - lsapic[i].header.length =3D sizeof(struct acpi_table_lsapic= ); - lsapic[i].acpi_id =3D i; + lsapic[i].header.type =3D ACPI_MADT_TYPE_LOCAL_SAPIC; + lsapic[i].header.length =3D sizeof(lsapic[i]); + lsapic[i].processor_id =3D i; lsapic[i].id =3D i; lsapic[i].eid =3D 0; if (xen_ia64_is_vcpu_allocated(d, i)) { - lsapic[i].flags.enabled =3D 1; + lsapic[i].lapic_flags =3D ACPI_MADT_ENABLED; nbr_cpus++; } } madt->header.length =3D sizeof(struct acpi_table_madt) + - nbr_cpus * sizeof(struct acpi_table_lsapic); + nbr_cpus * sizeof(*lsapic); madt->header.checksum =3D -acpi_tb_checksum((u8*)madt, madt->header.length); return; --- a/xen/arch/ia64/xen/dom_fw_dom0.c +++ b/xen/arch/ia64/xen/dom_fw_dom0.c @@ -53,11 +53,11 @@ static u32 lsapic_nbr; static int __init acpi_update_lsapic(struct acpi_subtable_header * header, const unsigned = long end) { - struct acpi_table_lsapic *lsapic; + struct acpi_madt_local_sapic *lsapic =3D + container_of(header, struct acpi_madt_local_sapic, = header); int enable; =20 - lsapic =3D (struct acpi_table_lsapic *)header; - if (!lsapic) + if (!header) return -EINVAL; =20 if (lsapic_nbr < dom0->max_vcpus && dom0->vcpu[lsapic_nbr] !=3D = NULL) @@ -65,14 +65,14 @@ acpi_update_lsapic(struct acpi_subtable_ else enable =3D 0; =20 - if (lsapic->flags.enabled && enable) { + if ((lsapic->lapic_flags & ACPI_MADT_ENABLED) && enable) { printk("enable lsapic entry: 0x%lx\n", (u64) lsapic); lsapic->id =3D lsapic_nbr; lsapic->eid =3D 0; lsapic_nbr++; - } else if (lsapic->flags.enabled) { + } else if (lsapic->lapic_flags & ACPI_MADT_ENABLED) { printk("DISABLE lsapic entry: 0x%lx\n", (u64) lsapic); - lsapic->flags.enabled =3D 0; + lsapic->lapic_flags &=3D ~ACPI_MADT_ENABLED; lsapic->id =3D 0; lsapic->eid =3D 0; } @@ -83,10 +83,11 @@ static int __init acpi_patch_plat_int_src(struct acpi_subtable_header * header, const unsigned long end) { - struct acpi_table_plat_int_src *plintsrc; + struct acpi_madt_interrupt_source *plintsrc =3D + container_of(header, struct acpi_madt_interrupt_source, + header); =20 - plintsrc =3D (struct acpi_table_plat_int_src *)header; - if (!plintsrc) + if (!header) return -EINVAL; =20 if (plintsrc->type =3D=3D ACPI_INTERRUPT_CPEI) { @@ -193,12 +194,13 @@ static void __init touch_acpi_table(void */ acpi_table_parse(ACPI_SIG_MADT, acpi_backup_table); =20 - if (acpi_table_parse_madt(ACPI_MADT_LSAPIC, acpi_update_lsapic, 0) = < 0) + if (acpi_table_parse_madt(ACPI_MADT_TYPE_LOCAL_SAPIC, + acpi_update_lsapic, 0) < 0) printk("Error parsing MADT - no LAPIC entries\n"); =20 acpi_update_madt_checksum(madt); =20 - if (acpi_table_parse_madt(ACPI_MADT_PLAT_INT_SRC, + if (acpi_table_parse_madt(ACPI_MADT_TYPE_INTERRUPT_SOURCE, acpi_patch_plat_int_src, 0) < 0) printk("Error parsing MADT - no PLAT_INT_SRC entries\n"); =20 --- 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 =3D NULL; - - processor =3D (struct acpi_table_x2apic *)header; + struct acpi_madt_local_x2apic *processor =3D + container_of(header, struct acpi_madt_local_x2apic, = header); + bool_t enabled =3D 0; =20 if (BAD_MADT_ENTRY(processor, end)) return -EINVAL; @@ -97,8 +97,11 @@ acpi_parse_x2apic(struct acpi_subtable_h acpi_table_print_madt_entry(header); =20 /* Record local apic id only when enabled */ - if (processor->flags.enabled) - x86_acpiid_to_apicid[processor->acpi_uid] =3D processor->id= ; + if (processor->lapic_flags & ACPI_MADT_ENABLED) { + x86_acpiid_to_apicid[processor->uid] =3D + processor->local_apic_id; + enabled =3D 1; + } =20 /* * We need to register disabled CPU as well to permit @@ -107,9 +110,7 @@ acpi_parse_x2apic(struct acpi_subtable_h * to not preallocating memory for all NR_CPUS * when we use CPU hotplug. */ - mp_register_lapic(processor->id, /* X2APIC ID */ - processor->flags.enabled, /* Enabled? */ - 0); + mp_register_lapic(processor->local_apic_id, enabled, 0); =20 return 0; } @@ -117,9 +118,9 @@ acpi_parse_x2apic(struct acpi_subtable_h static int __init acpi_parse_lapic(struct acpi_subtable_header * header, const unsigned = long end) { - struct acpi_table_lapic *processor =3D NULL; - - processor =3D (struct acpi_table_lapic *)header; + struct acpi_madt_local_apic *processor =3D + container_of(header, struct acpi_madt_local_apic, header); + bool_t enabled =3D 0; =20 if (BAD_MADT_ENTRY(processor, end)) return -EINVAL; @@ -127,8 +128,10 @@ acpi_parse_lapic(struct acpi_subtable_he acpi_table_print_madt_entry(header); =20 /* Record local apic id only when enabled */ - if (processor->flags.enabled) - x86_acpiid_to_apicid[processor->acpi_id] =3D processor->id;= + if (processor->lapic_flags & ACPI_MADT_ENABLED) { + x86_acpiid_to_apicid[processor->processor_id] =3D = processor->id; + enabled =3D 1; + } =20 /* * We need to register disabled CPU as well to permit @@ -137,9 +140,7 @@ acpi_parse_lapic(struct acpi_subtable_he * to not preallocating memory for all NR_CPUS * when we use CPU hotplug. */ - mp_register_lapic(processor->id, /* APIC ID */ - processor->flags.enabled, /* Enabled? */ - 0); + mp_register_lapic(processor->id, enabled, 0); =20 return 0; } @@ -148,9 +149,9 @@ static int __init acpi_parse_lapic_addr_ovr(struct acpi_subtable_header * header, const unsigned long end) { - struct acpi_table_lapic_addr_ovr *lapic_addr_ovr =3D NULL; - - lapic_addr_ovr =3D (struct acpi_table_lapic_addr_ovr *)header; + struct acpi_madt_local_apic_override *lapic_addr_ovr =3D + container_of(header, struct acpi_madt_local_apic_override, + header); =20 if (BAD_MADT_ENTRY(lapic_addr_ovr, end)) return -EINVAL; @@ -164,9 +165,9 @@ static int __init acpi_parse_x2apic_nmi(struct acpi_subtable_header *header, const unsigned long end) { - struct acpi_table_x2apic_nmi *x2apic_nmi =3D NULL; - - x2apic_nmi =3D (struct acpi_table_x2apic_nmi *)header; + struct acpi_madt_local_x2apic_nmi *x2apic_nmi =3D + container_of(header, struct acpi_madt_local_x2apic_nmi, + header); =20 if (BAD_MADT_ENTRY(x2apic_nmi, end)) return -EINVAL; @@ -182,9 +183,8 @@ acpi_parse_x2apic_nmi(struct acpi_subtab static int __init acpi_parse_lapic_nmi(struct acpi_subtable_header * header, const unsigned = long end) { - struct acpi_table_lapic_nmi *lapic_nmi =3D NULL; - - lapic_nmi =3D (struct acpi_table_lapic_nmi *)header; + struct acpi_madt_local_apic_nmi *lapic_nmi =3D + container_of(header, struct acpi_madt_local_apic_nmi, = header); =20 if (BAD_MADT_ENTRY(lapic_nmi, end)) return -EINVAL; @@ -204,9 +204,8 @@ acpi_parse_lapic_nmi(struct acpi_subtabl static int __init acpi_parse_ioapic(struct acpi_subtable_header * header, const unsigned = long end) { - struct acpi_table_ioapic *ioapic =3D NULL; - - ioapic =3D (struct acpi_table_ioapic *)header; + struct acpi_madt_io_apic *ioapic =3D + container_of(header, struct acpi_madt_io_apic, header); =20 if (BAD_MADT_ENTRY(ioapic, end)) return -EINVAL; @@ -223,9 +222,9 @@ static int __init acpi_parse_int_src_ovr(struct acpi_subtable_header * header, const unsigned long end) { - struct acpi_table_int_src_ovr *intsrc =3D NULL; - - intsrc =3D (struct acpi_table_int_src_ovr *)header; + struct acpi_madt_interrupt_override *intsrc =3D + container_of(header, struct acpi_madt_interrupt_override, + header); =20 if (BAD_MADT_ENTRY(intsrc, end)) return -EINVAL; @@ -233,14 +232,15 @@ acpi_parse_int_src_ovr(struct acpi_subta acpi_table_print_madt_entry(header); =20 if (acpi_skip_timer_override && - intsrc->bus_irq =3D=3D 0 && intsrc->global_irq =3D=3D 2) { + intsrc->source_irq =3D=3D 0 && intsrc->global_irq =3D=3D 2) { printk(PREFIX "BIOS IRQ0 pin2 override ignored.\n")= ; return 0; } =20 - mp_override_legacy_irq(intsrc->bus_irq, - intsrc->flags.polarity, - intsrc->flags.trigger, intsrc->global_irq); + mp_override_legacy_irq(intsrc->source_irq, + ACPI_MADT_GET_POLARITY(intsrc->inti_flags), + ACPI_MADT_GET_TRIGGER(intsrc->inti_flags), + intsrc->global_irq); =20 return 0; } @@ -248,9 +248,8 @@ acpi_parse_int_src_ovr(struct acpi_subta static int __init acpi_parse_nmi_src(struct acpi_subtable_header * header, const unsigned = long end) { - struct acpi_table_nmi_src *nmi_src =3D NULL; - - nmi_src =3D (struct acpi_table_nmi_src *)header; + struct acpi_madt_nmi_source *nmi_src =3D + container_of(header, struct acpi_madt_nmi_source, header); =20 if (BAD_MADT_ENTRY(nmi_src, end)) return -EINVAL; @@ -270,7 +269,7 @@ static int __init acpi_parse_hpet(struct { struct acpi_table_hpet *hpet_tbl =3D (struct acpi_table_hpet = *)table; =20 - if (hpet_tbl->address.space_id !=3D ACPI_SPACE_MEM) { + if (hpet_tbl->address.space_id !=3D ACPI_ADR_SPACE_SYSTEM_MEMORY) = { printk(KERN_WARNING PREFIX "HPET timers must be located in = " "memory.\n"); return -1; --- a/xen/arch/x86/srat.c +++ b/xen/arch/x86/srat.c @@ -396,7 +396,8 @@ void __init srat_parse_regions(u64 addr) return; =20 srat_region_mask =3D fill_mask(addr - 1); - acpi_table_parse_srat(ACPI_SRAT_MEMORY_AFFINITY, srat_parse_region,= 0); + acpi_table_parse_srat(ACPI_SRAT_TYPE_MEMORY_AFFINITY, + srat_parse_region, 0); =20 for (mask =3D srat_region_mask, i =3D 0; mask && i < e820.nr_map; = i++) { if (e820.map[i].type !=3D E820_RAM) --- a/xen/drivers/acpi/numa.c +++ b/xen/drivers/acpi/numa.c @@ -46,7 +46,7 @@ void __init acpi_table_print_srat_entry( =20 switch (header->type) { =20 - case ACPI_SRAT_PROCESSOR_AFFINITY: + case ACPI_SRAT_TYPE_CPU_AFFINITY: #ifdef ACPI_DEBUG_OUTPUT { struct acpi_srat_cpu_affinity *p =3D @@ -68,7 +68,7 @@ void __init acpi_table_print_srat_entry( #endif /* ACPI_DEBUG_OUTPUT */ break; =20 - case ACPI_SRAT_MEMORY_AFFINITY: + case ACPI_SRAT_TYPE_MEMORY_AFFINITY: #ifdef ACPI_DEBUG_OUTPUT { struct acpi_srat_mem_affinity *p =3D @@ -194,8 +194,8 @@ int __init acpi_parse_srat(struct acpi_t } =20 int __init -acpi_table_parse_srat(enum acpi_srat_entry_id id, - acpi_madt_entry_handler handler, unsigned int = max_entries) +acpi_table_parse_srat(int id, acpi_madt_entry_handler handler, + unsigned int max_entries) { return acpi_table_parse_entries(ACPI_SIG_SRAT, sizeof(struct acpi_table_srat), = id, @@ -206,12 +206,13 @@ int __init acpi_numa_init(void) { /* SRAT: Static Resource Affinity Table */ if (!acpi_table_parse(ACPI_SIG_SRAT, acpi_parse_srat)) { - acpi_table_parse_srat(ACPI_SRAT_X2APIC_AFFINITY, - acpi_parse_x2apic_affinity, = NR_CPUS); - acpi_table_parse_srat(ACPI_SRAT_PROCESSOR_AFFINITY, - acpi_parse_processor_affinit= y, - NR_CPUS); - acpi_table_parse_srat(ACPI_SRAT_MEMORY_AFFINITY, acpi_parse= _memory_affinity, NR_NODE_MEMBLKS); // IA64 specific + acpi_table_parse_srat(ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY, + acpi_parse_x2apic_affinity, = NR_CPUS); + acpi_table_parse_srat(ACPI_SRAT_TYPE_CPU_AFFINITY, + acpi_parse_processor_affinity, = NR_CPUS); + acpi_table_parse_srat(ACPI_SRAT_TYPE_MEMORY_AFFINITY, + acpi_parse_memory_affinity, + NR_NODE_MEMBLKS); } =20 /* SLIT: System Locality Information Table */ --- a/xen/include/xen/acpi.h +++ b/xen/include/xen/acpi.h @@ -34,123 +34,13 @@ #include #include =20 -#ifdef CONFIG_ACPI_BOOT - -enum acpi_madt_entry_id { - ACPI_MADT_LAPIC =3D 0, - ACPI_MADT_IOAPIC, - ACPI_MADT_INT_SRC_OVR, - ACPI_MADT_NMI_SRC, - ACPI_MADT_LAPIC_NMI, - ACPI_MADT_LAPIC_ADDR_OVR, - ACPI_MADT_IOSAPIC, - ACPI_MADT_LSAPIC, - ACPI_MADT_PLAT_INT_SRC, - ACPI_MADT_X2APIC, - ACPI_MADT_X2APIC_NMI, - ACPI_MADT_ENTRY_COUNT -}; - -typedef struct { - u16 polarity:2; - u16 trigger:2; - u16 reserved:12; -} __attribute__ ((packed)) acpi_interrupt_flags; - -struct acpi_table_lapic { - struct acpi_subtable_header header; - u8 acpi_id; - u8 id; - struct { - u32 enabled:1; - u32 reserved:31; - } flags; -} __attribute__ ((packed)); - -struct acpi_table_x2apic { - struct acpi_subtable_header header; - u16 reserved; - u32 id; - struct { - u32 enabled:1; - u32 reserved:31; - } flags; - u32 acpi_uid; -} __attribute__ ((packed)); - -struct acpi_table_ioapic { - struct acpi_subtable_header header; - u8 id; - u8 reserved; - u32 address; - u32 global_irq_base; -} __attribute__ ((packed)); - -struct acpi_table_int_src_ovr { - struct acpi_subtable_header header; - u8 bus; - u8 bus_irq; - u32 global_irq; - acpi_interrupt_flags flags; -} __attribute__ ((packed)); - -struct acpi_table_nmi_src { - struct acpi_subtable_header header; - acpi_interrupt_flags flags; - u32 global_irq; -} __attribute__ ((packed)); - -struct acpi_table_lapic_nmi { - struct acpi_subtable_header header; - u8 acpi_id; - acpi_interrupt_flags flags; - u8 lint; -} __attribute__ ((packed)); - -struct acpi_table_x2apic_nmi { - struct acpi_subtable_header header; - acpi_interrupt_flags flags; - u32 acpi_uid; - u8 lint; - u8 reserved[3]; -} __attribute__ ((packed)); +#define ACPI_MADT_GET_(fld, x) (((x) & ACPI_MADT_##fld##_MASK) / \ + (ACPI_MADT_##fld##_MASK & -ACPI_MADT_##fld##_MASK)) =20 -struct acpi_table_lapic_addr_ovr { - struct acpi_subtable_header header; - u8 reserved[2]; - u64 address; -} __attribute__ ((packed)); - -struct acpi_table_iosapic { - struct acpi_subtable_header header; - u8 id; - u8 reserved; - u32 global_irq_base; - u64 address; -} __attribute__ ((packed)); - -struct acpi_table_lsapic { - struct acpi_subtable_header header; - u8 acpi_id; - u8 id; - u8 eid; - u8 reserved[3]; - struct { - u32 enabled:1; - u32 reserved:31; - } flags; -} __attribute__ ((packed)); +#define ACPI_MADT_GET_POLARITY(inti) ACPI_MADT_GET_(POLARITY, inti) +#define ACPI_MADT_GET_TRIGGER(inti) ACPI_MADT_GET_(TRIGGER, inti) =20 -struct acpi_table_plat_int_src { - struct acpi_subtable_header header; - acpi_interrupt_flags flags; - u8 type; /* See acpi_interrupt_type */ - u8 id; - u8 eid; - u8 iosapic_vector; - u32 global_irq; - u32 reserved; -} __attribute__ ((packed)); +#ifdef CONFIG_ACPI_BOOT =20 enum acpi_interrupt_id { ACPI_INTERRUPT_PMI =3D 1, @@ -159,42 +49,6 @@ enum acpi_interrupt_id { ACPI_INTERRUPT_COUNT }; =20 -#define ACPI_SPACE_MEM 0 - -/* - * Simple Boot Flags - * http://www.microsoft.com/whdc/hwdev/resources/specs/simp_bios.mspx=20 - */ -struct acpi_table_sbf -{ - u8 sbf_signature[4]; - u32 sbf_len; - u8 sbf_revision; - u8 sbf_csum; - u8 sbf_oemid[6]; - u8 sbf_oemtable[8]; - u8 sbf_revdata[4]; - u8 sbf_creator[4]; - u8 sbf_crearev[4]; - u8 sbf_cmos; - u8 sbf_spare[3]; -} __attribute__ ((packed)); - -enum acpi_srat_entry_id { - ACPI_SRAT_PROCESSOR_AFFINITY =3D 0, - ACPI_SRAT_MEMORY_AFFINITY, - ACPI_SRAT_X2APIC_AFFINITY, - ACPI_SRAT_ENTRY_COUNT -}; - -enum acpi_address_range_id { - ACPI_ADDRESS_RANGE_MEMORY =3D 1, - ACPI_ADDRESS_RANGE_RESERVED =3D 2, - ACPI_ADDRESS_RANGE_ACPI =3D 3, - ACPI_ADDRESS_RANGE_NVS =3D 4, - ACPI_ADDRESS_RANGE_COUNT -}; - /* DMA Remapping Reporting Table (DMAR) */ =20 #define DMAR_FLAGS_INTR_REMAP 0x1 /* intr remap supported */ @@ -282,8 +136,8 @@ int acpi_table_parse(char *id, acpi_tabl int acpi_table_parse_entries(char *id, unsigned long table_size, int entry_id, acpi_table_entry_handler handler, unsigned int = max_entries); int acpi_table_parse_madt(enum acpi_madt_type id, acpi_table_entry_handler= handler, unsigned int max_entries); -int acpi_table_parse_srat(enum acpi_srat_entry_id id, - acpi_madt_entry_handler handler, unsigned int max_entries); +int acpi_table_parse_srat(int id, acpi_madt_entry_handler handler, + unsigned int max_entries); int acpi_parse_srat(struct acpi_table_header *); void acpi_table_print (struct acpi_table_header *header, unsigned long = phys_addr); void acpi_table_print_madt_entry (struct acpi_subtable_header *madt); --=__PartB6991351.0__= Content-Type: text/plain; name="acpi-duplicate-structs.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="acpi-duplicate-structs.patch" ACPI: eliminate duplicate MADT parsing and unused SBF definitions=0A=0AUse = their proper counterparts in include/acpi/actbl*.h instead.=0A=0ASigned-off= -by: Jan Beulich =0A=0A--- a/xen/arch/ia64/xen/dom_fw_co= mmon.c=0A+++ b/xen/arch/ia64/xen/dom_fw_common.c=0A@@ -347,7 +347,7 @@ = struct fake_acpi_tables {=0A struct acpi_table_header dsdt;=0A = uint8_t aml[8 + 11 * MAX_VIRT_CPUS];=0A struct acpi_table_madt = madt;=0A- struct acpi_table_lsapic lsapic[MAX_VIRT_CPUS];=0A+ = struct acpi_madt_local_sapic lsapic[MAX_VIRT_CPUS];=0A uint8_t pm1a_event_= block[4];=0A uint8_t pm1a_control_block[1];=0A uint8_t pm_timer_bl= ock[4];=0A@@ -365,7 +365,7 @@ dom_fw_fake_acpi(domain_t *d, struct fak=0A = struct acpi_table_facs *facs =3D &tables->facs;=0A struct acpi_table_h= eader *dsdt =3D &tables->dsdt;=0A struct acpi_table_madt *madt =3D = &tables->madt;=0A- struct acpi_table_lsapic *lsapic =3D tables->lsapic= ;=0A+ struct acpi_madt_local_sapic *lsapic =3D tables->lsapic;=0A = int i;=0A int aml_len;=0A int nbr_cpus;=0A@@ -492,18 +492,18 = @@ dom_fw_fake_acpi(domain_t *d, struct fak=0A /* An LSAPIC entry = describes a CPU. */=0A nbr_cpus =3D 0;=0A for (i =3D 0; i < = MAX_VIRT_CPUS; i++) {=0A- lsapic[i].header.type =3D = ACPI_MADT_LSAPIC;=0A- lsapic[i].header.length =3D sizeof(struct = acpi_table_lsapic);=0A- lsapic[i].acpi_id =3D i;=0A+ = lsapic[i].header.type =3D ACPI_MADT_TYPE_LOCAL_SAPIC;=0A+ = lsapic[i].header.length =3D sizeof(lsapic[i]);=0A+ lsapic[i].p= rocessor_id =3D i;=0A lsapic[i].id =3D i;=0A lsapic[i].e= id =3D 0;=0A if (xen_ia64_is_vcpu_allocated(d, i)) {=0A- = lsapic[i].flags.enabled =3D 1;=0A+ lsapic[i].l= apic_flags =3D ACPI_MADT_ENABLED;=0A nbr_cpus++;=0A = }=0A }=0A madt->header.length =3D sizeof(struct acpi_table_madt) = +=0A- nbr_cpus * sizeof(struct acpi_table_lsapic);= =0A+ nbr_cpus * sizeof(*lsapic);=0A madt->heade= r.checksum =3D -acpi_tb_checksum((u8*)madt,=0A = madt->header.length);=0A return;=0A--- a/xen/arch/ia64/xen/d= om_fw_dom0.c=0A+++ b/xen/arch/ia64/xen/dom_fw_dom0.c=0A@@ -53,11 +53,11 @@ = static u32 lsapic_nbr;=0A static int __init=0A acpi_update_lsapic(struct = acpi_subtable_header * header, const unsigned long end)=0A {=0A- = struct acpi_table_lsapic *lsapic;=0A+ struct acpi_madt_local_sapic = *lsapic =3D=0A+ container_of(header, struct acpi_madt_local_sapic, = header);=0A int enable;=0A =0A- lsapic =3D (struct acpi_table_lsapi= c *)header;=0A- if (!lsapic)=0A+ if (!header)=0A = return -EINVAL;=0A =0A if (lsapic_nbr < dom0->max_vcpus && dom0->vcpu[lsap= ic_nbr] !=3D NULL)=0A@@ -65,14 +65,14 @@ acpi_update_lsapic(struct = acpi_subtable_=0A else=0A enable =3D 0;=0A =0A- if = (lsapic->flags.enabled && enable) {=0A+ if ((lsapic->lapic_flags & = ACPI_MADT_ENABLED) && enable) {=0A printk("enable lsapic = entry: 0x%lx\n", (u64) lsapic);=0A lsapic->id =3D lsapic_nbr;= =0A lsapic->eid =3D 0;=0A lsapic_nbr++;=0A- } = else if (lsapic->flags.enabled) {=0A+ } else if (lsapic->lapic_flags & = ACPI_MADT_ENABLED) {=0A printk("DISABLE lsapic entry: = 0x%lx\n", (u64) lsapic);=0A- lsapic->flags.enabled =3D 0;=0A+ = lsapic->lapic_flags &=3D ~ACPI_MADT_ENABLED;=0A = lsapic->id =3D 0;=0A lsapic->eid =3D 0;=0A }=0A@@ -83,10 = +83,11 @@ static int __init=0A acpi_patch_plat_int_src(struct acpi_subtable= _header * header,=0A const unsigned long end)=0A {=0A- = struct acpi_table_plat_int_src *plintsrc;=0A+ struct acpi_madt_interrupt_= source *plintsrc =3D=0A+ container_of(header, struct = acpi_madt_interrupt_source,=0A+ header);=0A =0A- = plintsrc =3D (struct acpi_table_plat_int_src *)header;=0A- if = (!plintsrc)=0A+ if (!header)=0A return -EINVAL;=0A =0A if = (plintsrc->type =3D=3D ACPI_INTERRUPT_CPEI) {=0A@@ -193,12 +194,13 @@ = static void __init touch_acpi_table(void=0A */=0A acpi_table_parse(AC= PI_SIG_MADT, acpi_backup_table);=0A =0A- if (acpi_table_parse_madt(A= CPI_MADT_LSAPIC, acpi_update_lsapic, 0) < 0)=0A+ if (acpi_table_pars= e_madt(ACPI_MADT_TYPE_LOCAL_SAPIC,=0A+ = acpi_update_lsapic, 0) < 0)=0A printk("Error parsing MADT - no = LAPIC entries\n");=0A =0A acpi_update_madt_checksum(madt);=0A =0A- = if (acpi_table_parse_madt(ACPI_MADT_PLAT_INT_SRC,=0A+ if (acpi_table_pars= e_madt(ACPI_MADT_TYPE_INTERRUPT_SOURCE,=0A = acpi_patch_plat_int_src, 0) < 0)=0A printk("Error parsing MADT = - no PLAT_INT_SRC entries\n");=0A =0A--- a/xen/arch/x86/acpi/boot.c=0A+++ = b/xen/arch/x86/acpi/boot.c=0A@@ -87,9 +87,9 @@ static int __init acpi_parse= _madt(struct=0A static int __init=0A acpi_parse_x2apic(struct acpi_subtable= _header *header, const unsigned long end)=0A {=0A- struct acpi_table_x= 2apic *processor =3D NULL;=0A-=0A- processor =3D (struct acpi_table_x2= apic *)header;=0A+ struct acpi_madt_local_x2apic *processor =3D=0A+ = container_of(header, struct acpi_madt_local_x2apic, header);=0A+ = bool_t enabled =3D 0;=0A =0A if (BAD_MADT_ENTRY(processor, end))=0A = return -EINVAL;=0A@@ -97,8 +97,11 @@ acpi_parse_x2apic(struct acpi_subtable= _h=0A acpi_table_print_madt_entry(header);=0A =0A /* Record local = apic id only when enabled */=0A- if (processor->flags.enabled)=0A- = x86_acpiid_to_apicid[processor->acpi_uid] =3D processor->id;=0A+ = if (processor->lapic_flags & ACPI_MADT_ENABLED) {=0A+ x86_acpiid_= to_apicid[processor->uid] =3D=0A+ processor->local_ap= ic_id;=0A+ enabled =3D 1;=0A+ }=0A =0A /*=0A * = We need to register disabled CPU as well to permit=0A@@ -107,9 +110,7 @@ = acpi_parse_x2apic(struct acpi_subtable_h=0A * to not preallocating = memory for all NR_CPUS=0A * when we use CPU hotplug.=0A */=0A- = mp_register_lapic(processor->id, /* X2APIC ID */=0A- = processor->flags.enabled, /* Enabled? */=0A- = 0);=0A+ mp_register_lapic(processor->local_apic_id, enabled, 0);=0A =0A = return 0;=0A }=0A@@ -117,9 +118,9 @@ acpi_parse_x2apic(struct acpi_subtable= _h=0A static int __init=0A acpi_parse_lapic(struct acpi_subtable_header * = header, const unsigned long end)=0A {=0A- struct acpi_table_lapic = *processor =3D NULL;=0A-=0A- processor =3D (struct acpi_table_lapic = *)header;=0A+ struct acpi_madt_local_apic *processor =3D=0A+ = container_of(header, struct acpi_madt_local_apic, header);=0A+ bool_t = enabled =3D 0;=0A =0A if (BAD_MADT_ENTRY(processor, end))=0A = return -EINVAL;=0A@@ -127,8 +128,10 @@ acpi_parse_lapic(struct acpi_subtabl= e_he=0A acpi_table_print_madt_entry(header);=0A =0A /* Record = local apic id only when enabled */=0A- if (processor->flags.enabled)=0A- = x86_acpiid_to_apicid[processor->acpi_id] =3D processor->id;=0A+ if = (processor->lapic_flags & ACPI_MADT_ENABLED) {=0A+ x86_acpiid_= to_apicid[processor->processor_id] =3D processor->id;=0A+ = enabled =3D 1;=0A+ }=0A =0A /*=0A * We need to register = disabled CPU as well to permit=0A@@ -137,9 +140,7 @@ acpi_parse_lapic(struc= t acpi_subtable_he=0A * to not preallocating memory for all NR_CPUS=0A = * when we use CPU hotplug.=0A */=0A- mp_register_lapic(processor->id, = /* APIC ID */=0A- processor->flags.enabled, /* = Enabled? */=0A- 0);=0A+ mp_register_lapic(processor= ->id, enabled, 0);=0A =0A return 0;=0A }=0A@@ -148,9 +149,9 @@ = static int __init=0A acpi_parse_lapic_addr_ovr(struct acpi_subtable_header = * header,=0A const unsigned long end)=0A {=0A- = struct acpi_table_lapic_addr_ovr *lapic_addr_ovr =3D NULL;=0A-=0A- = lapic_addr_ovr =3D (struct acpi_table_lapic_addr_ovr *)header;=0A+ = struct acpi_madt_local_apic_override *lapic_addr_ovr =3D=0A+ = container_of(header, struct acpi_madt_local_apic_override,=0A+ = header);=0A =0A if (BAD_MADT_ENTRY(lapic_addr_ovr, end))=0A = return -EINVAL;=0A@@ -164,9 +165,9 @@ static int __init=0A acpi_parse_x2api= c_nmi(struct acpi_subtable_header *header,=0A const = unsigned long end)=0A {=0A- struct acpi_table_x2apic_nmi *x2apic_nmi = =3D NULL;=0A-=0A- x2apic_nmi =3D (struct acpi_table_x2apic_nmi = *)header;=0A+ struct acpi_madt_local_x2apic_nmi *x2apic_nmi =3D=0A+ = container_of(header, struct acpi_madt_local_x2apic_nmi,=0A+ = header);=0A =0A if (BAD_MADT_ENTRY(x2apic_nmi, end))=0A = return -EINVAL;=0A@@ -182,9 +183,8 @@ acpi_parse_x2apic_nmi(struct = acpi_subtab=0A static int __init=0A acpi_parse_lapic_nmi(struct acpi_subtab= le_header * header, const unsigned long end)=0A {=0A- struct acpi_table_l= apic_nmi *lapic_nmi =3D NULL;=0A-=0A- lapic_nmi =3D (struct acpi_table_la= pic_nmi *)header;=0A+ struct acpi_madt_local_apic_nmi *lapic_nmi =3D=0A+ = container_of(header, struct acpi_madt_local_apic_nmi, header);=0A = =0A if (BAD_MADT_ENTRY(lapic_nmi, end))=0A return -EINVAL;=0A@= @ -204,9 +204,8 @@ acpi_parse_lapic_nmi(struct acpi_subtabl=0A static int = __init=0A acpi_parse_ioapic(struct acpi_subtable_header * header, const = unsigned long end)=0A {=0A- struct acpi_table_ioapic *ioapic =3D = NULL;=0A-=0A- ioapic =3D (struct acpi_table_ioapic *)header;=0A+ = struct acpi_madt_io_apic *ioapic =3D=0A+ container_of(header= , struct acpi_madt_io_apic, header);=0A =0A if (BAD_MADT_ENTRY(ioapic, = end))=0A return -EINVAL;=0A@@ -223,9 +222,9 @@ static int = __init=0A acpi_parse_int_src_ovr(struct acpi_subtable_header * header,=0A = const unsigned long end)=0A {=0A- struct acpi_table_i= nt_src_ovr *intsrc =3D NULL;=0A-=0A- intsrc =3D (struct acpi_table_int_s= rc_ovr *)header;=0A+ struct acpi_madt_interrupt_override *intsrc = =3D=0A+ container_of(header, struct acpi_madt_interrupt_override,= =0A+ header);=0A =0A if (BAD_MADT_ENTRY(intsrc, = end))=0A return -EINVAL;=0A@@ -233,14 +232,15 @@ acpi_parse_= int_src_ovr(struct acpi_subta=0A acpi_table_print_madt_entry(header)= ;=0A =0A if (acpi_skip_timer_override &&=0A- intsrc->bus= _irq =3D=3D 0 && intsrc->global_irq =3D=3D 2) {=0A+ intsrc->source_= irq =3D=3D 0 && intsrc->global_irq =3D=3D 2) {=0A = printk(PREFIX "BIOS IRQ0 pin2 override ignored.\n");=0A = return 0;=0A }=0A =0A- mp_override_legacy_irq(intsrc->bus_irq,=0A-= intsrc->flags.polarity,=0A- = intsrc->flags.trigger, intsrc->global_irq);=0A+ mp_override_legacy_= irq(intsrc->source_irq,=0A+ ACPI_MADT_GET_POLARI= TY(intsrc->inti_flags),=0A+ ACPI_MADT_GET_TRIGGE= R(intsrc->inti_flags),=0A+ intsrc->global_irq);= =0A =0A return 0;=0A }=0A@@ -248,9 +248,8 @@ acpi_parse_int_src_ovr= (struct acpi_subta=0A static int __init=0A acpi_parse_nmi_src(struct = acpi_subtable_header * header, const unsigned long end)=0A {=0A- = struct acpi_table_nmi_src *nmi_src =3D NULL;=0A-=0A- nmi_src =3D = (struct acpi_table_nmi_src *)header;=0A+ struct acpi_madt_nmi_source= *nmi_src =3D=0A+ container_of(header, struct acpi_madt_nmi_s= ource, header);=0A =0A if (BAD_MADT_ENTRY(nmi_src, end))=0A = return -EINVAL;=0A@@ -270,7 +269,7 @@ static int __init acpi_parse_hpet(str= uct=0A {=0A struct acpi_table_hpet *hpet_tbl =3D (struct acpi_table_hpe= t *)table;=0A =0A- if (hpet_tbl->address.space_id !=3D ACPI_SPACE_MEM)= {=0A+ if (hpet_tbl->address.space_id !=3D ACPI_ADR_SPACE_SYSTEM_MEMORY) = {=0A printk(KERN_WARNING PREFIX "HPET timers must be located in = "=0A "memory.\n");=0A return -1;=0A--- = a/xen/arch/x86/srat.c=0A+++ b/xen/arch/x86/srat.c=0A@@ -396,7 +396,8 @@ = void __init srat_parse_regions(u64 addr)=0A return;=0A =0A = srat_region_mask =3D fill_mask(addr - 1);=0A- acpi_table_parse_srat(ACPI_= SRAT_MEMORY_AFFINITY, srat_parse_region, 0);=0A+ acpi_table_parse_sr= at(ACPI_SRAT_TYPE_MEMORY_AFFINITY,=0A+ srat_parse_re= gion, 0);=0A =0A for (mask =3D srat_region_mask, i =3D 0; mask && i = < e820.nr_map; i++) {=0A if (e820.map[i].type !=3D = E820_RAM)=0A--- a/xen/drivers/acpi/numa.c=0A+++ b/xen/drivers/acpi/numa.c= =0A@@ -46,7 +46,7 @@ void __init acpi_table_print_srat_entry(=0A =0A = switch (header->type) {=0A =0A- case ACPI_SRAT_PROCESSOR_AFFINITY:=0A+ = case ACPI_SRAT_TYPE_CPU_AFFINITY:=0A #ifdef ACPI_DEBUG_OUTPUT=0A = {=0A struct acpi_srat_cpu_affinity *p =3D=0A@@ -68,7 = +68,7 @@ void __init acpi_table_print_srat_entry(=0A #endif = /* ACPI_DEBUG_OUTPUT */=0A break;=0A =0A- case = ACPI_SRAT_MEMORY_AFFINITY:=0A+ case ACPI_SRAT_TYPE_MEMORY_AFFINITY:=0A = #ifdef ACPI_DEBUG_OUTPUT=0A {=0A struct = acpi_srat_mem_affinity *p =3D=0A@@ -194,8 +194,8 @@ int __init acpi_parse_s= rat(struct acpi_t=0A }=0A =0A int __init=0A-acpi_table_parse_srat(enum = acpi_srat_entry_id id,=0A- acpi_madt_entry_handler = handler, unsigned int max_entries)=0A+acpi_table_parse_srat(int id, = acpi_madt_entry_handler handler,=0A+ unsigned int = max_entries)=0A {=0A return acpi_table_parse_entries(ACPI_SIG_SRAT,=0A = sizeof(struct acpi_table_srat), id,=0A@@ = -206,12 +206,13 @@ int __init acpi_numa_init(void)=0A {=0A /* SRAT: = Static Resource Affinity Table */=0A if (!acpi_table_parse(ACPI_SIG_SRAT= , acpi_parse_srat)) {=0A- acpi_table_parse_srat(ACPI_SRAT_X2A= PIC_AFFINITY,=0A- acpi_parse_x2api= c_affinity, NR_CPUS);=0A- acpi_table_parse_srat(ACPI_SRAT_PRO= CESSOR_AFFINITY,=0A- acpi_parse_p= rocessor_affinity,=0A- NR_CPUS);=0A= - acpi_table_parse_srat(ACPI_SRAT_MEMORY_AFFINITY, acpi_parse= _memory_affinity, NR_NODE_MEMBLKS); // IA64 specific=0A+ = acpi_table_parse_srat(ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY,=0A+ = acpi_parse_x2apic_affinity, NR_CPUS);=0A+ acpi_table_= parse_srat(ACPI_SRAT_TYPE_CPU_AFFINITY,=0A+ = acpi_parse_processor_affinity, NR_CPUS);=0A+ acpi_table_parse_sr= at(ACPI_SRAT_TYPE_MEMORY_AFFINITY,=0A+ = acpi_parse_memory_affinity,=0A+ NR_NODE_MEMBL= KS);=0A }=0A =0A /* SLIT: System Locality Information Table = */=0A--- a/xen/include/xen/acpi.h=0A+++ b/xen/include/xen/acpi.h=0A@@ = -34,123 +34,13 @@=0A #include =0A #include =0A = =0A-#ifdef CONFIG_ACPI_BOOT=0A-=0A-enum acpi_madt_entry_id {=0A- = ACPI_MADT_LAPIC =3D 0,=0A- ACPI_MADT_IOAPIC,=0A- ACPI_MADT_INT_SRC_O= VR,=0A- ACPI_MADT_NMI_SRC,=0A- ACPI_MADT_LAPIC_NMI,=0A- ACPI_MADT_L= APIC_ADDR_OVR,=0A- ACPI_MADT_IOSAPIC,=0A- ACPI_MADT_LSAPIC,=0A- = ACPI_MADT_PLAT_INT_SRC,=0A- ACPI_MADT_X2APIC,=0A- ACPI_MADT_X2APIC_NM= I,=0A- ACPI_MADT_ENTRY_COUNT=0A-};=0A-=0A-typedef struct {=0A- u16 = polarity:2;=0A- u16 trigger:2;=0A- u16 = reserved:12;=0A-} __attribute__ ((packed)) acpi_interrupt_flags;=0A= -=0A-struct acpi_table_lapic {=0A- struct acpi_subtable_header = header;=0A- u8 acpi_id;=0A- u8 = id;=0A- struct {=0A- u32 enabled:1;=0A- = u32 reserved:31;=0A- } = flags;=0A-} __attribute__ ((packed));=0A-=0A-struct acpi_table_x2apic = {=0A- struct acpi_subtable_header header;=0A- u16 = reserved;=0A- u32 id;=0A- struct {=0A- = u32 enabled:1;=0A- u32 = reserved:31;=0A- } flags;=0A- u32 = acpi_uid;=0A-} __attribute__ ((packed));=0A-=0A-struct acpi_table_ioapic = {=0A- struct acpi_subtable_header header;=0A- u8 = id;=0A- u8 reserved;=0A- u32 = address;=0A- u32 global_irq_base;=0A-} __attribute__= ((packed));=0A-=0A-struct acpi_table_int_src_ovr {=0A- struct acpi_subtabl= e_header header;=0A- u8 bus;=0A- u8 = bus_irq;=0A- u32 global_irq;=0A- = acpi_interrupt_flags flags;=0A-} __attribute__ ((packed));=0A-=0A-struct= acpi_table_nmi_src {=0A- struct acpi_subtable_header header;=0A-= acpi_interrupt_flags flags;=0A- u32 = global_irq;=0A-} __attribute__ ((packed));=0A-=0A-struct acpi_table_lapic_n= mi {=0A- struct acpi_subtable_header header;=0A- u8 = acpi_id;=0A- acpi_interrupt_flags flags;=0A- u8 = lint;=0A-} __attribute__ ((packed));=0A-=0A-struct acpi_table_x2api= c_nmi {=0A- struct acpi_subtable_header header;=0A- acpi_interrupt_flag= s flags;=0A- u32 acpi_uid;=0A- u8 = lint;=0A- u8 reserved[3];=0A-} = __attribute__ ((packed));=0A+#define ACPI_MADT_GET_(fld, x) (((x) & = ACPI_MADT_##fld##_MASK) / \=0A+ (ACPI_MADT_##fld##_MASK & -ACPI_MADT_##fld#= #_MASK))=0A =0A-struct acpi_table_lapic_addr_ovr {=0A- struct acpi_subtabl= e_header header;=0A- u8 reserved[2];=0A- = u64 address;=0A-} __attribute__ ((packed));=0A-=0A-stru= ct acpi_table_iosapic {=0A- struct acpi_subtable_header header;=0A-= u8 id;=0A- u8 = reserved;=0A- u32 global_irq_base;=0A- u64 = address;=0A-} __attribute__ ((packed));=0A-=0A-struct acpi_table_ls= apic {=0A- struct acpi_subtable_header header;=0A- u8 = acpi_id;=0A- u8 id;=0A- u8 = eid;=0A- u8 reserved[3];=0A- struct = {=0A- u32 enabled:1;=0A- u32 = reserved:31;=0A- } flags;=0A-} = __attribute__ ((packed));=0A+#define ACPI_MADT_GET_POLARITY(inti) = ACPI_MADT_GET_(POLARITY, inti)=0A+#define ACPI_MADT_GET_TRIGGER(inti) = ACPI_MADT_GET_(TRIGGER, inti)=0A =0A-struct acpi_table_plat_int_src {=0A- = struct acpi_subtable_header header;=0A- acpi_interrupt_flags = flags;=0A- u8 type; /* See acpi_interrupt_type = */=0A- u8 id;=0A- u8 eid;=0A- = u8 iosapic_vector;=0A- u32 = global_irq;=0A- u32 reserved;=0A-} __attribute__ = ((packed));=0A+#ifdef CONFIG_ACPI_BOOT=0A =0A enum acpi_interrupt_id {=0A = ACPI_INTERRUPT_PMI =3D 1,=0A@@ -159,42 +49,6 @@ enum acpi_interrupt_id= {=0A ACPI_INTERRUPT_COUNT=0A };=0A =0A-#define ACPI_SPACE_MEM = 0=0A-=0A-/*=0A- * Simple Boot Flags=0A- * http://www.microsoft.com/whdc/hwd= ev/resources/specs/simp_bios.mspx=0A- */=0A-struct acpi_table_sbf=0A-{=0A- = u8 sbf_signature[4];=0A- u32 sbf_len;=0A- u8 sbf_revision;=0A= - u8 sbf_csum;=0A- u8 sbf_oemid[6];=0A- u8 sbf_oemtable[8];= =0A- u8 sbf_revdata[4];=0A- u8 sbf_creator[4];=0A- u8 sbf_crearev[4];= =0A- u8 sbf_cmos;=0A- u8 sbf_spare[3];=0A-} __attribute__ = ((packed));=0A-=0A-enum acpi_srat_entry_id {=0A- ACPI_SRAT_PROCESSOR= _AFFINITY =3D 0,=0A- ACPI_SRAT_MEMORY_AFFINITY,=0A- ACPI_SRAT_X2APIC_AF= FINITY,=0A- ACPI_SRAT_ENTRY_COUNT=0A-};=0A-=0A-enum acpi_address_range_= id {=0A- ACPI_ADDRESS_RANGE_MEMORY =3D 1,=0A- ACPI_ADDRESS_RANGE_= RESERVED =3D 2,=0A- ACPI_ADDRESS_RANGE_ACPI =3D 3,=0A- ACPI_ADDRES= S_RANGE_NVS =3D 4,=0A- ACPI_ADDRESS_RANGE_COUNT=0A-};=0A-=0A /* = DMA Remapping Reporting Table (DMAR) */=0A =0A #define DMAR_FLAGS_INTR_REMA= P 0x1 /* intr remap supported */=0A@@ -282,8 +136,8 @@ int acpi_table= _parse(char *id, acpi_tabl=0A int acpi_table_parse_entries(char *id, = unsigned long table_size,=0A int entry_id, acpi_table_entry_handler = handler, unsigned int max_entries);=0A int acpi_table_parse_madt(enum = acpi_madt_type id, acpi_table_entry_handler handler, unsigned int = max_entries);=0A-int acpi_table_parse_srat(enum acpi_srat_entry_id id,=0A- = acpi_madt_entry_handler handler, unsigned int max_entries);=0A+int = acpi_table_parse_srat(int id, acpi_madt_entry_handler handler,=0A+ = unsigned int max_entries);=0A int acpi_parse_srat(struct acpi_table_header = *);=0A void acpi_table_print (struct acpi_table_header *header, unsigned = long phys_addr);=0A void acpi_table_print_madt_entry (struct acpi_subtable_= header *madt);=0A --=__PartB6991351.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__PartB6991351.0__=--