hvmloader: fix SeaBIOS interface
authorJan Beulich <jbeulich@suse.com>
Thu, 5 Sep 2013 09:47:03 +0000 (11:47 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 5 Sep 2013 09:47:03 +0000 (11:47 +0200)
commit5f2875739beef3a75c7a7e8579b6cbcb464e61b3
tree2913634586d17f0c080c9dba4a9c68909de4abfc
parentcc29e450d1abd2f8be67208dfb78046885a50cca
hvmloader: fix SeaBIOS interface

The SeaBIOS ROM image may validly exceed 128k in size, it's only our
interface code that so far assumed that it wouldn't. Remove that
restriction by setting the base address depending on image size.

Add a check to HVM loader so that too big images won't result in silent
guest failure anymore.

Uncomment the intended build-time size check for rombios, moving it
into a function so that it would actually compile.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/firmware/hvmloader/config-seabios.h
tools/firmware/hvmloader/hvmloader.c
tools/firmware/hvmloader/rombios.c
tools/firmware/hvmloader/seabios.c