OSDN Git Service

acpi-build: fix ACPI RAM management
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 15 Feb 2015 16:12:11 +0000 (17:12 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 26 Feb 2015 11:42:20 +0000 (12:42 +0100)
commit42d859001d180ea788aa2d34a7be021ac8c447f2
treedafa3f7ac57e4679fb38d6badf7518c0d94f0095
parent129ddaf31be583fb7c97812e07e028661005ce42
acpi-build: fix ACPI RAM management

This fixes multiple issues around ACPI RAM management:

RSDP and linker RAM aren't currently marked dirty
on update, so they won't be migrated correctly.

Let's handle all tables in the same way: set correct size (assert if
too big), update, mark RAM dirty.

This also drops assert checking that table size didn't change: table
size is fundamentally dynamic and depends on hw configuration,
just set the correct size and use that (memory core asserts if size is
too large).

This also means we can drop tracking table size, memory core does this
for us now.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c