[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [QEMU RFC PATCH 5/7] pc: write lapic info (apic IDs) to
From: |
Eduardo Habkost |
Subject: |
Re: [Qemu-devel] [QEMU RFC PATCH 5/7] pc: write lapic info (apic IDs) to fw_cfg so seabios can use it |
Date: |
Fri, 13 Jul 2012 15:09:51 -0300 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Jul 12, 2012 at 07:29:02PM +0000, Blue Swirl wrote:
[...]
> CODING_STYLE requires CamelCase, also below.
>
[...]
> > + struct lapic_info_table *lapic_table = g_malloc0(lapic_info_size);;
>
> ;--
>
> > + lapic_table->count = max_cpus;
> > + for (i = 0; i < max_cpus; i++) {
> > + lapic_table->entries[i].apic_id = apic_id_for_cpu(i);
> > + }
> > + fw_cfg_add_bytes(fw_cfg, FW_CFG_LAPIC_INFO, (uint8_t *)lapic_table,
>
> You are passing a structure with host endianness. Please convert the
> fields with cpu_to_le32().
Thanks. I will fix the issues if I send a new version of this patch. But
I believe we'll find a way to make FW_CFG_LAPIC_INFO unnecessary.
--
Eduardo
- Re: [Qemu-devel] [QEMU PATCH 2/7] hw/apic.c: rename bit functions to not conflict with bitops.h, (continued)
- [Qemu-devel] [Seabios RFC PATCH 1/1] get lapic IDs from fw_cfg, Eduardo Habkost, 2012/07/10
- [Qemu-devel] [QEMU RFC PATCH 4/7] i386: create apic_id_for_cpu() function, Eduardo Habkost, 2012/07/10
- [Qemu-devel] [QEMU RFC PATCH 7/7] generate APIC IDs according to CPU topology, Eduardo Habkost, 2012/07/10
- [Qemu-devel] [QEMU RFC PATCH 6/7] i386: topology & APIC ID utility functions, Eduardo Habkost, 2012/07/10
- [Qemu-devel] [QEMU PATCH 3/7] kvm: set vcpu_id to APIC ID instead of CPU index, Eduardo Habkost, 2012/07/10
- [Qemu-devel] [QEMU RFC PATCH 5/7] pc: write lapic info (apic IDs) to fw_cfg so seabios can use it, Eduardo Habkost, 2012/07/10
- Re: [Qemu-devel] [RFC 0/7+1] QEMU APIC ID + topology bug + CPU hotplug, Igor Mammedov, 2012/07/12