revamp acpitable parsing and allow to specify complete (headerful) table
authorMichael Tokarev <mjt@tls.msk.ru>
Thu, 12 May 2011 14:44:17 +0000 (18:44 +0400)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 30 Jul 2011 09:33:31 +0000 (09:33 +0000)
commit8a13feac3b4a6ab18d9f87feef5c8a2792e136be
treea73f83e5f9dece6287f4efb3e5de0dc9647bfa0e
parentd4015102f13535af406c069e226a5adf5d12047c
revamp acpitable parsing and allow to specify complete (headerful) table

This patch almost rewrites acpi_table_add() function
(but still leaves it using old get_param_value() interface).
The result is that it's now possible to specify whole table
(together with a header) in an external file, instead of just
data portion, with a new file= parameter, but at the same time
it's still possible to specify header fields as before.

Now with the checkpatch.pl formatting fixes, thanks to
Stefan Hajnoczi for suggestions, with changes from
Isaku Yamahata, and with my further refinements.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Cc: Isaku Yamahata <yamahata@valinux.co.jp>
Cc: John Baboval <john.baboval@virtualcomputer.com>
Cc: Blue Swirl <blauwirbel@gmail.com>
[yamahata@valinux.co.jp: fix compile error, comment fallthrough]
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/acpi.c
qemu-options.hx