Re: [SeaBIOS] [QEMU v6 PATCH 00/17] SMBIOS: build full tables in QEMU

2014-04-21 Thread Gerd Hoffmann
Hi, > Command line options are processed before machine types are > initialized. acpi is pretty much in the same boat ... /me looks ... Ah, there is a notifier where you (hopefully) can hook in easily: pc_guest_info_machine_done (see hw/i386/pc.c). cheers, Gerd __

[SeaBIOS] [QEMU v7 PATCH 7/7] SMBIOS: Build aggregate smbios tables and entry point

2014-04-21 Thread Gabriel L. Somlo
Build an aggregate set of smbios tables and an entry point structure. Insert tables and entry point into fw_cfg respectively under "etc/smbios/smbios-tables" and "etc/smbios/smbios-anchor". Machine types <= 2.0 will for now continue using field-by-field overrides to SeaBIOS defaults, but for mach

[SeaBIOS] [QEMU v7 PATCH 1/7] SMBIOS: Rename symbols to better reflect future use

2014-04-21 Thread Gabriel L. Somlo
Rename the following symbols: - smbios_set_type1_defaults() to the more general smbios_set_defaults(); - bool smbios_type1_defaults to the more general smbios_defaults; - smbios_get_table() to smbios_get_table_legacy(); This patch contains no functional changes. Signed-off-by: Gabriel Soml

[SeaBIOS] [QEMU v7 PATCH 6/7] PC: Add (empty) compat functions for machine version 2.0

2014-04-21 Thread Gabriel L. Somlo
This patch contains no functional changes. Signed-off-by: Gabriel Somlo --- hw/i386/pc_piix.c | 13 - hw/i386/pc_q35.c | 13 - 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index cca310b..3d3f4b7 100644 --- a/hw/i38

[SeaBIOS] [QEMU v7 PATCH 4/7] SMBIOS: Use bitmaps to prevent incompatible comand line options

2014-04-21 Thread Gabriel L. Somlo
Replace existing smbios_check_collision() functionality with a pair of bitmaps: have_binfile_bitmap and have_fields_bitmap. Bits corresponding to each smbios type are set by smbios_entry_add(), which also uses the bitmaps to ensure that binary blobs and field values are never accepted for the same

[SeaBIOS] [QEMU v7 PATCH 2/7] SMBIOS: Update header file definitions

2014-04-21 Thread Gabriel L. Somlo
Add definitions for smbios entry point (anchor), and for type 2 (base board) structure which is required by some versions of OS X. Remove definition for type 20 (memory device mapped address) structure, which is no longer required as of smbios spec v2.5. Update all other structure definitions to

[SeaBIOS] [QEMU v7 PATCH 5/7] E820: Add interface for accessing e820 table

2014-04-21 Thread Gabriel L. Somlo
Add the following two functions: - e820_get_num_entries() - query the size of the e820 table - e820_get_entry() - grab an entry matching a given set of criteria This interface is currently necessary for creating type 19 (memory array mapped address) structures in smbios. Signed-off-by: Gabri

[SeaBIOS] [QEMU v7 PATCH 3/7] SMBIOS: Use macro to set smbios defaults

2014-04-21 Thread Gabriel L. Somlo
The function smbios_set_defaults() uses a repeating code pattern for each field. This patch replaces that pattern with a macro. This patch contains no functional changes. Signed-off-by: Gabriel Somlo --- hw/i386/smbios.c | 27 +-- 1 file changed, 13 insertions(+), 14 del

[SeaBIOS] [QEMU v7 PATCH 0/7] SMBIOS: build full tables in QEMU

2014-04-21 Thread Gabriel L. Somlo
New in version 7 of the patch set: - patch set now down to only 7 patches; - machine versions 2.0 and older currently unaffected by this patch set, will continue using field overrides as before - patches 1..6 are very small and simple, and set the stage for patch #7 - patch 7 introd

[SeaBIOS] ASL: Warning 3104 - Reserved method should not return a value ^ (_EJ0)

2014-04-21 Thread Paul Menzel
Dear SeaBIOS folks, building SeaBIOS from commit 0784d04cb6f6e5c893aaf368091f20326fb847fe Author: Marcel Apfelbaum Date: Thu Apr 10 21:55:22 2014 +0300 hw/pci: check if pci2pci bridges implement optional limit registers with IASL 20140325 (from De